拓扑图如上:左边总部,内网192.168.(vlan id).1/24,例如:192.168.11.1/24,192.168.12.1/24。右边分部类似,AR1,AR6为总部,分部出口路由器,部署ospf与is-is,中间模拟ISP网络,部署IS-IS,在出口路由器的isis与ospf进程中进行路由重发布。ISIS进程中引入OSPF时,默认引入Level-2的LSDB,出口路由器为Level-1不存在Level-2的LSDB,因此需要指定引入到Level-1的LSDB中,各设备配置如下:
sysname SW1
#
undo info-center enable
#
vlan batch 11 to 14
stp region-configuration
region-name wanggongxiaoli
instance 1 vlan 11 to 12
instance 2 vlan 13 to 14
active region-configuration
quit
interface Ethernet0/0/1
port link-type access
port default vlan 11
#
interface Ethernet0/0/2
port link-type access
port default vlan 12
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
LSW2
sysname SW2
#
undo info-center enable
#
vlan batch 11 to 14
stp region-configuration
region-name wanggongxiaoli
instance 1 vlan 11 to 12
instance 2 vlan 13 to 14
active region-configuration
quit
interface Ethernet0/0/1
port link-type access
port default vlan 13
#
interface Ethernet0/0/2
port link-type access
port default vlan 14
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
#
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
LSW3
sysname SW3
#
undo info-center enable
#
vlan batch 11 to 14
#
stp instance 1 root primary
stp instance 2 root secondary
#
ip pool vlan11
gateway-list 192.168.11.1
network 192.168.11.0 mask 255.255.255.0
excluded-ip-address 192.168.11.2 192.168.11.254
dns-list 8.8.8.8
#
ip pool vlan12
gateway-list 192.168.12.1
network 192.168.12.0 mask 255.255.255.0
excluded-ip-address 192.168.12.2 192.168.12.254
dns-list 8.8.8.8
#
interface Vlanif1
ip address 192.168.15.3 255.255.255.0
#
interface Vlanif11
ip address 192.168.11.1 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.11.254
vrrp vrid 1 priority 120
vrrp vrid 1 preempt-mode timer delay 20
dhcp select global
#
interface Vlanif12
ip address 192.168.12.1 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.12.254
vrrp vrid 1 priority 120
vrrp vrid 1 preempt-mode timer delay 20
dhcp select global
#
interface Vlanif13
ip address 192.168.13.1 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.13.254
vrrp vrid 1 preempt-mode timer delay 20
#
interface Vlanif14