浮動靜態路由

 浮動靜態路由

實驗目的:

1.      使用浮動靜態路由實現路由備份

2.      觀察動態路由EIGRP與靜態路由之間的轉換

3.      浮動靜態路由本身是靜態路由,浮動是指當原來的路由失效才啓用該路由,在配置靜態路由時需要將其管理距離做相應的調整,使其大於正常使用的其他路由協議獲悉的路由。

實驗拓撲:


實驗配置:

R1# show running-config

interface Loopback0

 ip address 1.1.1.1 255.255.255.0

!

interface Serial0/1

 ip address 16.16.16.1 255.255.255.0

!

interface Ethernet1/1

 ip address 192.168.0.1 255.255.255.0

 half-duplex

router eigrp 1

 network 1.1.1.0 0.0.0.255

 network 16.16.16.0 0.0.0.255

 no auto-summary如果不關閉自動彙總,則EIGRP宣告彙總的1.0.0.0/8網絡,此時在R6上配置的到1.1.1.0/24的靜態路由,EIGRP認爲這是2個不同的網絡,R6上的靜態路由將被認爲是普通的靜態路由而非浮動靜態路由

ip route 6.6.6.0 255.255.255.0 192.168.0.2 200

 

R6#show running-config

interface Loopback0

 ip address 6.6.6.6 255.255.255.0

interface Serial0/1

 ip address 16.16.16.6 255.255.255.0

 

interface Ethernet1/1

 ip address 192.168.0.2 255.255.255.0

 half-duplex

!

router eigrp 1

 network 6.0.0.0

 network 16.16.16.0 0.0.0.255

 no auto-summary

! 

ip route 1.1.1.0 255.255.255.0 192.168.0.1 200

!

實驗驗證:

R1#sh ip route

Gateway of last resort is not set

         16.0.0.0/24 is subnetted, 1 subnets

C       16.16.16.0 is directly connected, Serial0/1

     1.0.0.0/24 is subnetted, 1 subnets

C       1.1.1.0 is directly connected, Loopback0

     6.0.0.0/24 is subnetted, 1 subnets

D       6.6.6.0 [90/2297856] via 16.16.16.6, 00:05:20, Serial0/1

C    192.168.0.0/24 is directly connected, Ethernet1/1

可見在R1的路由表上沒有顯示到6.6.6.0/24網絡的靜態路由,如果配置帶送出藉口的靜態路由,路由器會認爲該網絡是直連的。

R6#sh ip route    

     16.0.0.0/24 is subnetted, 1 subnets

C       16.16.16.0 is directly connected, Serial0/1

     1.0.0.0/24 is subnetted, 1 subnets

D       1.1.1.0 [90/2297856] via 16.16.16.1, 00:06:38, Serial0/1

     6.0.0.0/24 is subnetted, 1 subnets

C       6.6.6.0 is directly connected, Loopback0

C    192.168.0.0/24 is directly connected, Ethernet1

 

R1:

R1#ping 6.6.6.6 repeat 1000 R6上關閉s0/1接口在開啓

R1#ping 6.6.6.6 repeat 1000

Sending 1000, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!.......!!!!!!!!!

Jul 20 19:56:49.019: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 16.16.16.6 (Serial0/1) is down: holding time expired!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Jul 20 19:56:58.971: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 16.16.16.6 (Serial0/1) is up: new adjacency!!!!!!!!!!!!!!!!!!!!!!!!!!.!!!!!!!

Jul 20 19:57:03.051: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to down

Jul 20 19:57:03.179: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 16.16.16.6 (Serial0/1) is down: interface down!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Jul 20 19:57:12.543: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 16.16.16.6 (Serial0/1) is up: new adjacency

Jul 20 19:57:13.051: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to up!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!

Success rate is 99 percent (992/1000), round-trip min/avg/max = 4/44/208 msR6:

 R6(config)#int s0/1

R6(config-if)#sh

R6#sh ip route

 

     1.0.0.0/24 is subnetted, 1 subnets

S       1.1.1.0 [200/0] via 192.168.0.1(當s0/1鏈路失效時就啓用備份路由)

     6.0.0.0/24 is subnetted, 1 subnets

C       6.6.6.0 is directly connected, Loopback0

C    192.168.0.0/24 is directly connected, Ethernet1/1

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章