CCNP-19 IS-IS试验2
实验拓扑:
试验要求:
R1 R2 R3
全部采用集成的
ISIS
路由协议,
R1 R2
在区域
49.0001
内,
R3
在区域
49.0002
内,
R1
与
R2
之间的链路类型为
L1
,
R2
与
R3
之间的链路类型为
L2
。
试验目的:掌握基本的集成
ISIS
配置
实验配置:
R1
:
R1(config)#router isis
R1(config-router)#net 49.0001.1111.1111.1111.00
R1(config-router)#is-type level-1
R1(config-router)#exit
R1(config)#int loop0
R1(config-if)#ip add 1.1.1 .1 255.255.255.0
R1(config-if)#ip router isis
R1(config-if)#exit
R1(config)#int loop1
R1(config-if)#ip add 2.2.2 .2 255.255.255.0
R1(config-if)#ip router isis
R1(config-if)#exit
R1(config)#int f0/0
R1(config-if)#ip add 199.99.1.1 255.255.255.0
R1(config-if)#ip router isis
R1(config-if)#no shu
R1(config-if)#exit
R2
:
R2(config)#router isis
R2(config-router)#net 49.0001.2222.2222.2222.00
R2(config-router)#exit
R2(config)#int loop0
R2(config-if)#ip add 3.3.3 .3 255.255.255.0
R2(config-if)#ip router isis
R2(config-if)#exit
R2(config)#int loop1
R2(config-if)#ip add 4.4.4 .4 255.255.255.0
R2(config-if)#ip router isis
R2(config-if)#exit
R2(config)#int f0/0
R2(config-if)#ip add 199.99.1.2 255.255.255.0
R2(config-if)#ip router isis
R2(config-if)# isis circuit-type level-1
R2(config-if)#no shu
R2(config-if)#exit
R2(config)#int s1/0
R2(config-if)#ip add 199.99.2.1 255.255.255.0
R2(config-if)#ip router isis
R2(config-if)# isis circuit-type level-2-only
R2(config-if)#clock rate 64000
R2(config-if)#no shu
R2(config-if)#exit
R3
:
R3(config)#router isis
R3(config-router)#net 49.0002.3333.3333.3333.00
R3(config-router)#is-type level-2-only
R3(config-router)#exit
R3(config)#int loop0
R3(config-if)#ip add 5.5.5 .5 255.255.255.0
R3(config-if)#ip router isis
R3(config-if)#exit
R3(config)#int loop1
R3(config-if)#ip add 6.6.6 .6 255.255.255.0
R3(config-if)#ip router isis
R3(config-if)#exit
R3(config)#int s1/0
R3(config-if)#ip add 199.99.2.2 255.255.255.0
R3(config-if)#ip router isis
R3(config-if)#no shu
R3(config-if)#exit
以上为基本的集成
ISIS
的配置,起
Loop
接口做测试,注意有一点需要提出的是,在上次试验中我既在
ISIS
配置模式下配置了路由器的
level
,又在接口模式下配置了
circuit-type
的
level
,今天又一次看
ISIS
的时候发现其实这两条命令之需要一条就可以了。
OK
,下面查看一下邻居关系:
Router#show clns is-neighbors
System Id Interface State Type Priority Circuit Id Format
R2 Fa0/0 Up L1 64 R2.03 Phase V
R2#show clns is-neighbors
System Id Interface State Type Priority Circuit Id Format
R1 Fa0/0 Up L1 64 R2.03 Phase V
R3 Se1/0 Up L2 0 00 Phase V
R3#show clns is-neighbors
System Id Interface State Type Priority Circuit Id Format
R2 Se1/0 Up L2 0 00 Phase V
邻居关系状态都
UP
了,表示成功建立了
ISIS
的邻居关系,
R2.03
表示在
LAN
环境下
R2
为
DIS
。然后我们查看一下
show ip protocols
:
R1#show ip protocols
Routing Protocol is " isis "
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: isis
Address Summarization:
None
Maximum path: 4
Routing for Networks:
Loopback0
Loopback1
FastEthernet0/0
Routing Information Sources:
Gateway Distance Last Update
3.3.3 .3 115 00:00:39
Distance: (default is 115)
R2#show ip protocols
Routing Protocol is " isis "
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: isis
Address Summarization:
None
Maximum path: 4
Routing for Networks:
Loopback0
Loopback1
FastEthernet0/0
Serial1/0
Routing Information Sources:
Gateway Distance Last Update
5.5.5 .5 115 00:00:11
1.1.1 .1 115 00:00:06
Distance: (default is 115)
R3#show ip protocols
Routing Protocol is " isis "
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: isis
Address Summarization:
None
Maximum path: 4
Routing for Networks:
Loopback0
Loopback1
Serial1/0
Routing Information Sources:
Gateway Distance Last Update
3.3.3 .3 115 00:00:11
Distance: (default is 115)
从上面的信息可以看到集成
ISIS
的一些信息,注意
Gateway
显示的是
loopback0
的地址,
ISIS
的管理距离为
115
,为什么会选用这个地址?会不会像
OSPF
选取
router-id
一样呢?我们做一下测试:
R3(config)#int loop2
R3(config-if)#ip add 1.1.2 .1 255.255.255.0
R3(config-if)#ip router isis
R3(config-if)#end
在
R3
上再起一个
loopback
接口,
IP
地址要小于
loopback0
的
IP
地址,然后在
R2
上
clear isis *
后,在
show ip procols
查看:
R2#show ip protocols
Routing Protocol is " isis "
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: isis
Address Summarization:
None
Maximum path: 4
Routing for Networks:
Loopback0
Loopback1
FastEthernet0/0
Serial1/0
Routing Information Sources:
Gateway Distance Last Update
5.5.5 .5 115 00:00:00
1.1.1 .1 115 00:00:22
Distance: (default is 115)
没有任何变化,好的,下面我们把
R3
的
loopback0
接口地址做一下修改:
R3(config)#int loop0
R3(config-if)#ip add 1.1.3 .1 255.255.255.0
R3(config-if)#end
这回再到
R2
上
show ip procols
时会发现变化:
R2#show ip protocols
Routing Protocol is " isis "
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Redistributing: isis
Address Summarization:
None
Maximum path: 4
Routing for Networks:
Loopback0
Loopback1
FastEthernet0/0
Serial1/0
Routing Information Sources:
Gateway Distance Last Update
5.5.5 .5 115 00:00:28
1.1.1 .1 115 00:00:02
1.1.3 .1 115 00:00:02
Distance: (default is 115)
多了一个
1.1.3
.1
的地址,表示采用了新的
R3 Loopback0
接口地址,
5.5.5.5
的地址还在,并没有消除,等邻居计时器超时后就会消除的。由此我们可以判断出这里显示的地址为相邻路由器
loopback0
口的
IP
地址。
下面我们来查看一下
LSDB
:
R1#show isis database
IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 * 0x00000004 0x0170 1086 0/0/0
R2.00-00 0x00000007 0x9E 4A 1114 1/0/0
R2.03-00 0x00000001 0x 183C 1040 0/0/0
R2#show isis database
IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 0x00000004 0x0170 1162 0/0/0
R2.00-00 * 0x00000007 0x9E 4A 1195 1/0/0
R2.03-00 * 0x00000001 0x 183C 1120 0/0/0
IS-IS Level-2 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R2.00-00 * 0x 0000000A 0x43B5 1189 0/0/0
R3.00-00 0x00000002 0x 2F 4C 1187 0/0/0
R3#show isis database
IS-IS Level-2 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R2.00-00 0x 0000000A 0x43B5 1189 0/0/0
R3.00-00 * 0x00000002 0x 2F 4C 1191 0/0/0
这里可以看到在
LAN
环境下,
R2
后面的
ATT
为
1,
表示它为一个边界路由器,
R2.03-00
表示
R2
为
DIS
。最后我们来查看一下路由表:
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 199.99.1.2 to network 0.0.0 .0
1.0.0 .0/24 is subnetted, 1 subnets
C 1.1.1 .0 is directly connected, Loopback0
2.0.0 .0/24 is subnetted, 1 subnets
C 2.2.2 .0 is directly connected, Loopback1
3.0.0 .0/24 is subnetted, 1 subnets
i L1 3.3.3 .0 [115/20] via 199.99.1.2, FastEthernet0/0
4.0.0 .0/24 is subnetted, 1 subnets
i L1 4.4.4 .0 [115/20] via 199.99.1.2, FastEthernet0/0
C 199.99.1.0/24 is directly connected, FastEthernet0/0
i*L1 0.0.0 .0/0 [115/10] via 199.99.1.2, FastEthernet0/0
R2#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
1.0.0 .0/24 is subnetted, 3 subnets
i L1 1.1.1 .0 [115/20] via 199.99.1.1, FastEthernet0/0
i L2 1.1.2 .0 [115/20] via 199.99.2.2, Serial1/0
i L2 1.1.3 .0 [115/20] via 199.99.2.2, Serial1/0
2.0.0 .0/24 is subnetted, 1 subnets
i L1 2.2.2 .0 [115/20] via 199.99.1.1, FastEthernet0/0
3.0.0 .0/24 is subnetted, 1 subnets
C 3.3.3 .0 is directly connected, Loopback0
4.0.0 .0/24 is subnetted, 1 subnets
C 4.4.4 .0 is directly connected, Loopback1
6.0.0 .0/24 is subnetted, 1 subnets
i L2 6.6.6 .0 [115/20] via 199.99.2.2, Serial1/0
C 199.99.2.0/24 is directly connected, Serial1/0
C 199.99.1.0/24 is directly connected, FastEthernet0/0
R3#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
1.0.0 .0/24 is subnetted, 3 subnets
i L2 1.1.1 .0 [115/30] via 199.99.2.1, Serial1/0
C 1.1.2 .0 is directly connected, Loopback2
C 1.1.3 .0 is directly connected, Loopback0
2.0.0 .0/24 is subnetted, 1 subnets
i L2 2.2.2 .0 [115/30] via 199.99.2.1, Serial1/0
3.0.0 .0/24 is subnetted, 1 subnets
i L2 3.3.3 .0 [115/20] via 199.99.2.1, Serial1/0
4.0.0 .0/24 is subnetted, 1 subnets
i L2 4.4.4 .0 [115/20] via 199.99.2.1, Serial1/0
6.0.0 .0/24 is subnetted, 1 subnets
C 6.6.6 .0 is directly connected, Loopback1
C 199.99.2.0/24 is directly connected, Serial1/0
i L2 199.99.1.0/24 [115/20] via 199.99.2.1, Serial1/0
上面用红颜色标记的部分表示都是通过
ISIS
学习到的,
I L1
表示的是
LEVEL-1
路由,
I L2
表示的是
LEVEL-2
的路由,
I*L1
表示的是缺省路由,下面在
R1
上
ping
测试一下:
R1#ping 199.99.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.99.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 168/191/216 ms
通了。
实验总结:
掌握基本的集成
ISIS
配置方法,并会使用
show
命令对集成
ISIS
的配置进行检验。