最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

HCIA認證學(xué)習(xí)筆記7:浮動靜態(tài)路由、RIP2配置方法實例分析

  發(fā)布時間:2020-04-29 14:24:52   作者:Tachyon.xue   我要評論
這篇文章主要介紹了HCIA認證浮動靜態(tài)路由、RIP2配置方法,結(jié)合具體實驗案例形式分析了HCIA認證中浮動靜態(tài)路由、RIP2相關(guān)概念、原理、配置方法及操作注意事項,需要的朋友可以參考下

本文講述了HCIA認證浮動靜態(tài)路由、RIP2配置方法。分享給大家供大家參考,具體如下:

1、實施靜態(tài)
 

1.1浮動靜態(tài)路由
 

在存在多條線路的情況使得數(shù)據(jù)只從一個鏈路上轉(zhuǎn)發(fā),即路由表中只有一個下一跳,其他線路作為備份。
 

只有主鏈路失效了,備份鏈路才會被放入路由表
 

ensp演示示例:
在這里插入圖片描述

圖中AR01 和AR04 連接有兩條線路,實施浮點靜態(tài)路由

[tachyonAR01]disp ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 2        Routes : 3        Configured Routes : 3

Static routing table status : <Active>
         Destinations : 2        Routes : 3

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.2.0/24  Static  60   0           D   10.0.123.1      GigabitEthernet0/0/0
       10.0.4.0/24  Static  60   0           D   10.0.14.1       Serial2/0/0
                    Static  60   0           D   172.16.14.4     GigabitEthernet0/0/1

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

上面可以看出去往10.0.4.0/24的網(wǎng)絡(luò)的靜態(tài)路由有2條,是負載均衡的方式。我們要修改為浮點靜態(tài)路由,把serial線路做為備胎來使用

[tachyonAR01]ip route-static 10.0.4.0 24 Serial 2/0/0 preference 255 //修改優(yōu)先級為255,參數(shù)255在華為可用
[tachyonAR01]disp ip routing-table protocol static 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 2        Routes : 3        Configured Routes : 3

Static routing table status : <Active>
         Destinations : 2        Routes : 2

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.2.0/24  Static  60   0           D   10.0.123.1      GigabitEthernet0/0/0
       10.0.4.0/24  Static  60   0           D   172.16.14.4     GigabitEthernet0/0/1

Static routing table status : <Inactive>
         Destinations : 1        Routes : 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.4.0/24  Static  255  0               10.0.14.1       Serial2/0/0

修改serial線路的管理距離為255,就可以把它放入“Inactive”里面做為備胎,只有主鏈路掛掉,在會把它放入“Active”路由表。

1.2 默認路由(缺省路由)defult route
0.0.0.0/0 最不精準(zhǔn)的但是可以使用的路由

[tachyonAR04]ip route-static 0.0.0.0 0.0.0.0 10.0.14.1    //配置默認路由采用了下一跳,很多情況下是才用出接口
[tachyonAR04]disp ip routing-table protocol static        //查看靜態(tài)路由
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : Static
         Destinations : 1        Routes : 1        Configured Routes : 1

Static routing table status : <Active>
         Destinations : 1        Routes : 1

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   Static  60   0          RD   10.0.14.1       Serial2/0/0  //RD分別代表R代表不是自身設(shè)備可以是直連的設(shè)備也可以是中繼的下一跳,D代表放入路由表。因為沒有寫出接口所有它顯示R,而只顯示D說明是自己設(shè)備下一跳為自己的接口

Static routing table status : <Inactive>
         Destinations : 0        Routes : 0

ip route-static 10.0.2.0 255.255.255.0 GigabitEthernet0/0/0 //此時路由器認為到達該網(wǎng)絡(luò)是直連,ARP的請求去往10.0.2.2的MAC地址,此時AR2會作為一個代理ARP。
在華為設(shè)備上代理ARP默認是沒有開啟的設(shè)備沒辦法封裝通信,所以我們需要開啟AR2的代理ARP

[tachyonAR02-GigabitEthernet0/0/0]arp-proxy enable  //使能代理ARP

