Redistribute giữa ISIS và OSPF

Trong bài này sẽ thực hiện redistribute giữa hai giao thức classless là OSPF và ISIS với nhau . Mục tiêu bài làm : Thực hiện multiple redistribute points (redistribute tại nhiều điểm ) Chỉ ra vấn đề gặp phải khi redistribute và cách giải quyết vấn đề đó . Từ một router ping thấy tất cả các địa chỉ trong mạng . Mô hình mạng như sau : router R3 và R4 sẽ chạy giao thức OSPF , R5 chạy giao thức ISIS. Router R4 và R1 sẽ là các router thực hiện redistribute .

pdf22 trang | Chia sẻ: tlsuongmuoi | Lượt xem: 1927 | Lượt tải: 0download
Bạn đang xem trước 20 trang tài liệu Redistribute giữa ISIS và OSPF, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
Redistribute gi a ISIS và OSPFữ Tác gi : Nguy n Th Băng Tâm ả ễ ị Trong bài này s th c hi n redistribute gi a hai giao th c classless là OSPF vàẽ ự ệ ữ ứ ISIS v i nhau .ớ M c tiêu bài làmụ : Th c hi n multiple redistribute points (redistribute t i nhi u đi m )ự ệ ạ ề ể Ch ra v n đ g p ph i khi redistribute và cách gi i quy t v n đ đó .ỉ ấ ề ặ ả ả ế ấ ề T m t router ping th y t t c các đ a ch trong m ng .ừ ộ ấ ấ ả ị ỉ ạ Mô hình m ng nh sau : router R3 và R4 s ch y giao th c OSPF , R5 ch yạ ư ẽ ạ ứ ạ giao th c ISIS. Router R4 và R1 s là các router th c hi n redistribute .ứ ẽ ự ệ Đ a ch trên các interface c a các router :ị ỉ ủ Router Interface đ a chị ỉ Router R1 E0/0 S0/0 172.16.1.1/24 172.16.2.2 /30 Router R2 S0/0 E0/0 172.16.2.1/30 192.168.4.2/24 Router R3 E0/0 S0/0 192.168.4.1/24 192.168.1.1/24 Router R4 S0/1 S0/0 192.168.1.2/24 192.168.2.1/30 Router R5 S0/0 E0/0 Loopback 0 192.168.2.2/30 172.16.1.2/24 10.1.1.1/24 C u hình ban đ u : ấ ầ R1 ! hostname R1 ! enable password cisco ! interface Ethernet0/0 ip address 172.16.1.1 255.255.255.0 ! interface Serial0/0 ip address 172.16.2.2 255.255.255.252 ! end R2 ! hostname R2 ! interface Ethernet0/0 ip address 192.168.4.2 255.255.255.0 ! interface Serial0/0 ip address 172.16.2.1 255.255.255.252 clockrate 64000 ! ip classless ! end R3 ! hostname R3 ! interface Ethernet0/0 ip address 192.168.4.1 255.255.255.0 half-duplex ! interface Serial0/0 ip address 192.168.1.1 255.255.255.0 no fair-queue ! end R4 ! hostname R4 ! interface Ethernet0/0 ip address 192.168.100.1 255.255.255.0 ! interface Serial0/0 ip address 192.168.2.1 255.255.255.0 clockrate 64000 no fair-queue ! interface Serial0/1 ip address 192.168.1.2 255.255.255.0 clockrate 64000 ! ip http server ip classless ! end R5 ! hostname R5 ! interface Loopback0 ip address 10.1.1.1 255.255.255.0 no ip directed-broadcast ! interface Ethernet0/0 ip address 172.16.1.2 255.255.255.0 no ip directed-broadcast ! interface Serial0/0 ip address 192.168.2.2 255.255.255.252 ! ip classless end C u hình ban đ u cho các router :ấ ầ R1 Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1 R1(config)#line console 0 R1(config-line)#password cisco R1(config-line)#login R1(config)#line vty 0 4 R1(config-line)#password cisco R1(config-line)#login R1(config-line)#exit R1(config)#enable password cisco R1(config)#interface s0/0 R1(config-if)#ip address 172.16.2.2 255.255.255.252 R1(config-if)#clock rate 64000 R1(config-if)#no shutdown R1(config-if)#int e0/0 R1(config-if)#ip address 172.16.1.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)# c u hình cho router R2 : ấ Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2 R2(config)#line console 0 R2(config-line)#password cisco R2(config-line)#line vty 0 4 R2(config-line)#no login R2(config-line)#exit R2(config)#interface e0/0 R2(config-if)#ip address 192.168.4.2 255.255.255.0 R2(config-if)#no shutdown R2(config-if)#interface s0/0 R2(config-if)#ip address 172.16.2.1 255.255.255.252 R2(config-if)#clock rate 64000 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#^Z R2# c u hình cho router R3 : ấ Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R3 R3(config)#line console 0 R3(config-line)#password cisco R3(config-line)#line vty 0 4 R3(config-line)#no login R3(config-line)#exit R3(config)#interface s0/0 R3(config-if)#ip address 192.168.1.1 255.255.255.0 R3(config-if)#clock rate 64000 R3(config-if)#no shutdown R3(config-if)#interface e0/0 R3(config-if)#ip address 192.168.4.1 255.255.255.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#^Z R3# c u hình cho router R4 :ấ Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R4 R4(config)#line console 0 R4(config-line)#password cisco R4(config-line)#line vty 0 4 R4(config-line)#no login R4(config-line)#exit R4(config)#interface s0/1 R4(config-if)#ip address 192.168.1.2 255.255.255.0 R4(config-if)#clock rate 64000 R4(config-if)#no shutdown R4(config-if)#interface s0/0 R4(config-if)#ip address 192.168.2.1 255.255.255.252 R4(config-if)#clock rate 64000 R4(config-if)#no shutdown R4(config-if)#exit c u hình cho router R5 :ấ Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R5 R5(config)#line console 0 R5(config-line)#password cisco R5(config-line)#line vty 0 4 R5(config-line)#no login R5(config-line)#exit R5(config)#interface s0/0 R5(config-if)#ip address 192.168.2.2 255.255.255.252 R5(config-if)#clock rate 64000 R5(config-if)#no shutdown R5(config-if)#interface e0/0 R5(config-if)#ip address 172.16.1.2 255.255.255.0 R5(config-if)#no shutdown R5(config-if)#interface loopback 0 R5(config-if)#ip address 10.1.1.1 255.255.255.0 R5(config-if)#^Z R5# ki m tra b ng đ nh tuy n : ể ả ị ế R1#show ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 R2#show ip route Gateway of last resort is not set 172.16.0.0/30 is subnetted, 1 subnets C 172.16.2.0 is directly connected, Serial0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 R3#show ip route Gateway of last resort is not set C 192.168.4.0/24 is directly connected, Ethernet0/0 C 192.168.1.0/24 is directly connected, Serial0/0 R4#show ip route Gateway of last resort is not set C 192.168.1.0/24 is directly connected, Serial0/1 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0/30 is directly connected, Serial0/0 R5#show ip route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets C 172.16.1.0 is directly connected, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 C u hình đ nh tuy n cho các router .Router R2,R3, interface s0/0 c a R1 vàấ ị ế ủ interface s0/1 c a R4 ch y OSPF process 1 ,còn l i là ch y ISIS .ủ ạ ạ ạ Ta bi t c u hình ISIS đòi h i c n ph i có đ a ch NET ,m i system-ID đ iế ấ ỏ ầ ả ị ỉ ỗ ạ di n cho m i node, ta có th g n nó m t cách tùy ý nh ng đ đ m b oệ ỗ ể ắ ộ ư ể ả ả system-ID là duy nh t c a m i router trong m t area ta s s d ng đ a chấ ủ ỗ ộ ẽ ử ụ ị ỉ Mac . Ta ki m tra đ a ch Mac c a thi t b b ng cách show arp ho c show interface .ể ị ỉ ủ ế ị ằ ặ R1#show arp Protocol Address Age (min) Hardware Addr Type Interface Internet 172.16.1.1 - 0004.c052.7ce0 ARPA Ethernet0/0 R4#show interface e0/0 Ethernet0/0 is administratively down, line protocol is down Hardware is AmdP2, address is 0002.4b79.9ca0 (bia 0002.4b79.9ca0) Internet address is 192.168.100.1/24 MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 252/255, txload 1/255, rxload 1/255 R5#sh arp Protocol Address Age (min) Hardware Addr Type Interface Internet 172.16.1.2 - 00d0.ba1a.f080 ARPA Ethernet0/0 C u hình nh sau : ấ ư R1(config)#router ospf 1 R1(config-router)#network 172.16.2.0 0.0.0.3 area 0 R1(config-router)#exit R1(config)#clns routing R1(config)#router isis R1(config-router)#net 01.0001.0004.c052.7ce0.00 R1(config-router)#exit R1(config)#interface e0/0 R1(config-if)#ip router isis R1(config-if)#^Z R1# R2(config)#router ospf 1 R2(config-router)#network 192.168.4.0 0.0.0.255 area 0 R2(config-router)#network 172.16.2.0 0.0.0.3 area 0 R2(config-router)#exit R2(config)#^Z R3(config)#router ospf 1 R3(config-router)#network 192.168.4.0 0.0.0.255 area 0 R3(config-router)#network 192.168.1.0 0.0.0.255 area 0 R3(config-router)#exit R3(config)#^Z R4(config)#router ospf 1 R4(config-router)#network 192.168.1.0 0.0.0.255 area 0 R4(config-router)#exit R4(config)#clns routing R4(config)#router isis R4(config-router)#net 01.0001.0002.4b79.9ca0.00 R4(config-router)#exit R4(config)#int s0/0 R4(config-if)#ip router isis R4(config-if)#^Z R5(config)#clns routing R5(config)#router isis R5(config-router)#net 01.0001.00d0.ba1a.f080.00 R5(config-router)#int s0/0 R5(config-if)#ip router isis R5(config-if)#int e0/0 R5(config-if)#ip router isis R5(config-if)#exit R5(config)#int loopback 0 R5(config-if)#ip router isis R5(config)#^Z ki m tra l i b ng đ nh tuy n :ể ạ ả ị ế R1#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 O 192.168.4.0/24 [110/74] via 172.16.2.1, 00:03:18, Serial0/0 10.0.0.0/24 is subnetted, 1 subnets i L1 10.1.1.0 [115/20] via 172.16.1.2, Ethernet0/0 O 192.168.1.0/24 [110/138] via 172.16.2.1, 00:03:18, Serial0/0 192.168.2.0/30 is subnetted, 1 subnets i L1 192.168.2.0 [115/20] via 172.16.1.2, Ethernet0/0 Nh ng route nào h c t ISIS s b t đ u b ng i. Trong bài này các routerữ ọ ừ ẽ ắ ầ ằ ch y ISIS đ m c đ nh là L1/L2 router và các router đang ch y level – 1ạ ể ặ ị ạ routing nên có kí hi u là L1 .Đ i v i metric c a ISIS thì lo i metric có chi uệ ố ớ ủ ạ ề dài là 1 byte. Bit 8 ch ra s hi n di n c a lo i metric trong TLV.Bit 7 đ cỉ ự ệ ệ ủ ạ ượ dùng đ phân lo i metric là internal hay là external .Internal metric đ c p đ nể ạ ề ậ ế các route đ c t o ra trong mi n ISIS , trong khi đó external route đ c p đ nượ ạ ề ề ậ ế các route bên ngoài mi n ISIS ho c là t các giao th c đ nh tuy n khác. 6 bitề ặ ừ ứ ị ế còn l i dành cho vi c tính toán th c s giá tr c a metric. Do đó ta có giá trạ ệ ự ự ị ủ ị cost c c đ i c a default metric là 63 trên m t link . Đ i v i Cisco router costự ạ ủ ộ ố ớ c a m t link đ c quy t đ nh b i giá tr đ c đăng kí đ n interface ngõ ra .ủ ộ ượ ế ị ở ị ượ ế Cisco đăng kí default metric là 10 cho m i interface mà không quan tâmỗ interface đó thu c lo i nào. Lúc này m i subnetwork đ c xem là b ng nhauộ ạ ỗ ượ ằ và ISIS metric đ c tính toán đ n gi n b ng cách tính t ng các hop-count nóượ ơ ả ằ ổ ph i đi qua đ đ n đích , m i hop có cost là 10. Ví d trong b ng đ nh tuy nả ể ế ỗ ụ ả ị ế c a R1 ta th y ,route 192.168.2.0 có metric là 20 vì nó đi qua R5,R1. Cost c aủ ấ ủ các route h c đ c t OSPF đ c tính t ng t nh bài redistribute gi aọ ượ ừ ượ ươ ự ư ữ classfull và classless. Cost c a 192.168.1.0/24 là 138 vì nó ph i đi qua 2 serialủ ả interface (m i interface có cost là 64) và m t ethernet interface (có cost là 10).ỗ ộ Cách tính cost c a OSPF là không đ i khi th c hi n redistribute ,do đó trongủ ổ ự ệ bài này ta s không xét kĩ v nó .ẽ ề R2#show ip route Gateway of last resort is not set 172.16.0.0/30 is subnetted, 1 subnets C 172.16.2.0 is directly connected, Serial0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 O 192.168.1.0/24 [110/74] via 192.168.4.1, 00:00:05, Ethernet0/0 R3#sh ip route Gateway of last resort is not set 172.16.0.0/30 is subnetted, 1 subnets O 172.16.2.0 [110/74] via 192.168.4.2, 00:01:07, Ethernet0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 C 192.168.1.0/24 is directly connected, Serial0/0 R4#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks i L1 172.16.1.0/24 [115/20] via 192.168.2.2, Serial0/0 O 172.16.2.0/30 [110/138] via 192.168.1.1, 00:01:51, Serial0/1 O 192.168.4.0/24 [110/74] via 192.168.1.1, 00:01:51, Serial0/1 10.0.0.0/24 is subnetted, 1 subnets i L1 10.1.1.0 [115/20] via 192.168.2.2, Serial0/0 C 192.168.1.0/24 is directly connected, Serial0/1 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 R5#show ip route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets C 172.16.1.0 is directly connected, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 Ki m tra b ng l nh ping :ể ằ ệ R4#ping 172.16.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.2.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/40 ms R2#ping 192.168.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms R4#ping 10.1.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/29/32 ms R4#ping 192.168.4.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.4.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/32 ms R2#ping 192.168.2.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: ..... Success rate is 0 percent (0/5) R2 không th ping 192.168.2.1 đ c vì R2 ch y giao th c OSPF còn m ngể ượ ạ ứ ạ 192.168.2.0/24 s d ng ISIS .Mu n th c hi n ping thành công ta ph iử ụ ố ự ệ ả redistribute gi a hai giao th c . c u hình redistribute đ c th c hi n trên cữ ứ ấ ượ ự ệ ả hai routert R1 và R4 đ c g i là multiple redistribute points C u hình nh sau :ượ ọ ấ ư R4(config)#router ospf 1 R4(config-router)#redistribute isis level-1 metric 20 % Only classful networks will be redistributed R4(config-router)#router isis R4(config-router)#redistribute ospf 1 metric 10 level-1-2 R4(config-router)#exit R1(config)#router ospf 1 R1(config-router)#redistribute isis level-1 metric 20 % Only classful networks will be redistributed à redistribute các route ISIS vào OSPF v i metric là 20 và các route này đóngớ vai trò là level-1. R1(config-router)#router isis R1(config-router)#redistribute ospf 1 metric 10 level-1-2 à redistribute nh ng route OSPF vào ISIS v i metric là 10 và các route có vaiữ ớ trò level-1-2 route . Ki m tra b ng đ nh tuy n : ể ả ị ế R2#show ip route Gateway of last resort is not set 172.16.0.0/30 is subnetted, 1 subnets C 172.16.2.0 is directly connected, Serial0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 O 192.168.1.0/24 [110/74] via 192.168.4.1, 00:11:09, Ethernet0/0 à trên b ng đ nh tuy n c a R2 không h c đ c route nào t ISIS lí do là vìả ị ế ủ ọ ượ ừ ch có nh ng classfull networks m i đ c đi vào OSPF .ỉ ữ ớ ượ R5#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 i L1 172.16.2.0/30 [115/20] via 192.168.2.1, Serial0/0 [115/20] via 172.16.1.1, Ethernet0/0 i L1 192.168.4.0/24 [115/20] via 192.168.2.1, Serial0/0 [115/20] via 172.16.1.1, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 i L1 192.168.1.0/24 [115/20] via 192.168.2.1, Serial0/0 [115/20] via 172.16.1.1, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 Đ R2,R3 th y đ c các route trong ISIS ta thêm vào trong câu l nhể ấ ượ ệ redistribute m t subnets.ộ R4(config)#router ospf 1 R4(config-router)#no redistribute isis level-1 metric 20 R4(config-router)#redistribute isis level-1 metric 20 subnets R4(config-router)#router isis R4(config-router)#no redistribute ospf 1 metric 10 level-1-2 R4(config-router)#redistribute ospf 1 metric 10 metric-type external à các route đ c redistribute vào ISIS có th là internal route ho c externalượ ể ặ route (internal là default) ho c là level 1 ,ho c là level 2 (level 2 là default ).ặ ặ Trong c u hình trên các OSPF route đ c redistribute nh là external route v iấ ượ ư ớ default metric là 10 . R1(config)#router ospf 1 R1(config-router)#no redistribute isis level-1 metric 20 R1(config-router)#redistribute isis level-1 metric 20 subnets R1(config-router)#router isis R1(config-router)#no redistribute ospf 1 metric 10 level-1-2 R1(config-router)#redistribute ospf 1 metric 10 metric-type external Ki m tra b ng đ nh tuy n: ể ả ị ế R4#show ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks i L1 172.16.1.0/24 [115/20] via 192.168.2.2, Serial0/0 O 172.16.2.0/30 [110/138] via 192.168.1.1, 00:23:26, Serial0/1 O 192.168.4.0/24 [110/74] via 192.168.1.1, 00:23:26, Serial0/1 10.0.0.0/24 is subnetted, 1 subnets i L1 10.1.1.0 [115/20] via 192.168.2.2, Serial0/0 C 192.168.1.0/24 is directly connected, Serial0/1 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 à b ng đ nh tuy n c a R4 không có gì thay đ i .ả ị ế ủ ổ R1#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 O 192.168.4.0/24 [110/74] via 172.16.2.1, 00:23:14, Serial0/0 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [110/20] via 172.16.2.1, 00:10:32, Serial0/0 O 192.168.1.0/24 [110/138] via 172.16.2.1, 00:23:14, Serial0/0 192.168.2.0/30 is subnetted, 1 subnets i L1 192.168.2.0 [115/20] via 172.16.1.2, Ethernet0/0 à b ng đ nh tuy n đã khác tr c ,có s xu t hi n m t external route .Đó làả ị ế ướ ự ấ ệ ộ route 10.1.1.0 đ c h c thông qua OSPF qua interface 172.16.2.1 thay vì h cượ ọ ọ tr c ti p t router R5 . đây ta g p ph i m t v n đ ,c R1 và R4 đ u đangự ế ừ Ở ặ ả ộ ấ ề ả ề redistribute các route đ c h c b i ISIS vào OSPF.R4 h c m ng 10.1.1.0ượ ọ ở ọ ạ thông qua ISIS và qu ng bá vào OSPF domain .K t qu là R1 h c m ngả ế ả ọ ạ 10.1.1.0 không ph i t R5 mà t R2 thông qua OSPF .ả ừ ừ R1#traceroute 10.1.1.1 Type escape sequence to abort. Tracing the route to 10.1.1.1 1 172.16.2.1 16 msec 16 msec 12 msec 2 192.168.4.1 16 msec 16 msec 16 msec 3 192.168.1.2 28 msec 28 msec 28 msec 4 192.168.2.2 44 msec 16 msec * R4#traceroute 10.1.1.1 Type escape sequence to abort. Tracing the route to 10.1.1.1 1 192.168.2.2 20 msec 24 msec * Ta reload l i router R4 ,quan sát b ng đ nh tuy n c a c 2 router R1 và R4 :ạ ả ị ế ủ ả R1#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 i L2 192.168.4.0/24 [115/94] via 172.16.1.2, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets i L1 10.1.1.0 [115/20] via 172.16.1.2, Ethernet0/0 i L2 192.168.1.0/24 [115/94] via 172.16.1.2, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets i L1 192.168.2.0 [115/20] via 172.16.1.2, Ethernet0/0 à R1 xem R5 nh là next hop đ đi đ n route 10.1.1.0 ,do đó có kí hi u L1ư ể ế ệ .B ng đ nh tuy n cũng cho th y R1 xem route 192.168.1.0 là level-2 , metricả ị ế ấ 94 cho th y đây là external route. ấ Trong khi đó thì R4 l i xem 10.1.1.0 nh là m t route bên ngoài mà nó h cạ ư ộ ọ đ c thông qua R3.ượ R4#show ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks i L1 172.16.1.0/24 [115/20] via 192.168.2.2, Serial0/0 O 172.16.2.0/30 [110/138] via 192.168.1.1, 00:00:18, Serial0/1 O 192.168.4.0/24 [110/74] via 192.168.1.1, 00:00:18, Serial0/1 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [110/20] via 192.168.1.1, 00:00:00, Serial0/1 C 192.168.1.0/24 is directly connected, Serial0/1 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 S h i t trong m t m ng : các router chia s thông tin đ nh tuy n v i nhau ,ự ộ ụ ộ ạ ẽ ị ế ớ nh ng m i cá nhân router ph i t tính toán b ng đ nh tuy n c a chúng .Đ iư ỗ ả ự ả ị ế ủ ố v i m i b ng đ nh tuy n cá nhân đó đ c chính xác , các router đã có m t cáiớ ỗ ả ị ế ượ ộ nhìn chung v topology m ng .Lúc này m ng đ c xem là h i t .N u m ngề ạ ạ ượ ộ ụ ế ạ đang trong quá trình h i t ,s d dàng x y ra nhi u v n đ đ nh tuy n nhộ ụ ẽ ễ ả ề ấ ề ị ế ư router nghĩ r ng m t link đang up trong khi th t s là nó đang b down d nằ ộ ậ ự ị ẫ đ n b ng đ nh tuy n sai và loop d dàng x y ra .M ng đ c xem là h i tế ả ị ế ễ ả ạ ượ ộ ụ nhanh khi khôi ph c đ c s c (nh l i liên k t ho c s thay đ i v m ng )ụ ượ ự ố ư ỗ ế ặ ự ổ ề ạ m t cách nhanh chóng .ộ Các giao th c link-state h i t m ng r t nhanh vì khi có s thay đ i x y raứ ộ ụ ạ ấ ự ổ ả trong m ng ,s thay đ i này ngay l p t c đ c g i đi b ng multicast t i cácạ ự ổ ậ ứ ượ ử ằ ớ neighbor trong partial update (t c là update ch g m có s thay đ i này ) đi uứ ỉ ồ ự ổ ề này làm loop khó có th x y ra trong m t m ng ch y toàn giao th c link- stateể ả ộ ạ ạ ứ . Tr l i v i bài trên ,ta th y loop đã không x y ra nh ng trong c hai tr ngở ạ ớ ấ ả ư ả ườ h p ,router R1 và R4 đ u ch n con đ ng đi không t i u đ n m ng 10.1.1.0ợ ề ọ ườ ố ư ế ạ .R1 thay vì xem R5 nh là next hop đ đ n đích thì nó l i xem R2 nh là nextư ể ế ạ ư hop .R4 cũng t ng t .Ta có th gi i thích đi u này nh sau : (xem b ng đ nhươ ự ể ả ề ư ả ị tuy n tr c khi R4 đ c reload )ế ướ ượ gi s c hai router R1 và R4 th c hi n redistribute cùng m t th i đi m .Cả ử ả ự ệ ộ ờ ể ả hai router đ u g i OSPF update trong đó có m ng 10.1.1.0 ,R4 may m nề ử ạ ắ h n ,nó g i update nhanh h n R1. R4 ch g i nh ng route mà nó h c t ISISơ ử ơ ỉ ử ữ ọ ừ vào OSPF , đó là nh ng route 172.16.1.0 và 10.1.1.0 , nó không g i nh ngữ ử ữ route k t n i tr c ti p ho c là nh ng route nó đã đ c h c thông qua OSPF.ế ố ự ế ặ ữ ượ ọ R3 nh n update t R4 , xem R4 nh là next –hop router (quan sát b ng đ nhậ ừ ư ả ị tuy n c a R3 ,nh ng route h c t R4 đ c tô đ m ) và g i update đ n R2 . ế ủ ữ ọ ừ ượ ậ ử ế R3#show ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks O E2 172.16.1.0/24 [110/20] via 192.168.1.2, 00:28:39, Serial0/0 O 172.16.2.0/30 [110/74] via 192.168.4.2, 00:41:20, Ethernet0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [110/20] via 192.168.1.2, 00:28:39, Serial0/0 C 192.168.1.0/24 is directly connected, Serial0/0 192.168.2.0/30 is subnetted, 1 subnets O E2 192.168.2.0 [110/20] via 192.168.4.2, 00:14:14, Ethernet0/0 R2 , nh n update t R3 ,xem R3 là next-hop router .ậ ừ R2#show ip route 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks O E2 172.16.1.0/24 [110/20] via 192.168.4.1, 00:00:40, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [110/20] via 192.168.4.1, 00:00:40, Ethernet0/0 O 192.168.1.0/24 [110/74] via 192.168.4.1, 00:00:40, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets O E2 192.168.2.0 [110/20] via 172.16.2.2, 00:00:40, Serial0/0 R1 và R2 g i update cho nhau . Khi nh n đ c update c a R2 v m ngử ậ ượ ủ ề ạ 10.1.1.0 , router R1 nghĩ r ng đ ng đi đ n m ng 10.1.1.0 qua R2 t t h n vìằ ườ ế ạ ố ơ có AD nh h n , d n đ n R1 c p nh p b ng đ nh tuy n và xem R2 nh làỏ ơ ẫ ế ậ ậ ả ị ế ư next-hop. R1 không c p nh p nh ng route còn l i t R2 vì b n thân trongậ ậ ữ ạ ừ ả b ng đ nh tuy n c a nó đã t n t i nh ng route đó v i AD t t h n . Khi R2ả ị ế ủ ồ ạ ữ ớ ố ơ nh n update t R1 , nó ch c p nh p route 192.168.2.0 . Lúc này R2 xem R1ậ ừ ỉ ậ ậ nh là next-hop đ đi đ n m ng 192.168.2.0 , R2 l i g i update v m ngư ể ế ạ ạ ử ề ạ 192.168.2.0 cho R3 ,R3 xem R2 là next –hop đ đ n m ng 192.168.2.0 (xemể ế ạ b ng đ nh tuy n ).ả ị ế B ng đ nh tuy n c a R5 ,R5 cân b ng t i gi a hai đ ng : ả ị ế ủ ằ ả ữ ườ R5#show ip route 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 i L2 172.16.2.0/30 [115/84] via 192.168.2.1, Serial0/0 [115/84] via 172.16.1.1, Ethernet0/0 i L2 192.168.4.0/24 [115/84] via 192.168.2.1, Serial0/0 [115/84] via 172.16.1.1, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 i L2 192.168.1.0/24 [115/84] via 192.168.2.1, Serial0/0 [115/84] via 172.16.1.1, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 Khi ra reload lai router R4 , quá trình h c route c a các router di n ra nhọ ủ ễ ư sau : R5 ,R3 nh n ra s thay đ i trong m ng ,ngay l p t c chúng g i update ch baoậ ự ổ ạ ậ ứ ử ỉ g m thông tin v s thay đ i đó cho các router ch y cùng giao th c v iồ ề ự ổ ạ ứ ớ chúng ,trong tr ng h p này R5 g i update cho R1 , R3 g i update cho R2 . R1ườ ợ ử ử cũng có th nh n update cho bi t v s thay đ i trong m ng t R2 nh ng vìể ậ ế ề ự ổ ạ ừ ư ISIS h i t nhanh h n OSPF nên R1 s update thông tin t R5. R1 xem R5 làộ ụ ơ ẽ ừ next-hop đ đi đ n các route còn l i trong m ng .ể ế ạ ạ R1#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 i L2 192.168.4.0/24 [115/94] via 172.16.1.2, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets i L1 10.1.1.0 [115/20] via 172.16.1.2, Ethernet0/0 i L2 192.168.1.0/24 [115/94] via 172.16.1.2, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets i L1 192.168.2.0 [115/20] via 172.16.1.2, Ethernet0/0 Khi R1 đã có đ y đ thông tin v m ng c a nó , là khi các m ng trong ISIS đãầ ủ ề ạ ủ ạ h i t xong , R1 li n g i ngay update đ n cho R2 ,trong update ch bao g mộ ụ ề ử ế ỉ ồ nh ng route bên trong nó h c đ c t ISIS (nh ng route có kí t L1 phíaữ ọ ượ ừ ữ ự tr c ), R2 c p nh p update và g i cho R3 ,R3 l i g i cho R4 .R4 xem R3 nhướ ậ ậ ử ạ ử ư là next-hop .Do đó khi R4 c p nh p update nó s ch n đ ng đi đ n m ngậ ậ ẽ ọ ườ ế ạ 10.1.1.0 qua R3 vì nó th y đ ng đi qua R3 có AD nh h n .ấ ườ ỏ ơ R4#show ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks i L1 172.16.1.0/24 [115/20] via 192.168.2.2, Serial0/0 O 172.16.2.0/30 [110/138] via 192.168.1.1, 00:00:18, Serial0/1 O 192.168.4.0/24 [110/74] via 192.168.1.1, 00:00:18, Serial0/1 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [110/20] via 192.168.1.1, 00:00:00, Serial0/1 C 192.168.1.0/24 is directly connected, Serial0/1 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 Qua phân tích trên ta th y administrative distance có th gây vi c ch n đ ngấ ể ệ ọ ườ đi không t i u mà trong m t vài giao th c khác nh RIP ,IGRP có th gâyố ư ộ ứ ư ể loop , làm ch m l i quá trình h i t . có nhi u cách gi i quy t v n đ này nhậ ạ ộ ụ ề ả ế ấ ề ư là s d ng route filtering , thay đ i administrative distance b ng ph ng phápử ụ ổ ằ ươ th công , hay là s d ng route map .Trong bài này ta s thay đ i AD b ngủ ử ụ ẽ ổ ằ cách dùng thêm câu l nh distance đ gi i quy t v n đ sub-optimal route , màệ ể ả ế ấ ề trong m t vài tr ng h p loop và black-hole có th x y ra .ộ ườ ợ ể ả Thay đ i AD sao cho R1 mu n đi đ n m ng 10.1.1.0 và 192.168.1.0 ph i coiổ ố ế ạ ả router R5 là next-hop .R4 mu n đi đ n m ng 10.1.1.0 và 172.16.1.0 ph i coiố ế ạ ả R5 là next-hop. R2,R3 có th tùy ý ch n l a đ ng .ể ọ ự ườ c u hình nh sau : ấ ư R4(config)#router ospf 1 R4(config-router)#distance 130 R4(config-router)#distance 110 0.0.0.0 255.255.255.255 1 R4(config-router)#router isis R4(config-router)#distance 130 R4(config-router)#distance 115 192.168.2.2 0.0.0.0 2 R4(config-router)#exit R4(config)#access-list 1 permit 192.168.4.0 R4(config)#access-list 1 permit 172.16.2.0 0.0.0.3 R4(config)#access-list 2 permit 10.1.1.0 0.0.0.255 R4(config)#access-list 2 permit 172.16.1.0 0.0.0.255 R1(config)#router ospf 1 R1(config-router)#distance 130 R1(config-router)#distance 110 0.0.0.0 255.255.255.255 1 R1(config-router)#router isis R1(config-router)#distance 130 R1(config-router)#distance 115 172.16.1.2 0.0.0.0 2 R1(config-router)#exit R1(config)#access-list 1 permit 192.168.4.0 0.0.0.255 R1(config)#access-list 1 permit 192.168.1.0 0.0.0.255 R1(config)#access-list 2 permit 10.1.1.0 0.0.0.255 R1(config)#access-list 2 permit 172.16.1.0 0.0.0.255 R1#sh run ! router ospf 1 log-adjacency-changes redistribute isis level-1 metric 20 subnets network 172.16.2.0 0.0.0.3 area 0 distance 130 distance 110 0.0.0.0 255.255.255.255 1 ! router isis net 01.0001.0004.c052.7ce0.00 redistribute ospf 1 metric 10 metric-type external distance 130 clns distance 115 172.16.1.2 0.0.0.0 2 ! ! access-list 1 permit 192.168.4.0 0.0.0.255 access-list 1 permit 192.168.1.0 0.0.0.255 access-list 2 permit 10.1.1.0 0.0.0.255 access-list 2 permit 192.168.2.0 0.0.0.255 ! R4#sh run ! router ospf 1 log-adjacency-changes redistribute isis level-1 metric 20 subnets network 192.168.1.0 0.0.0.255 area 0 distance 130 distance 110 0.0.0.0 255.255.255.255 1 ! router isis net 01.0001.0002.4b79.9ca0.00 redistribute ospf 1 metric 10 metric-type external distance 130 clns distance 115 192.168.2.2 0.0.0.0 2 ! access-list 1 permit 192.168.4.0 access-list 1 permit 172.16.2.0 0.0.0.3 access-list 2 permit 10.1.1.0 0.0.0.255 access-list 2 permit 172.16.1.0 0.0.0.255 ! Câu l nh distance đ u tiên trong hai c u hình thi t l p distance m c đ nh choệ ầ ấ ế ậ ặ ị các route c a OSPF và ISIS là 130 . Câu l nh distance th hai thi t l p m tủ ệ ứ ế ậ ộ distance khác tùy theo router qu ng bá nào đ c ch đ nh và có tham chi u đ nả ượ ỉ ị ế ế access-list .Ch ng h n trên router R1 , ti n trình ISIS c a R1 đăng kí distanceẳ ạ ế ủ là 115 cho các route đ c qu ng bá b i R5 và đ c cho phép b i access-listượ ả ở ượ ở 2 .T t c các route còn l i đ c gán distance b ng 130 . Inverse mask đ c sấ ả ạ ượ ằ ượ ử d ng trong đ a ch c a router qu ng bá (c th là R5 ) ch ra chính xácụ ị ỉ ủ ả ụ ể ỉ interface nào mà R1 c n đi đ n .Đ i v i OSPF , đ a ch và inverse mask trongầ ế ố ớ ị ỉ câu l nh distance là 0.0.0.0 255.255.255.255 ch đ nh b t kì router nào .Cácệ ỉ ị ấ route OSPF t t t c các router đ c cho phép b i access- list 1 đ c đăng kíừ ấ ả ượ ở ượ m t distance là 110 , t t c các route còn l i khác có distance là 130 .ộ ấ ả ạ Câu l nh distance trong R4 đ c gi i thích t ng t .ệ ượ ả ươ ự K t qu là ta có b ng đ nh tuy n sau : ế ả ả ị ế R4#sh ip route 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks i L1 172.16.1.0/24 [115/20] via 192.168.2.2, Serial0/0 O 172.16.2.0/30 [110/138] via 192.168.1.1, 00:57:37, Serial0/1 O 192.168.4.0/24 [110/74] via 192.168.1.1, 00:57:37, Serial0/1 10.0.0.0/24 is subnetted, 1 subnets i L1 10.1.1.0 [115/20] via 192.168.2.2, Serial0/0 C 192.168.1.0/24 is directly connected, Serial0/1 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 R1#sh ip route 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 O 192.168.4.0/24 [110/74] via 172.16.2.1, 00:00:53, Serial0/0 10.0.0.0/24 is subnetted, 1 subnets i L1 10.1.1.0 [115/20] via 172.16.1.2, Ethernet0/0 O 192.168.1.0/24 [110/138] via 172.16.2.1, 00:00:53, Serial0/0 192.168.2.0/30 is subnetted, 1 subnets i L1 192.168.2.0 [115/20] via 172.16.1.2, Ethernet0/0 Trong b ng đ nh tuy n c a R4 ta th y r ng , R4 đang đ nh tuy n đ n t t cả ị ế ủ ấ ằ ị ế ế ấ ả các m ng trong mi n OSPF thông qua R3 và đ n t t c các m ng trong mi nạ ề ế ấ ả ạ ề ISIS thông qua R5 . Distance c a OSPF và ISIS đ c g n cho các route .B ngủ ượ ắ ả đ nh tuy n c a R1 t ng t .ị ế ủ ươ ự Đ th y rõ h n ý nghĩa c a câu l nh distance 130 ,ta gi s interface gi a R5ể ấ ơ ủ ệ ả ử ữ và R4 down . R4(config)#int s0/0 R4(config-if)#shutdown *Mar 1 01:44:29.056: %LINK-5-CHANGED: Interface Serial0/0, changed state to administratively down *Mar 1 01:44:30.058: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down ki m tra l i b ng đ nh tuy n c a R4 : ể ạ ả ị ế ủ R4#sh ip route Gateway of last resort is not set 172.16.0.0/30 is subnetted, 1 subnets O 172.16.2.0 [110/138] via 192.168.1.1, 00:37:45, Serial0/1 O 192.168.4.0/24 [110/74] via 192.168.1.1, 00:37:45, Serial0/1 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [130/20] via 192.168.1.1, 00:00:22, Serial0/1 C 192.168.1.0/24 is directly connected, Serial0/1 B ng đ nh tuy n cho th y t t c các route bây gi đi đ n R4 thông qua R3ả ị ế ấ ấ ả ờ ế .Các route đ n các m ng trong mi n ISIS có distance là 130 , đây là route màế ạ ề R4 h c đ c thông qua OSPF có metric là 20 vì là external route .Khi k t n iọ ượ ế ố trên interface c a R4 và R5 đ c khôi ph c tr l i, các b n tin qu ng bá ISISủ ượ ụ ở ạ ả ả t R5 v i distance 115 s thay th các b n tin qu ng bá OSPF v i distanceừ ớ ẽ ế ả ả ớ 130 . T ng t ,gi s khi k t n i gi a R5 và R1 b down thì R1 cũng h c các routeươ ự ả ử ế ố ữ ị ọ trong mi n ISIS thông qua OSPF v i distance là 130 .ề ớ R1#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks O E2 172.16.1.0/24 [130/20] via 172.16.2.1, 00:00:03, Serial0/0 C 172.16.2.0/30 is directly connected, Serial0/0 O 192.168.4.0/24 [110/74] via 172.16.2.1, 00:00:03, Serial0/0 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [130/20] via 172.16.2.1, 00:00:03, Serial0/0 O 192.168.1.0/24 [110/138] via 172.16.2.1, 00:00:03, Serial0/0 B ng đ nh tuy n c a các router còn l i khi t t c các interface đ u up là : ả ị ế ủ ạ ấ ả ề R2#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks O E2 172.16.1.0/24 [110/20] via 192.168.4.1, 00:00:45, Ethernet0/0 C 172.16.2.0/30 is directly connected, Serial0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [110/20] via 172.16.2.2, 00:00:45, Serial0/0 O 192.168.1.0/24 [110/74] via 192.168.4.1, 01:32:57, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets O E2 192.168.2.0 [110/20] via 172.16.2.2, 00:00:50, Serial0/0 R3#sh ip route Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks O E2 172.16.1.0/24 [110/20] via 192.168.1.2, 00:01:49, Serial0/0 O 172.16.2.0/30 [110/74] via 192.168.4.2, 01:34:01, Ethernet0/0 C 192.168.4.0/24 is directly connected, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets O E2 10.1.1.0 [110/20] via 192.168.1.2, 00:01:49, Serial0/0 C 192.168.1.0/24 is directly connected, Serial0/0 192.168.2.0/30 is subnetted, 1 subnets O E2 192.168.2.0 [110/20] via 192.168.4.2, 00:01:54, Ethernet0/0 R5#sh ip route 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 i L2 172.16.2.0/30 [115/84] via 192.168.2.1, Serial0/0 [115/84] via 172.16.1.1, Ethernet0/0 i L2 192.168.4.0/24 [115/84] via 192.168.2.1, Serial0/0 [115/84] via 172.16.1.1, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 i L2 192.168.1.0/24 [115/84] via 192.168.2.1, Serial0/0 [115/84] via 172.16.1.1, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 Hi n t i R5 đang th c hi n cân b ng t i v i chi phí b ng nhau trên c haiệ ạ ự ệ ằ ả ớ ằ ả router R1 và R4 đ đi đ n các route trong mi n OSPF .Ta xây d ng chính sáchể ế ề ự trên R5 sao cho R5 s d ng R1 nh là gateway chính đ đi đ n mi n OSPF ,ử ụ ư ể ế ề các route ch đi qua R4 khi R1 không còn thích h p .T c là s d ng R1 nh làỉ ợ ứ ử ụ ư primary gateway còn R4 là backup gateway .S d ng câu l nh distance đử ụ ệ ể th c hi n đi u này : ự ệ ề R5(config)#router isis R5(config-router)#distance 100 172.16.1.1 0.0.0.0 R5# clear ip route * R5#sh ip route 172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks C 172.16.1.0/24 is directly connected, Ethernet0/0 i L2 172.16.2.0/30 [100/84] via 172.16.1.1, Ethernet0/0 i L2 192.168.4.0/24 [100/84] via 172.16.1.1, Ethernet0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 i L2 192.168.1.0/24 [100/84] via 172.16.1.1, Ethernet0/0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 à R5 xem R1 nh là next-hop .ư gi s R1 không còn ch y n a .ả ử ạ ữ R5(config)#int e0/0 R5(config-if)#shutdown R5#debug ip packet IP packet debugging is on 03:27:42: IP: s=172.16.1.2 (local), d=172.16.1.1, len 56, unroutable 03:28:02: IP: s=172.16.1.2 (local), d=172.16.1.1, len 56, unroutable 03:28:21: IP: s=172.16.1.2 (local), d=172.16.1.1, len 56, unroutable R5#sh ip route 172.16.0.0/30 is subnetted, 1 subnets i L2 172.16.2.0 [115/84] via 192.168.2.1, Serial0/0 i L2 192.168.4.0/24 [115/84] via 192.168.2.1, Serial0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, Loopback0 i L2 192.168.1.0/24 [115/84] via 192.168.2.1, Serial0/0 192.168.2.0/30 is subnetted, 1 subnets C 192.168.2.0 is directly connected, Serial0/0 à R5 bây gi chuy n sang xem R4 nh là next-hop .ờ ể ư

Các file đính kèm theo tài liệu này:

  • pdfRedistribute giữa ISIS và OSPF.pdf
Tài liệu liên quan