试验内容:
1、用IS-IS配置网络
2、调整metric值
1、用IS-IS配置网络
Router(config)#hostname r1
r1(config)#int e 0/0
r1(config-if)#ip address 2.2.2.1 255.255.255.252
r1(config-if)#no shut
r1(config)#int s 1/0
r1(config-if)#ip address 7.7.7.1 255.255.255.252
r1(config-if)#no shut
r1(config)#int loopback 0
r1(config-if)#ip address 1.1.1.1 255.255.255.255
r1(config-if)#exit
r1(config)#router isis ;启用IS-IS
r1(config-router)#net 49.0001.0000.0000.0001.00 ;定义IS标识
r1(config-router)#is-type level-1-2 ;定义类型,默认为level-1-2
r1(config-router)#exit
r1(config)#int e 0/0
r1(config-if)#ip router isis ;在接口启用IS-IS
r1(config-if)#isis circuit-type level-1-2 ;接口类型,默认为level-1-2
r1(config-if)#exit
r1(config)#int loopback 0
r1(config-if)#ip router isis
r1(config)#int s 1/0
r1(config-if)#ip router isis
r1(config-if)#isis circuit-type level-1-2
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname r2
r2(config)#int loopback 0
r2(config-if)#ip address 1.1.1.2 255.255.255.255
r2(config-if)#exit
r2(config)#int e 0/0
r2(config-if)#ip add 2.2.2.2 255.255.255.252
r2(config-if)#no shut
r2(config-if)#exit
*Mar 1 00:11:57.211: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar 1 00:11:58.211: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to
r2(config)#int s 1/0
r2(config-if)#ip address 5.5.5.1 255.255.255.252
r2(config-if)#no shut
r2(config-if)#exit
*Mar 1 00:12:29.779: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Mar 1 00:12:30.779: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state t
r2(config)#router isis
r2(config-router)#net 49.0001.0000.0000.0002.00
r2(config-router)#exit
r2(config)#int loopback 0
r2(config-if)#ip router isis
r2(config)#int e 0/0
r2(config-if)#ip router isis
r2(config-if)#exit
r2(config)#int s 1/0
r2(config-if)#ip router isis
r2(config-if)#^Z
r2#sh i
*Mar 1 00:13:52.307: %SYS-5-CONFIG_I: Configured from console by consolesis nei
System Id Type Interface IP Address State Holdtime Circuit Id
r1 L1 Et0/0 2.2.2.1 UP 23 r2.01
r1 L2 Et0/0 2.2.2.1 UP 24 r2.01
为什么会有两条?
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname r3
r3(config)#int loopback 0
r3(config-if)#ip address 1.1.1.3 255.255.255.255
r3(config-if)#exit
r3(config)#int e 0/0
r3(config-if)#ip address 3.3.3.1 255.255.255.252
r3(config-if)#no shut
r3(config-if)#exit
*Mar 1 00:17:39.531: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar 1 00:17:40.531: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state texit
r3(config)#router isis
r3(config-router)#net 49.0002.0000.0000.0003.00
r3(config-router)#is-type level-1
r3(config-router)#exit
r3(config)#int loopback 0
r3(config-if)#ip router isis
r3(config-if)#isis circuit-type level-1
r3(config)#int e 0/0
r3(config-if)#ip router isis
r3(config-if)#isis circuit-type level-1
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname r4
r4(config)#int loopback 0
r4(config-if)#ip address 1.1.1.4 255.255.255.255
r4(config-if)#exit
r4(config)#int e 0/0
r4(config-if)#ip address 3.3.3.2 255.255.255.252
r4(config-if)#no shut
r4(config-if)#exit
*Mar 1 00:20:11.451: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar 1 00:20:12.451: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to
r4(config)#int s 1/0
r4(config-if)#ip address 7.7.7.2 255.255.255.252
r4(config-if)#no shut
r4(config-if)#
*Mar 1 00:20:46.655: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Mar 1 00:20:47.655: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up
r4(config-if)#exit
r4(config)#router isis
r4(config-router)#net 49.0002.0000.0000.0004.00
r4(config-router)#exit
r4(config)#int loopback 0
r4(config-if)#ip router isis
r4(config)#int e 0/0
r4(config-if)#ip router isis
r4(config-if)#exit
r4(config)#int s 1/0
r4(config-if)#ip router isis
r4(config-if)#exit
r4(config)#int s 1/1
r4(config-if)#ip router isis
Cannot enable ISIS-IP. Configure IP address or make the interface unnumbered
r4(config-if)#no shut
*Mar 1 00:22:32.287: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
*Mar 1 00:22:33.287: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to upp router isis
Cannot enable ISIS-IP. Configure IP address or make the interface unnumbered
r4(config-if)#^Z
r4#
*Mar 1 00:22:47.491: %SYS-5-CONFIG_I: Configured from console by consolesh ip int s 1/1
Serial1/1 is up, line protocol is up
Internet protocol processing disabled
r4#
*Mar 1 00:23:03.159: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to down
r4#config t
Enter configuration commands, one per line. End with CNTL/Z.
r4(config)#int s 1/1
r4(config-if)#ip address 4.4.4.1 255.255.255.252
r4(config-if)#no shut
r4(config-if)#exit
r4(config)#^Z
*Mar 1 00:23:44.159: %SYS-5-CONFIG_I: Configured from console by co
r4#sh isis nei
System Id Type Interface IP Address State Holdtime Circuit Id
r1 L2 Se1/0 7.7.7.1 UP 27 00
r3 L1 Et0/0 3.3.3.1 UP 9 r3.01
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname r5
r5(config)#int loop 0
r5(config-if)#ip address 1.1.1.5 255.255.255.255
r5(config-if)#exit
r5(config)#int e 0/0
r5(config-if)#ip address 6.6.6.1 255.255.255.252
r5(config-if)#no shut
r5(config-if)#exit
*Mar 1 00:25:18.679: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar 1 00:25:19.679: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state t
r5(config)#int s 1/0
r5(config-if)#ip add
r5(config-if)#ip address 5.5.5.2 255.255.255.252
r5(config-if)#no shut
r5(config-if)#exit
*Mar 1 00:25:45.687: %LINK-3-UPDOWN: Interface Serial1/0, changed state to up
*Mar 1 00:25:46.687: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to
r5(config)#int s 1/1
r5(config-if)#ip address 4.4.4.2 255.255.255.252
r5(config-if)#no shut
r5(config-if)#exit
*Mar 1 00:26:14.687: %LINK-3-UPDOWN: Interface Serial1/1, changed state to up
*Mar 1 00:26:15.687: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to upsis
r5(config-router)#router isis
r5(config-router)#net 49.0003.0000.0000.0005.00
r5(config-router)#exit
r5(config)#int loopback 0
r5(config-if)#ip router isis
r5(config)#int e 0/0
r5(config-if)#ip router isis
r5(config-if)#exit
r5(config)#int s 1/0
r5(config-if)#ip router isis
r5(config-if)#exit
r5(config)#int s 1/1
r5(config-if)#ip router isis
r5(config-if)#^Z
r5#sh
*Mar 1 00:27:34.807: %SYS-5-CONFIG_I: Configured from console by cons
r5#sh isis nei
System Id Type Interface IP Address State Holdtime Circuit Id
r2 L2 Se1/0 5.5.5.1 UP 28 00
r5#ping 5.5.5.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/57/116 ms
r5#sh isis nei
System Id Type Interface IP Address State Holdtime Circuit Id
r2 L2 Se1/0 5.5.5.1 UP 24 00
r5#ping 4.4.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/72/148 ms
r5#sh isis nei
System Id Type Interface IP Address State Holdtime Circuit Id
r4 L2 Se1/1 4.4.4.1 UP 22 01
r2 L2 Se1/0 5.5.5.1 UP 26 00
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname r6
r6(config)#int loopback 0
r6(config-if)#ip address 1.1.1.6 255.255.255.255
r6(config-if)#exit
r6(config)#int e 0/0
r6(config-if)#ip address 6.6.6.2 255.255.255.252
r6(config-if)#no shut
r6(config-if)#exit
*Mar 1 00:32:04.203: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar 1 00:32:05.203: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to
r6(config)#router isis
r6(config-router)#net 49.0003.0000.0000.0006.00
r6(config-router)#is-type level-1
r6(config-router)#exit
r6(config)#int loopback 0
r6(config-if)#ip router isis
r6(config-if)#isis circuit-type level-1
r6(config)#int e 0/0
r6(config-if)#ip router isis
r6(config-if)#isis circuit-type level-1
r6(config-if)#^Z
r6#sh i
*Mar 1 00:33:31.239: %SYS-5-CONFIG_I: Configured from console by con
r6#sh isis nei
System Id Type Interface IP Address State Holdtime Circuit Id
r5 L1 Et0/0 6.6.6.1 UP 8 r5.01
常用的show命令
r1#sh isis topology
IS-IS paths to level-1 routers
System Id Metric Next-Hop Interface SNPA
r1 --
r2 10 r2 Et0/0 cc00.0bd8.0000
为什么会有level1的关系??
IS-IS paths to level-2 routers
System Id Metric Next-Hop Interface SNPA
r1 --
r2 10 r2 Et0/0 cc00.0bd8.0000
r4 10 r4 Se1/0 *HDLC*
r5 20 r2 Et0/0 cc00.0bd8.0000
r4 Se1/0 *HDLC*
r1#sh isis nei detail
System Id Type Interface IP Address State Holdtime Circuit Id
r4 L2 Se1/0 7.7.7.2 UP 28 00
Area Address(es): 49.0002
SNPA: *HDLC*
State Changed: 00:33:12
Format: Phase V
r2 L1 Et0/0 2.2.2.2 UP 7 r2.01
Area Address(es): 49.0001
SNPA: cc00.0bd8.0000
State Changed: 00:41:47
LAN Priority: 64
Format: Phase V
r2 L2 Et0/0 2.2.2.2 UP 9 r2.01
Area Address(es): 49.0001
SNPA: cc00.0bd8.0000
State Changed: 00:41:47
LAN Priority: 64
Format: Phase V
r1#sh isis database
IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
r1.00-00 * 0x00000009 0x157B 744 1/0/0
r2.00-00 0x00000009 0x741E 756 1/0/0
r2.01-00 0x00000004 0x78D5 988 0/0/0
IS-IS Level-2 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
r1.00-00 * 0x0000000D 0xEFB5 735 0/0/0
r2.00-00 0x0000000C 0x435F 751 0/0/0
r2.01-00 0x00000004 0x08CE 1074 0/0/0
r4.00-00 0x00000007 0x2682 780 0/0/0
r5.00-00 0x00000008 0x811B 975 0/0/0
r1#sh isis database detail
IS-IS Level-1 Link State Database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
r1.00-00 * 0x00000009 0x157B 736 1/0/0
Area Address: 49.0001
NLPID: 0xCC
Hostname: r1
IP Address: 1.1.1.1
Metric: 10 IP 2.2.2.0 255.255.255.252
Metric: 10 IP 7.7.7.0 255.255.255.252
Metric: 10 IP 1.1.1.1 255.255.255.255
Metric: 10 IS r2.01
2、调整metric值
r4#sh 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/32 is subnetted, 6 subnets
i L2 1.1.1.1 [115/20] via 7.7.7.1, Serial1/0
i L1 1.1.1.3 [115/20] via 3.3.3.1, Ethernet0/0
i L2 1.1.1.2 [115/30] via 7.7.7.1, Serial1/0
[115/30] via 4.4.4.2, Serial1/1
i L2 1.1.1.5 [115/20] via 4.4.4.2, Serial1/1
C 1.1.1.4 is directly connected, Loopback0
i L2 1.1.1.6 [115/30] via 4.4.4.2, Serial1/1
2.0.0.0/30 is subnetted, 1 subnets
i L2 2.2.2.0 [115/20] via 7.7.7.1, Serial1/0
3.0.0.0/30 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Ethernet0/0
4.0.0.0/30 is subnetted, 1 subnets
C 4.4.4.0 is directly connected, Serial1/1
5.0.0.0/30 is subnetted, 1 subnets
i L2 5.5.5.0 [115/20] via 4.4.4.2, Serial1/1
6.0.0.0/30 is subnetted, 1 subnets
i L2 6.6.6.0 [115/20] via 4.4.4.2, Serial1/1
7.0.0.0/30 is subnetted, 1 subnets
C 7.7.7.0 is directly connected, Serial1/0
r4#
r4#
r4#
r4#
r4#
r4#config t
Enter configuration commands, one per line. End with CNTL/Z.
r4(config)#int s1/1
r4(config-if)#isis metric 50
r4(config-if)#^Z
r4#sh ip
*Mar 1 04:42:51.354: %SYS-5-CONFIG_I: Configured from console by console 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/32 is subnetted, 6 subnets
i L2 1.1.1.1 [115/20] via 7.7.7.1, Serial1/0
i L1 1.1.1.3 [115/20] via 3.3.3.1, Ethernet0/0
i L2 1.1.1.2 [115/30] via 7.7.7.1, Serial1/0
i L2 1.1.1.5 [115/40] via 7.7.7.1, Serial1/0
C 1.1.1.4 is directly connected, Loopback0
i L2 1.1.1.6 [115/50] via 7.7.7.1, Serial1/0
2.0.0.0/30 is subnetted, 1 subnets
i L2 2.2.2.0 [115/20] via 7.7.7.1, Serial1/0
3.0.0.0/30 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Ethernet0/0
4.0.0.0/30 is subnetted, 1 subnets
C 4.4.4.0 is directly connected, Serial1/1
5.0.0.0/30 is subnetted, 1 subnets
i L2 5.5.5.0 [115/30] via 7.7.7.1, Serial1/0
6.0.0.0/30 is subnetted, 1 subnets
i L2 6.6.6.0 [115/40] via 7.7.7.1, Serial1/0
7.0.0.0/30 is subnetted, 1 subnets
C 7.7.7.0 is directly connected, Serial1/0
本文档为【IS-IS试验笔记】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。