上述使用代理ARP雖然可以通信但是它有超時時間,ARP又是廣播,是非常非常的吃帶寬,所有這種方式不值得借鑒的。
2、RIPv2
1.1 RIPv2的特點和時間值
支持VLSM和CIDR
支持認證
組播更新
更新中攜帶掩碼
 

在這里插入圖片描述

<tachyonAR04>disp cu con rip
[V200R003C00]
#
rip 1
 undo summary
 version 2
 network 10.0.0.0
 silent-interface Serial2/0/0 //靜默端口。 僅僅接收RIP的更新而不發(fā)送更新(IGP)只吃不出
#

AR4上開啟了靜默端口
查看AR1,可以看出在AR1上會缺少路由

<tachyonAR01>disp ip routing-table protocol rip //查看通過rip的路由
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 2        Routes : 2        

RIP routing table status : <Active>
         Destinations : 2        Routes : 2

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.2.0/24  RIP     100  1           D   10.0.123.2      GigabitEthernet0/0/0
       10.0.3.0/24  RIP     100  1           D   10.0.123.3      GigabitEthernet0/0/0

RIP routing table status : <Inactive>
         Destinations : 0        Routes : 0

可以看到缺少10.0.4.0/24的rip

<tachyonAR01>display rip 1 neighbor //查看rip 1 的neighbor(鄰居)
---------------------------------------------------------------------
 IP Address      Interface                   Type   Last-Heard-Time
---------------------------------------------------------------------
 10.0.123.2      GigabitEthernet0/0/0        RIP    0:0:24
 Number of RIP routes  : 1
 10.0.123.3      GigabitEthernet0/0/0        RIP    0:0:25
 Number of RIP routes  : 1

查看ripneighbor 缺少4

<tachyonAR01>display rip 1 database //查看rip 1 的數(shù)據(jù)庫
 ---------------------------------------------------
 Advertisement State : [A] - Advertised
                       [I] - Not Advertised/Withdraw
 ---------------------------------------------------
   10.0.0.0/8, cost 0, ClassfulSumm
       10.0.1.0/24, cost 0, [A], Rip-interface
       10.0.2.0/24, cost 1, [A], nexthop 10.0.123.2
       10.0.3.0/24, cost 1, [A], nexthop 10.0.123.3
       10.0.14.0/24, cost 0, [A], Rip-interface //直連
       10.0.123.0/24, cost 0, [A], Rip-interface

查看rip 1 的數(shù)據(jù)庫缺少ar4的環(huán)回接口

現(xiàn)在去AR4上把靜默端口undo掉看下。

[tachyonAR04]rip //進入rip 1
[tachyonAR04-rip-1]display this //查看rip 1 配置
[V200R003C00]
#
rip 1
 undo summary
 version 2
 network 10.0.0.0
 silent-interface Serial2/0/0 //靜默端口開啟
#
return
[tachyonAR04-rip-1]undo silent-interface Serial 2/0/0 //undo掉靜默端口
[tachyonAR04-rip-1]disp th
[V200R003C00]
#
rip 1
 undo summary
 version 2
 network 10.0.0.0
#
return

undo掉我們回到AR1看下AR1的rip 1 數(shù)據(jù)庫

<tachyonAR01>disp rip 1 data
 ---------------------------------------------------
 Advertisement State : [A] - Advertised
                       [I] - Not Advertised/Withdraw
 ---------------------------------------------------
   10.0.0.0/8, cost 0, ClassfulSumm
       10.0.1.0/24, cost 0, [A], Rip-interface
       10.0.2.0/24, cost 1, [A], nexthop 10.0.123.2
       10.0.3.0/24, cost 1, [A], nexthop 10.0.123.3
       10.0.4.0/24, cost 1, [A], nexthop 10.0.14.4   //可以看到馬上就更新了10.0.4.0/24的路由
       10.0.14.0/24, cost 0, [A], Rip-interface
       10.0.123.0/24, cost 0, [A], Rip-interface
       10.1.0.0/23, cost 1, [A], nexthop 10.0.14.4
