ISIS路由协议测试方案

更新时间:2023-04-23 12:28:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

bluefox..tech

Isis路由协议

9.5.1 验证is-is 基本功能 9.5.2 验证is-is的路由聚合

9.5.3 验证is-is发布和引入路由

9.5.4 is-is L2路由到L1路由的泄露功能测试

验证is-is的基本功能

测试编号9.5.1验证is-is的基本功能 测试组网图:

bluefox..tech

测试结果:

测试步骤和结果:步骤 2、步骤 3:配置 R1/R2/R3 以及路由协议 isis

R1: interface Loopback0 ip address 172.16.1.1 255.255.255.0 ip router isis bluefox //接口激活 isis interface Loopback1 ip address 172.16.2.1 255.255.255.0 ip router isis bluefox interface Loopback2 ip address 172.16.3.1 255.255.255.0 ip router isis bluefox interface Loopback3 ip address 172.16.4.1 255.255.255.0 ip router isis bluefox interface FastEthernet0/0 ip address 10.0.1.2 255.255.255.252 ip router isis bluefox router isis bluefox net 49.0002.0000.0000.0001.00 is-type level-1 R2: interface FastEthernet0/0 ip address 10.0.1.1 255.255.255.252 ip router isis bluefox interface FastEthernet1/0 ip address 10.0.0.1 255.255.255.252 ip router isis bluefox router isis bluefox net 49.0002.0000.0000.0002.00 //L1 和 L1/L2 路由器处在同一区域; R3: interface Loopback0 ip address 192.168.0.1 255.255.255.0 ip router isis bluefox ! interface FastEthernet0/0 ip address 10.0.0.2 255.255.255.252 ip router isis bluefox router isis bluefox net 49.0001.0000.0000.0003.00步骤 4:查看 isis 邻居

System Id R2

Type Interface L1 Fa0/0

IP Address 10.0.1.1

State Holdtime Circuit Id UP 7 R2.01

bluefox..tech

R1#show isis neighbors

System Id R2 R2#show isis nei

Type Interface L1 Fa0/0

IP Address 10.0.1.1

State Holdtime Circuit Id UP 7 R2.01

System Id R3 R1

Type Interface L2 L1 Fa1/0 Fa0/0

IP Address 10.0.0.2 10.0.1.2

State Holdtime Circuit Id UP UP 9 23 R3.01 R2.01

R3#show isis neighbors

System Id R2

Type Interface L2 Fa0/0

IP Address 10.0.0.1

State Holdtime Circuit Id UP 27 R3.01

步骤5:查看路由表 R1#SHOW IP ROUTE Gateway of last resort is 10.0.1.1 to network 0.0.0.0 172.16.0.0/24 is subnetted, 4 subnets C C C C 172.16.4.0 is directly connected, Loopback3 172.16.1.0 is directly connected, Loopback0 172.16.2.0 is directly connected, Loopback1 172.16.3.0 is directly connected, Loopback2 10.0.0.0/30 is subnetted, 2 subnets i L1 C 10.0.0.0 [115/20] via 10.0.1.1, FastEthernet0/0 10.0.1.0 is directly connected, FastEthernet0/0

i*L1 0.0.0.0/0 [115/10] via 10.0.1.1, FastEthernet0/0 R2#SHOW IP ROUTE Gateway of last resort is not set 172.16.0.0/24 is subnetted, 4 subnets i L1 i L1 i L1 i L1 172.16.4.0 [115/20] via 10.0.1.2, FastEthernet0/0 172.16.1.0 [115/20] via 10.0.1.2, FastEthernet0/0 172.16.2.0 [115/20] via 10.0.1.2, FastEtherne

t0/0 172.16.3.0 [115/20] via 10.0.1.2, FastEthernet0/0 10.0.0.0/30 is subnetted, 2 subnets C C 10.0.0.0 is directly connected, FastEthernet1/0 10.0.1.0 is directly connected, FastEthernet0/0

i L2 192.168.0.0/24 [115/20] via 10.0.0.2, FastEthernet1/0 R3#show ip route 172.16.0.0/24 is subnetted, 4 subnets i L2 i L2 i L2 i L2 172.16.4.0 [115/30] via 10.0.0.1, FastEthernet0/0 172.16.1.0 [115/30] via 10.0.0.1, FastEthernet0/0 172.16.2.0 [115/30] via 10.0.0.1, FastEthernet0/0 172.16.3.0 [115/30] via 10.0.0.1, FastEthernet0/0 10.0.0.0/30 is subnetted, 2 subnets C i L2 C 10.0.0.0 is directly connected, FastEthernet0/0 10.0.1.0 [115/20] via 10.0.0.1, FastEthernet0/0 192.168.0.0/24 is directly connected, Loopback0

