RIP,EIGRP,OSPF融合网络互通实验(原创)
首先看拓撲:
?
?
一個面試考官問我一個這樣的問題,拓撲如上,為什么R1上的lo0 PING 不通 R6 上的lo0,說是一切都按正常配置,說是考我EIGRP的特性。我當然很納悶,如果都正常配置怎么會不通呢,最后他告訴我主要是考我,EIGRP的域內管理距離是90,域外管理距離是170。當時可能不夠自信也沒多想,回來后越想越不對,一般來說,只有到達目的地有兩條路由的時候才會考慮管理距離,但這里沒有這個情況啊,于是自已設計了一個實驗加以驗證,結果是,可以通。
R3 與 R5? R4與R5 使用幀中繼相連,DLCI號分別為:305 503 405 504
幀中繼只能用點到點子接口。
主要配置如下:
R1:
interface Loopback0
?ip address 1.1.1.1 255.255.255.0
interface Serial1/1
?ip address 10.10.12.1 255.255.255.252
router rip
?version 2
?network 1.0.0.0
?network 10.0.0.0
?no auto-summary
?
R2:
interface FastEthernet0/0
?ip address 10.10.24.1 255.255.255.252
?duplex half
!
interface Serial1/0
?ip address 10.10.12.2 255.255.255.252
?serial restart-delay 0
?clock rate 64000
router eigrp 1
?redistribute rip metric 10000 100 255 1 1500
?network 10.10.23.0 0.0.0.255
?network 10.10.24.0 0.0.0.255
?no auto-summary
!
router rip
?version 2
?redistribute eigrp 1 metric 2
?network 10.0.0.0
?no auto-summary
R3:
interface Serial1/0
?ip address 10.10.23.2 255.255.255.252
?serial restart-delay 0
!
interface Serial1/2
?ip address 10.10.35.1 255.255.255.252
?encapsulation frame-relay
?serial restart-delay 0
?frame-relay map ip 10.10.35.2 305 broadcast?? //靜態映射,DLCI號是幀中繼交換分配置的,如果不配置就不通。
?no frame-relay inverse-arp //靜態映射要關閉反向ARP
router eigrp 1
?network 10.10.23.0 0.0.0.255
?network 10.10.35.0 0.0.0.255
?no auto-summary
!
R4:
interface FastEthernet0/0
?ip address 10.10.24.2 255.255.255.252
?duplex half
interface Serial1/2
?ip address 10.10.45.1 255.255.255.252
?encapsulation frame-relay
?serial restart-delay 0
?frame-relay map ip 10.10.45.2 405 broadcast
?no frame-relay inverse-arp
router eigrp 1
?network 10.10.24.0 0.0.0.255
?network 10.10.34.0 0.0.0.255
?network 10.10.45.0 0.0.0.255
?no auto-summary
?
R5:
interface Serial1/1
?ip address 10.10.56.1 255.255.255.252
?serial restart-delay 0
interface Serial1/2.1 point-to-point
?ip address 10.10.45.2 255.255.255.252
?frame-relay interface-dlci 504??
!
interface Serial1/2.2 point-to-point
?ip address 10.10.35.2 255.255.255.252
?frame-relay interface-dlci 503??
router eigrp 1
?redistribute ospf 100 metric 10000 100 255 1 1500
?network 10.10.35.0 0.0.0.255
?network 10.10.45.0 0.0.0.255
?no auto-summary
!
router ospf 100
?log-adjacency-changes
?redistribute eigrp 1 subnets?? //默認為TYPE 2,cost 為20
network 10.10.56.0 0.0.0.255 area 0
?
R6:
interface Serial1/0
?ip address 10.10.56.2 255.255.255.252
?serial restart-delay 0
router ospf 100
?log-adjacency-changes
?network 6.6.6.0 0.0.0.255 area 0
?network 10.10.56.0 0.0.0.255 area 0
?
結果測試:R1 PING R6
R1#ping 6.6.6.6 so 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/92/132 ms
R1#
R6 PING R1
R6#ping 1.1.1.1 so 6.6.6.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 6.6.6.6
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 84/102/120 ms
R6#
轉載于:https://blog.51cto.com/xingno/384556
總結
以上是生活随笔為你收集整理的RIP,EIGRP,OSPF融合网络互通实验(原创)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 英语生词本
- 下一篇: ppp和chap的区别