<tachyonAR01>disp ip rou pro rip
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : RIP
         Destinations : 4        Routes : 4        

RIP routing table status : <Active>
         Destinations : 4        Routes : 4

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.2.0/24  RIP     100  1           D   10.0.123.2      GigabitEthernet0/0/0
       10.0.3.0/24  RIP     100  1           D   10.0.123.3      GigabitEthernet0/0/0
       10.0.4.0/24  RIP     100  1           D   10.0.14.4       Serial2/0/0 //出現(xiàn)了
       10.1.0.0/23  RIP     100  1           D   10.0.14.4       Serial2/0/0

RIP routing table status : <Inactive>
         Destinations : 0        Routes : 0

RIP的防環(huán)機制
任何的路由協(xié)議最基本的內(nèi)容是和環(huán)路做抗?fàn)?/p>

  1. 水平分割split horizon(所有的DV{距離矢量協(xié)議}公用的特征)
    從一個下一跳收到路由就不會把該路由發(fā)送回給該下一跳
  2. 毒性反轉(zhuǎn)(和水平分割恰恰相反,把從路由設(shè)置為16的cost發(fā)回給自己的下一跳 )默認不開啟如果開啟水平分割則失效。
  3. 觸發(fā)更新(一種快速響應(yīng)機制)
<tachyonAR04>disp rip 1 interface s2/0/0 verbose //查看rip 1 s2/0/0 接口的詳細信息
 Serial2/0/0(10.0.14.4)
  State           : UP          MTU    : 500
  Metricin        : 0       
  Metricout       : 1       
  Input           : Enabled     Output : Enabled     
  Protocol        : RIPv2 Multicast
  Send version    : RIPv2 Multicast Packets 
  Receive version : RIPv2 Multicast and Broadcast Packets
  Poison-reverse                : Disabled  //毒性反轉(zhuǎn)默認不開啟。如果開啟水平分割則失效
  Split-Horizon                 : Enabled  //水平分割默認是開啟的 
  Authentication type           : None 
  Replay Protection             : Disabled 
  Summary Address(es) :
    10.1.0.0/23

另:
RIP的基本配置

[tachyonAR04]rip  //進入rip,直接回車默認是1
[tachyonAR04-rip-1]version 2 //啟用ripv2版本(ripv1和v2兩者不兼容)
[tachyonAR04-rip-1]network 10.0.0.0 //通告網(wǎng)絡(luò)(只能通告主類)

靜默端口的使用方法
先把所有的接口全部靜默,然后單播指定鄰居

AR4

[tachyonAR04-rip-1]silent-interface all //靜默所有接口
[tachyonAR04-rip-1]peer 10.0.14.1       //手工指定鄰居,進行單播更新
[tachyonAR04-rip-1]disp th       
[V200R003C00]
#
rip 1
 undo summary
 version 2
 peer 10.0.14.1
 network 10.0.0.0
 silent-interface all
#
return

指定靜默某個端口,然后單播指定鄰居
AR1

[tachyonAR01-rip-1]silent-interface Serial 2/0/0  //指定靜默某個端口
[tachyonAR01-rip-1]peer 10.0.14.4                 //指定鄰居,單播更新
[tachyonAR01-rip-1]disp th       
[V200R003C00]
#
rip 1
 undo summary
 version 2
 peer 10.0.14.4
 network 10.0.0.0
 silent-interface Serial2/0/0
#
return

相關(guān)文章

最新評論

丁青县| 额济纳旗| 基隆市| 日土县| 宁河县| 册亨县| 犍为县| 秦皇岛市| 洛南县| 康定县| 筠连县| 宣汉县| 百色市| 公主岭市| 华宁县| 蒙山县| 屯留县| 盐山县| 小金县| 延长县| 襄垣县| 三明市| 三明市| 庆云县| 安康市| 禹州市| 英吉沙县| 凤翔县| 新沂市| 陇南市| 屏南县| 房产| 汤原县| 金湖县| 江西省| 壶关县| 清涧县| 浮山县| 玉林市| 博野县| 祁东县|