vrrp+mstp+ospf

<R1>dis cu 
#
sysname R1
#
undo info-center enable
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password cipher OOCM4m($F4ajUn1vMEIBNUw#
 local-user admin service-type http
#
firewall zone Local
 priority 16
#
interface Ethernet0/0/0
 ip address 12.1.1.1 255.255.255.0
#
interface Ethernet0/0/1
 ip address 23.1.1.1 255.255.255.0
#
interface Serial0/0/0
 link-protocol ppp
#
interface Serial0/0/1
 link-protocol ppp
#
interface Serial0/0/2
 link-protocol ppp
#
interface Serial0/0/3
 link-protocol ppp
#
interface GigabitEthernet0/0/0
 ip address 5.5.5.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
wlan
#
interface NULL0
#
ospf 1 router-id 3.3.3.3
 area 0.0.0.0
  network 12.1.1.0 0.0.0.255
  network 23.1.1.0 0.0.0.255
#
user-interface con 0
user-interface vty 0 4
user-interface vty 16 20
#
return
<R1>

<hx_sw1>dis cu 
#
sysname hx_sw1
#
undo info-center enable
#
vlan batch 2 to 5 800
#
stp instance 1 root primary
stp instance 2 root secondary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
 region-name aa
 revision-level 1
 instance 1 vlan 2 to 3
 instance 2 vlan 4 to 5
 active region-configuration
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif2
 ip address 192.168.2.254 255.255.255.0
 vrrp vrid 2 virtual-ip 192.168.2.1
 vrrp vrid 2 priority 105
 vrrp vrid 2 track interface GigabitEthernet0/0/6
 vrrp vrid 2 track interface GigabitEthernet0/0/1
#
interface Vlanif3
 ip address 192.168.3.254 255.255.255.0
 vrrp vrid 3 virtual-ip 192.168.3.1
 vrrp vrid 3 priority 105
 vrrp vrid 3 track interface GigabitEthernet0/0/1
 vrrp vrid 3 track interface GigabitEthernet0/0/6
#
interface Vlanif4
 ip address 192.168.4.254 255.255.255.0
 vrrp vrid 4 virtual-ip 192.168.4.1
 ospf cost 4
#
interface Vlanif5
 ip address 192.168.5.254 255.255.255.0
 vrrp vrid 5 virtual-ip 192.168.5.1
 ospf cost 4
#
interface Vlanif800
 ip address 12.1.1.2 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 3
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 5 800
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 4 to 5
#
interface GigabitEthernet0/0/5
#
interface GigabitEthernet0/0/6
 port link-type access
 port default vlan 800
#
interface NULL0
#
ospf 1 router-id 1.1.1.1
 area 0.0.0.0
  network 192.168.2.0 0.0.0.255
  network 192.168.3.0 0.0.0.255
  network 192.168.4.0 0.0.0.255
  network 192.168.5.0 0.0.0.255
  network 12.1.1.0 0.0.0.255
#
ip route-static 0.0.0.0 0.0.0.0 12.1.1.1 preference 55
ip route-static 0.0.0.0 0.0.0.0 23.1.1.1
#
user-interface con 0
user-interface vty 0 4
#
return
<hx_sw1>

<hx_sw2>dis cu 
#
sysname hx_sw2
#
undo info-center enable
#
vlan batch 2 to 5 800
#
stp instance 1 root secondary
stp instance 2 root primary
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
 region-name aa
 revision-level 1
 instance 1 vlan 2 to 3
 instance 2 vlan 4 to 5
 active region-configuration
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface Vlanif2
 ip address 192.168.2.253 255.255.255.0
 vrrp vrid 2 virtual-ip 192.168.2.1
 ospf cost 4
#
interface Vlanif3
 ip address 192.168.3.253 255.255.255.0
 vrrp vrid 3 virtual-ip 192.168.3.1
 ospf cost 4
#
interface Vlanif4
 ip address 192.168.4.253 255.255.255.0
 vrrp vrid 4 virtual-ip 192.168.4.1
 vrrp vrid 4 priority 105
 vrrp vrid 4 track interface GigabitEthernet0/0/6
 vrrp vrid 4 track interface GigabitEthernet0/0/4
#
interface Vlanif5
 ip address 192.168.5.253 255.255.255.0
 vrrp vrid 5 virtual-ip 192.168.5.1
 vrrp vrid 5 priority 105
 vrrp vrid 5 track interface GigabitEthernet0/0/6
 vrrp vrid 5 track interface GigabitEthernet0/0/4
#
interface Vlanif800
 ip address 23.1.1.2 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 5 800
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface GigabitEthernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 4 to 5
#
interface GigabitEthernet0/0/5
 port link-type trunk
 port trunk allow-pass vlan 2 to 3
#
interface GigabitEthernet0/0/6
 port link-type access
 port default vlan 800
#
interface NULL0
#
ospf 1 router-id 2.2.2.2
 area 0.0.0.0
  network 192.168.2.0 0.0.0.255
  network 192.168.3.0 0.0.0.255
  network 192.168.4.0 0.0.0.255
  network 192.168.5.0 0.0.0.255
  network 23.1.1.0 0.0.0.255
#
ip route-static 0.0.0.0 0.0.0.0 23.1.1.1 preference 55
ip route-static 0.0.0.0 0.0.0.0 12.1.1.1
#
user-interface con 0
user-interface vty 0 4
#
return
<hx_sw2>

<jr_sw1>dis cu 
#
sysname jr_sw1
#
undo info-center enable
#
vlan batch 2 to 5
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
 region-name aa
 revision-level 1
 instance 1 vlan 2 to 3
 instance 2 vlan 4 to 5
 active region-configuration
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 2 to 3
#
interface Ethernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 2 to 3
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 2
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 3
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
<jr_sw1>

<jr_sw2>dis cu 
#
sysname jr_sw2
#
undo info-center enable
#
vlan batch 2 to 5
#
cluster enable
ntdp enable
ndp enable
#
drop illegal-mac alarm
#
diffserv domain default
#
stp region-configuration
 region-name aa
 revision-level 1
 instance 1 vlan 2 to 3
 instance 2 vlan 4 to 5
 active region-configuration
#
drop-profile default
#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user admin password simple admin
 local-user admin service-type http
#
interface Vlanif1
#
interface MEth0/0/1
#
interface Ethernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 4 to 5
#
interface Ethernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 4 to 5
#
interface Ethernet0/0/3
 port link-type access
 port default vlan 4
#
interface Ethernet0/0/4
 port link-type access
 port default vlan 5
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return
<jr_sw2>

核心1
instance1:
根桥
vlan2
vlan3
VRRP2:105
VRRP3:105

核心2
instance2:
根桥
vlan4
vlan5
VRRP4:105
VRRP5:105

© 版权声明
THE END
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容