bluefox..tech

C

192.168.0.0/24 is directly connected, Loopback0

步骤6:测试连通性

R1#ping 192.168.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/60/80 ms R3#ping 172.16.1.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/67/108 ms R3#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 = 32/60/84 ms R3#ping 172.16.3.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 40/56/68 ms

9.5.2 验证 is-is 的路由聚合测试组:is-is路由协议 测试项目:验证is-is的路由聚合 测试目的:验证is-is的路由聚合 测试步骤: 7、 将 0002 区域的路由汇总; 8、 查看 R3 路由表

预期测试结果: 测试准备:路由器、PC

bluefox..tech

测试过程和结果: 步骤7:在L1L2路由器上进行汇总 R2: Router isis bluefox summary-address 172.16.0.0 255.255.0.0 步骤8:查看L2路由器的路由表 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 172.16.0.0/24 is subnetted, 4 subnets i L2 i L2 i L2 i L2 172.16.4.0 [115/30] via 10.0.0.1, FastEthernet0/0 172.16.1.0 [115/30] via 10.0.0.1, FastEthernet0/0 172.16.2.0 [115/30] via 10.0.0.1, FastEthernet0/0 172.16.3.0 [115/30] via 10.0.0.1, FastEthernet0/0 10.0.0.0/30 is subnetted, 2 subnets C i L2 C 10.0.0.0 is directly connected, FastEthernet0/0 10.0.1.0 [115/20] via 10.0.0.1, FastEthernet0/0 192.168.0.0/24 is directly connected, Loopback0

汇总前的路由表 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

i L2 172.16.0.0/16 [115/30] via 10.0.0.1, FastEthernet0/0 10.0.0.0/30 is subnetted, 2 subnets C i L2 C 10.0.0.0 is directly connected, FastEthernet0/0 10.0.1.0 [115/20] via 10.0.0.1, FastEthernet0/0 192.168.0.0/24 is directly connected, Loopback

汇总后的路由表

bluefox..tech

9.5.3 验证is-is发布和引入路由

bluefox..tech

9.5.4 is-is L2路由到L1路由的泄露功能测试

bluefox..tech

测试步骤和结果: 步骤 14:需要将 L2 路由器的 192.168.0.0 的路由泄露给 L1 路由器,写 access-list 匹配感兴趣路由再将路 由由 L2 into L1 在 L2L1 路由器上做配置: access-list 100 permit ip 192.168.0.0 0.0.255.255 any router isis bluefox redistribute isis ip level-2 into level-1 distribute-list 100 步骤15:查看路由表 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 10.0.1.1 to network 0.0.0.0

100.0.0.0/24 is subnetted, 1 subnets C 100.100.100.0 is directly connected, Loopback4 172.16.0.0/24 is subnetted, 4 subnets C C C C 172.16.4.0 is directly connected, Loopback3 172.16.1.0 is directly connected, Loopback0 172.16.2.0 is directly connected, Loopback1 172.16.3.0 is directly connected, Loopback2 10.0.0.0/30 is subnetted, 2 subnets i L1 C 泄露之前 10.0.0.0 [115/20] via 10.0.1.1, FastEthernet0/0 10.0.1.0 is directly connected, FastEthernet0/0

i*L1 0.0.0.0/0 [115/10] via 10.0.1.1, FastEthernet0/0

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 10.0.1.1 to network 0.0.0.0

100.0.0.0/24 is subnetted, 1 subnets C 100.100.100.0 is directly connected, Loopback4 172.16.0.0/24 is subnetted, 4 subnets C C C 172.16.4.0 is directly connected, Loopback3 172.16.1.0 is directly connected, Loopback0 172.16.2.0 is directly connected, Loopback1

bluefox..tech

172.16.0.0/24 is subnetted, 4 subnets C C C C 172.16.4.0 is directly connected, Loopback3 172.16.1.0 is directly connected, Loopback0 172.16.2.0 is directly connected, Loopback1 172.16.3.0 is

directly connected, Loopback2 10.0.0.0/30 is subnetted, 2 subnets i L1 C 10.0.0.0 [115/20] via 10.0.1.1, FastEthernet0/0 10.0.1.0 is directly connected, FastEthernet0/0

i ia 192.168.0.0/24 [115/158] via 10.0.1.1, FastEthernet0/0 i*L1 0.0.0.0/0 [115/10] via 10.0.1.1, FastEthernet0/0 泄露之后 路由泄漏对于次佳路由的选择很有帮助。

bluefox..tech

本文来源:https://www.bwwdw.com/article/nitq.html

Top