2.1 IS-IS配置
2.1.1 拓扑
2.1.2 配置步骤
以太网接口上成功建立邻居必须满足接口所属的路由器等级、接口等级、设备的区域ID相同,并且接口的地址处于同一网段。
①接口地址配置
R1:
#
interface GigabitEthernet0/0/0
ip address 10.2.0.1 255.255.255.0
#
interface LoopBack0
ip address 10.1.1.1 255.255.255.255
#
R2:
#
interface GigabitEthernet0/0/0
ip address 10.2.0.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 20.2.0.1 255.255.255.0
#
interface LoopBack0
ip address 10.1.2.2 255.255.255.255
#
R3:
#
interface GigabitEthernet0/0/0
ip address 10.2.0.3 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 30.2.0.1 255.255.255.0
#
interface LoopBack0
ip address 10.1.3.3 255.255.255.255
#
R4:
#
interface GigabitEthernet0/0/0
ip address 20.2.0.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 30.2.0.2 255.255.255.0
#
interface GigabitEthernet0/0/2
ip address 40.2.0.1 255.255.255.0
#
interface LoopBack0
ip address 10.1.4.4 255.255.255.255
#
R5:
#
interface GigabitEthernet0/0/0
ip address 40.2.0.2 255.255.255.0
#
interface LoopBack0
ip address 10.1.5.5 255.255.255.255
#
②配置IS-IS协议
R1:
#
isis 1
is-level level-1
network-entity 49.0001.0000.0000.0001.00
#
interface GigabitEthernet0/0/0
isis enable 1
isis authentication-mode simple cipher test
#
interface LoopBack0
isis enable 1
#
R2:
#
isis 1
network-entity 49.0001.0000.0000.0002.00
#
interface GigabitEthernet0/0/0
isis enable 1
isis authentication-mode simple test
#
interface GigabitEthernet0/0/1
isis enable 1
isis authentication-mode simple test
#
interface LoopBack0
isis enable 1
#
R3:
#
isis 1
network-entity 49.0001.0000.0000.0003.00
#
interface GigabitEthernet0/0/0
isis enable 1
isis authentication-mode simple test
#
interface GigabitEthernet0/0/1
isis enable 1
isis authentication-mode simple test
#
interface LoopBack0
isis enable 1
#
R4:
#
isis 1
is-level level-2
network-entity 49.0002.0000.0000.0004.00
#
interface GigabitEthernet0/0/0
isis enable 1
isis authentication-mode simple test
#
interface GigabitEthernet0/0/1
isis enable 1
isis authentication-mode simple test
#
interface GigabitEthernet0/0/2
isis enable 1
isis authentication-mode simple test
#
interface LoopBack0
isis enable 1
#
R5:
#
isis 1
is-level level-2
network-entity 49.0002.0000.0000.0005.00
#
interface GigabitEthernet0/0/0
isis enable 1
isis authentication-mode simple test
#
interface LoopBack0
isis enable 1
#
③检查配置结果
查看IS-IS邻居、路由表
dis isis peer
dis isis route
④修改接口的DIS优先级
R1、R2、R3在同一广播域,需选举出DIS接口,修改DIS优先级手动指定R1的g0/0/0为DIS
修改R1的g0/0/0的DIS优先级
#
interface GigabitEthernet0/0/0
isis dis-priority 127
#
⑤配置IS-IS路由渗透
查看R1去往10.1.5.5的路由,此时为R2、R3的负载均衡
在R3上配置isis路由渗透,将R1发往R5的流量引导至R3
R3:
#
isis 1
import-route isis level-2 into level-1
#