拓扑图

ISIS基础配置(二)_第1张图片

实验过程

1.  R1的预配置

R1#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#int lo0

R1(config-if)#ip add 172.16.1.1 255.255.255.0

R1(config-if)#int s0/0

R1(config-if)#no shut

R1(config-if)#ip add 172.16.255.1 255.255.255.252

R1(config-if)#exit

2.  R2的预配置

R2#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R2(config)#

R2(config)#int s0/0

R2(config-if)#no shut

R2(config-if)#ip add 172.16.255.2 255.255.255.252

R2(config-if)#int s0/1

R2(config-if)#no shut

R2(config-if)#ip add 172.16.255.5 255.255.255.252

R2(config-if)#exit

3.  R3的预配置

R3#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R3(config)#int s0/1

R3(config-if)#no shut

R3(config-if)#ip add 172.16.255.6 255.255.255.252

R3(config-if)#int lo0

R3(config-if)#ip add 172.16.16.1 255.255.255.0

R3(config-if)#exit

4.  R1ISIS配置

R1(config)#router isis  //启动ISIS

R1(config-router)#net 49.0001.ca00.0bbc.0000.00

R1(config-router)#int lo0

R1(config-if)#ip router isis  //在接口下启动ISIS

R1(config-if)#int s0/0

R1(config-if)#ip router isis

R1(config-if)#end

5.  R2ISIS配置

R2(config)#router isis

R2(config-router)#net 49.0001.ca01.0bbc.0000.00

R2(config-router)#int s0/0

R2(config-if)#ip router isis

R2(config-if)#int s0/1

R2(config-if)#ip router isis

R2(config-if)#end

6.  R3ISIS配置

R3(config)#router isis

R3(config-router)#net 49.0001.ca02.0bbc.0000.00

R3(config-router)#int s0/1

R3(config-if)#ip router isis

R3(config-if)#int lo0

R3(config-if)#ip router isis

R3(config-if)#end

7.  查看R1的路由表

R1#show ip route

Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

       E1 - OSPF external type 1, E2 - OSPF external type 2

       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

       ia - IS-IS inter area, * - candidate default, U - per-user static route

       o - ODR, P - periodic downloaded static route

 

Gateway of last resort is not set

 

     172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks

C       172.16.255.0/30 is directly connected, Serial0/0

i L1    172.16.255.4/30 [115/20] via 172.16.255.2, Serial0/0

i L1    172.16.16.0/24 [115/30] via 172.16.255.2, Serial0/0

C       172.16.1.0/24 is directly connected, Loopback0

说明:通过ISIS学习的路由用“i”表示。

 

8.  测试连通性

R1#ping 172.16.16.1 source lo0 repeat 10

 

Type escape sequence to abort.

Sending 10, 100-byte ICMP Echos to 172.16.16.1, timeout is 2 seconds:

Packet sent with a source address of 172.16.1.1

!!!!!!!!!!

Success rate is 100 percent (10/10), round-trip min/avg/max = 16/41/112 ms

9.  查看R2路由器ISIS邻居表

R2#show isis nei

 

System Id      Type Interface IP Address      State Holdtime Circuit Id

R3             L1L2 Se0/1     172.16.255.6    UP    29       00

R1             L1L2 Se0/0     172.16.255.1    UP    25       00

10. 查看主机名与系系统标识符

R2#show isis host

Level  System ID      Dynamic Hostname  (notag)

     * CA01.0BBC.0000     R2

 1     CA00.0BBC.0000    R1

 1     CA02.0BBC.0000    R3

11. 查看ISIS链路状态数据库

R2#show isis da

 

IS-IS Level-1 Link State Database:

LSPID                LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL

R1.00-00              0x00000004   0x3DDC        525               0/0/0

R2.00-00            * 0x00000004   0x8169        575               0/0/0

R3.00-00              0x00000003   0x43B1        582               0/0/0

IS-IS Level-2 Link State Database:

LSPID                LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL

R1.00-00              0x00000006   0x241C        584               0/0/0

R2.00-00            * 0x00000005   0x5EBD        586               0/0/0

R3.00-00              0x00000005   0xDE4F        588               0/0/0

12. 指定路由器类型为level-1类型路由器

R1(config)#router isis

R1(config-router)#is-type level-1

R1(config-router)#end

R2(config)#router isis

R2(config-router)#is-type level-1

R2(config-router)#end

R3(config)#router isis

R3(config-router)#is-type level-1

R3(config-router)#end

13. 查看ISIS链路状态数据库

R2#show isis da

 

IS-IS Level-1 Link State Database:

LSPID                LSP Seq Num  LSP Checksum  LSP Holdtime      ATT/P/OL

R1.00-00              0x00000009   0x31E5        1095              0/0/0

R2.00-00            * 0x00000009   0x7572        1113              0/0/0

R3.00-00              0x00000006   0x3BB8        1112              0/0/0

14. 再次测试连通性

R1#ping 172.16.16.1 source lo0 repeat 10

 

Type escape sequence to abort.

Sending 10, 100-byte ICMP Echos to 172.16.16.1, timeout is 2 seconds:

Packet sent with a source address of 172.16.1.1

!!!!!!!!!!

Success rate is 100 percent (10/10), round-trip min/avg/max = 8/43/96 ms