前言:
实验要求:
1.用模拟器对各个设备按实验图的标注配置IP地址,为方便观看,各设备Loopback0地址与设备编号关联。(如Router1的Loo0地址:1.1.1.1/32)
2.在如图所示的各路由器上配置IS-IS协议实现网络互通,Area 2模拟骨干区域,里面路由器都为L2路由器。systom ID采用loopback0地址生成。
为服务对华为设备较了解的朋友,用华为eNSP模拟器再次同样的配置。
3.
配置命令:
思科:
R1:
R1>en
R1#conf t 进全局配置模式
R1(config)#int fa0/0 进接口
R1(config-if)#ip add 192.168.1.1 255.255.255.252 配置IP地址
R1(config-if)#no shut 激活所做配置
R1(config-if)#int loo0
R1(config-if)#ip add 1.1.1 .1 255.255.255.255
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#router isis 111 开启isis进程,进程号111(随意起的)。
R1(config-router)#net 49.0001.0010.0100.1001.00 配置net地址,49.0001为区域编号,同一区域必须相同。.00为默认值,中间为Loopback0地址生成的systomID。方法为1.1.1.1——001.001.001.001——0010.0100.1001
R1(config-router)#is-type level-1 根据需要设置路由器级别
R1(config-router)#exit
R1(config)#int fa0/0
R1(config-if)#ip router isis 111 进接口,在接口模式下启用上面配置的isis进程
R1(config-if)#int loo0
R1(config-if)#ip router isis 111
R1(config-if)#end
R2:
R2>en
R2#conf t
R2(config)#int fa0/0
R2(config-if)#ip add 192.168.1.2 255.255.255.252
R2(config-if)#no shut
R2(config)#int fa0/1
R2(config-if)#ip add 192.168.1.5 255.255.255.252
R2(config-if)#no shut
R2(config-if)#int loo0
R2(config-if)#ip add 2.2.2 .2 255.255.255.255
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#router isis 111
R2(config-router)#net 49.0001.0020.0200.2002.00 R1、R2都属于Area1,所以区域编号相同
R2(config-router)#is-type level-1-2 R2位于区域边界,为L1-2路由器以传递区域间路由
R2(config-router)#exit
R2(config)#int fa0/0
R2(config-if)#ip router isis 111
R2(config-if)# isis circuit-type level-1 R2的fa0/0接口与R1应建立level1关系,设置类别为level1
R2(config)#int fa0/1
R2(config-if)#ip router isis 111
R2(config-if)# isis circuit-type level-2 R2的fa0/1接口与R3应建立level2关系,设置类别为level2
R2(config-if)#int loo0
R2(config-if)#ip router isis 111
R2(config-if)#end
R3:
R3>en
R3#conf t
R3(config)#int fa0/0
R3(config-if)#ip add 192.168.1.6 255.255.255.252
R3(config-if)#no shut
R3(config)#int fa0/1
R3(config-if)#ip add 192.168.1.9 255.255.255.252
R3(config-if)#no shut
R3(config-if)#int loo0
R3(config-if)#ip add 3.3.3 .3 255.255.255.255
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#router isis 111
R3(config-router)#net 49.0002.0030.0300.3003.00 R3属于Area2,区域编号为49.0002.
R3(config-router)#is-type level-2 R3级别为level2路由器
R3(config-router)#exit
R3(config)#int fa0/0
R3(config-if)#ip router isis 111
R3(config)#int fa0/1
R3(config-if)#ip router isis 111
R3(config-if)#int loo0
R3(config-if)#ip router isis 111
R3(config-if)#end
R4:
R4>en
R4#conf t
R4(config)#int fa0/0
R4(config-if)#ip add 192.168.1.10 255.255.255.252
R4(config-if)#no shut
R4(config)#int fa0/1
R4(config-if)#ip add 192.168.1.13 255.255.255.252
R4(config-if)#no shut
R4(config-if)#int loo0
R4(config-if)#ip add 4.4.4 .4 255.255.255.255
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#router isis 111
R4(config-router)#net 49.0002.0040.0400.4004.00
R4(config-router)#is-type level-2 R4也为level2路由器
R4(config-router)#exit
R4(config)#int fa0/0
R4(config-if)#ip router isis 111
R4(config)#int fa0/1
R4(config-if)#ip router isis 111
R4(config-if)#int loo0
R4(config-if)#ip router isis 111
R4(config-if)#end
R5:
R5>en
R5#conf t
R5(config)#int fa0/0
R5(config-if)#ip add 192.168.1.14 255.255.255.252
R5(config-if)#no shut
R5(config)#int fa0/1
R5(config-if)#ip add 192.168.1.17 255.255.255.252
R5(config-if)#no shut
R5(config-if)#int loo0
R5(config-if)#ip add 5.5.5 .5 255.255.255.255
R5(config-if)#no shut
R5(config-if)#exit
R5(config)#router isis 111
R5(config-router)#net 49.0003.0050.0500.5005.00 R5属于Area3区域编号49.0003
R5(config-router)#is-type level-1-2 R5是区域边界路由器,级别应是level-1-2
R5(config-router)#exit
R5(config)#int fa0/0
R5(config-if)#ip router isis 111
R5(config-if)# isis circuit-type level-2
R5(config)#int fa0/1
R5(config-if)#ip router isis 111
R5(config-if)# isis circuit-type level-1
R5(config-if)#int loo0
R5(config-if)#ip router isis 111
R5(config-if)#end
R6:
R6>en
R6#conf t
R6(config)#int fa0/0
R6(config-if)#ip add 192.168.1.18 255.255.255.252
R6(config-if)#no shut
R6(config-if)#int loo0
R6(config-if)#ip add 6.6.6 .6 255.255.255.255
R6(config-if)#no shut
R6(config-if)#exit
R6(config)#router isis 111
R6(config-router)#net 49.0003.0060.0600.6006.00
R6(config-router)#is-type level-1
R6(config-router)#exit
R6(config)#int fa0/0
R6(config-if)#ip router isis 111
R6(config-if)#int loo0
R6(config-if)#ip router isis 111
R6(config-if)#end
部分设备的路由表截图:
R2:
R4:
华为:
AR0:
[Huawei]undo info-center enable 关闭弹出信息防止干扰操作
Info: Information center is disabled.
[Huawei]int gig 0/0/0 进接口
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 30 华为配IP可以直接跟掩码长度
[Huawei-GigabitEthernet0/0/0]undo shut 华为不是no,是undo。
[Huawei-GigabitEthernet0/0/2]int loo0
[Huawei-LoopBack0]ip add 1.1.1 .1 32
[Huawei-LoopBack0]quit 对应思科的exit
[Huawei] isis 110开启isis进程,如果设备只运行一个isis协议,后面进程号可以不写
[Huawei-isis-110]network-entity 49.0001.0010.0100.1001.00 配置net地址
[Huawei-isis-110]is-level level-1
[Huawei-isis-110]quit
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0] isis enable 110 进接口启用isis进程配置
[Huawei-GigabitEthernet0/0/0]int loo0
[Huawei-LoopBack0] isis enable 110
AR1:
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.2 30
[Huawei-GigabitEthernet0/0/0]undo shut 模拟器其实不需要激活,真是设备需要激活
[Huawei-GigabitEthernet0/0/0]int gig 0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.5 30
[Huawei-GigabitEthernet0/0/2]undo shut
[Huawei-GigabitEthernet0/0/2]int loo0
[Huawei-LoopBack0]ip add 2.2.2 .2 32
[Huawei-LoopBack0]quit
[Huawei]isis 110
[Huawei-isis-110]network-entity 49.0001.0020.0200.2002.00
[Huawei-isis-110]is-level level-1-2
[Huawei-isis-110]quit
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0] isis enable 110
[Huawei-GigabitEthernet0/0/0] isis circuit-level level-1 根据需要设置路由器级别
[Huawei-GigabitEthernet0/0/0]int gig 0/0/2
[Huawei-GigabitEthernet0/0/2] isis enable 110
[Huawei-GigabitEthernet0/0/2] isis circuit-level level-2
[Huawei-GigabitEthernet0/0/2]int loo0
[Huawei-LoopBack0]isis enable 110
AR2:
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.6 30
[Huawei-GigabitEthernet0/0/0]undo shut
[Huawei-GigabitEthernet0/0/0]int gig 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.9 30
[Huawei-GigabitEthernet0/0/1]undo shut
[Huawei-GigabitEthernet0/0/1]int loo0
[Huawei-LoopBack0]ip add 3.3.3 .3 32
[Huawei-LoopBack0]quit
[Huawei] isis 110
[Huawei-isis-110]network-entity 49.0002.0030.0300.3003.00
[Huawei-isis-110]is-level level-2
[Huawei-isis-110]quit
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0] isis enable 110
[Huawei-GigabitEthernet0/0/0]int gig 0/0/1
[Huawei-GigabitEthernet0/0/1] isis enable 110
[Huawei-GigabitEthernet0/0/1]int loo0
[Huawei-LoopBack0] isis enable 110
AR3:
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.10 30
[Huawei-GigabitEthernet0/0/0]undo shut
[Huawei-GigabitEthernet0/0/0]int gig 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.13 30
[Huawei-GigabitEthernet0/0/1]undo shut
[Huawei-GigabitEthernet0/0/1]int loo0
[Huawei-LoopBack0]ip add 4.4.4 .4 32
[Huawei-LoopBack0]quit
[Huawei] isis 110
[Huawei-isis-110]network-entity 49.0002.0040.0400.4004.00
[Huawei-isis-110]is-level level-2
[Huawei-isis-110]quit
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0] isis enable 110
[Huawei-GigabitEthernet0/0/0]int gig 0/0/1
[Huawei-GigabitEthernet0/0/1] isis enable 110
[Huawei-GigabitEthernet0/0/1]int loo0
[Huawei-LoopBack0] isis enable 110
AR4:
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.14 30
[Huawei-GigabitEthernet0/0/0]undo shut
[Huawei-GigabitEthernet0/0/0]int gig 0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.17 30
[Huawei-GigabitEthernet0/0/1]undo shut
[Huawei-GigabitEthernet0/0/1]int loo0
[Huawei-LoopBack0]ip add 5.5.5 .5 32
[Huawei-LoopBack0]quit
[Huawei] isis 110
[Huawei-isis-110]network-entity 49.0003.0050.0500.5005.00
[Huawei-isis-110]is-level level-1-2
[Huawei-isis-110]quit
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0] isis enable 110
[Huawei-GigabitEthernet0/0/0] isis circuit-level level-2
[Huawei-GigabitEthernet0/0/0]int gig 0/0/1
[Huawei-GigabitEthernet0/0/1] isis enable 110
[Huawei-GigabitEthernet0/0/1] isis circuit-level level-1
[Huawei-GigabitEthernet0/0/1]int loo0
[Huawei-LoopBack0] isis enable 110
AR5:
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 192.168.1.18 30
[Huawei-GigabitEthernet0/0/0]undo shut
[Huawei-GigabitEthernet0/0/2]int loo0
[Huawei-LoopBack0]ip add 6.6.6 .6 32
[Huawei-LoopBack0]quit
[Huawei] isis 110
[Huawei-isis-110]network-entity 49.0003.0060.0600.6006.00
[Huawei-isis-110]is-level level-1
[Huawei-isis-110]quit
[Huawei]int gig 0/0/0
[Huawei-GigabitEthernet0/0/0] isis enable 110
[Huawei-GigabitEthernet0/0/0]int loo0
[Huawei-LoopBack0] isis enable 110
AR1路由表截图: