router isis net 49.0001.0000.0001.00 is-type level-1 log-adjacency-changes ! interface Ethernet0/0 ip address 192.168.12.1 255.255.255.0 ip router isis
R2的配置
1 2 3 4 5 6 7 8 9 10 11
router isis net 49.0001.0000.0002.00 log-adjacency-changes ! interface Ethernet0/0 ip address 192.168.12.2 255.255.255.0 ip router isis ! interface Ethernet0/1 ip address 192.168.23.2 255.255.255.0 ip router isis
R3的配置
1 2 3 4 5 6 7 8 9 10 11 12
router isis net 49.0002.0000.0003.00 is-type level-2-only log-adjacency-changes ! interface Loopback0 ip address 3.3.3.3 255.255.255.0 ip router isis ! interface Ethernet0/0 ip address 192.168.23.3 255.255.255.0 ip router isis
R2#sh clns neighbors System Id Interface SNPA State Holdtime Type Protocol R3 Et0/1 cc02.213c.0000 Up 25 L2 IS-IS R1 Et0/0 cc00.213c.0000 Up 27 L1 IS-IS
好像也没啥,问题,下面检查连通性时。我就发现了如下问题:
1 2 3 4 5
R1#ping 3.3.3.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds: ..... Success rate is 0 percent (0/5)
R1无法访问R3的loopback接口,我赶紧检查R1的路由表,然后发现:
1 2 3 4
R1#sh ip route Gateway of last resort is not set C 192.168.12.0/24 is directly connected, Ethernet0/0 i L1 192.168.23.0/24 [115/20] via 192.168.12.2, Ethernet0/0
R1#sh ip route Gateway of last resort is 192.168.12.2 to network 0.0.0.0 C 192.168.12.0/24 is directly connected, Ethernet0/0 i L1 192.168.23.0/24 [115/20] via 192.168.12.2, Ethernet0/0 i*L1 0.0.0.0/0 [115/10] via 192.168.12.2, Ethernet0/0