VRRP+MSTP配置案例

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

H3C 7503-A
<SwitchA> system-view
[SwitchA] bfd echo-source-ip 11.11.11.11
[SwitchA]vlan 10 20 30 40 50 60 70 80 90 4094
[SwitchA] interface GigabitEthernet2
[SwitchA-GigabitEthernet2] port link-type trunk
[SwitchA-GigabitEthernet2] port trunk permit vlan 10 to 90
[SwitchA] interface GigabitEthernet3
[SwitchA-GigabitEthernet3] port link-type trunk
[SwitchA-GigabitEthernet3] port trunk permit vlan 10 to 90
[SwitchA] interface vlan-interface 4094
[SwitchA-Vlan-interface4094] ip address 192.168.100.254 24
[SwitchA] interface vlan-interface 10
[SwitchA-Vlan-interface10] ip address 192.168.10.1 24
[SwitchA-Vlan-interface10] vrrp vrid 10 virtual-ip 192.168.10.254 24
[SwitchA-Vlan-interface10] vrrp vrid 10 priority 120
[SwitchA-Vlan-interface10] vrrp vrid 10 track interface Vlan-interface4094 reduced 255 [SwitchA-Vlan-interface10]quit
[SwitchA] interface vlan-interface 20
[SwitchA-Vlan-interface20] ip address 192.168.20.1 24
[SwitchA-Vlan-interface20] vrrp vrid 20 virtual-ip 192.168.20.254 24
[SwitchA-Vlan-interface20] vrrp vrid 20 priority 120
[SwitchA-Vlan-interface20] vrrp vrid 20 track interface Vlan-interface4094 reduced 255 [SwitchA-Vlan-interface20]quit
[SwitchA] interface vlan-interface 30
[SwitchA-Vlan-interface30] ip address 192.168.30.1 24
[SwitchA-Vlan-interface30] vrrp vrid 30 virtual-ip 192.168.30.254 24
[SwitchA-Vlan-interface30] vrrp vrid 30 priority 120
[SwitchA-Vlan-interface30] vrrp vrid 30 track interface Vlan-interface4094 reduced 255 [SwitchA-Vlan-interface30]quit
[SwitchA] interface vlan-interface 40
[SwitchA-Vlan-interface40] ip address 192.168.40.1 24
[SwitchA-Vlan-interface40] vrrp vrid 40 virtual-ip 192.168.40.254 24
[SwitchA-Vlan-interface40] vrrp vrid 40 track 1 switchover
[SwitchA-Vlan-interface40] bfd min-echo-receive-interval 10
[SwitchA-Vlan-interface40] bfd detect-multiplier 3
[SwitchA-Vlan-interface40]quit
[SwitchA] interface vlan-interface 50
[SwitchA-Vlan-interface50] ip address 192.168.50.1 24
[SwitchA-Vlan-interface50] vrrp vrid 50 virtual-ip 192.168.50.254 24
[SwitchA-Vlan-interface50] vrrp vrid 50 track 1 switchover
[SwitchA-Vlan-interface50] bfd min-echo-receive-interval 10
[SwitchA-Vlan-interface50] bfd detect-multiplier 3
[SwitchA-Vlan-interface50] quit
[SwitchA] interface vlan-interface 60
[SwitchA-Vlan-interface60] ip address 192.168.60.1 24
[SwitchA-Vlan-interface60] vrrp vrid 60 virtual-ip 192.168.60.254 24
[SwitchA-Vlan-interface60] vrrp vrid 60 track 1 switchover
[SwitchA-Vlan-interface60] bfd min-echo-receive-interval 10
[SwitchA-Vlan-interface60] bfd detect-multiplier 3
[SwitchA-Vlan-interface60] quit
[SwitchA] interface vlan-interface 70
[SwitchA-Vlan-interface70] ip address 192.168.70.1 24
[SwitchA-Vlan-interface70] vrrp vrid 70 virtual-ip 192.168.70.254 24
[SwitchA-Vlan-interface70] vrrp vrid 70 track 1 switchover
[SwitchA-Vlan-interface70] bfd min-echo-receive-interval 10
[SwitchA-Vlan-interface70] bfd detect-multiplier 3
[SwitchA-Vlan-interface70] quit
[SwitchA] interface vlan-interface 80
[SwitchA-Vlan-interface80] ip address 192.168.80.1 24
[SwitchA-Vlan-interface80] vrrp vrid 80 virtual-ip 192.168.80.254 24
[SwitchA-Vlan-interface80] vrrp vrid 80 track 1 switchover
[SwitchA-Vlan-interface80] bfd min-echo-receive-interval 10
[SwitchA-Vlan-interface80] bfd detect-multiplier 3
[SwitchA-Vlan-interface80] quit
[SwitchA] interface vlan-interface 90
[SwitchA-Vlan-interface90] ip address 192.168.90.1 24
[SwitchA-Vlan-interface90] vrrp vrid 90 virtual-ip 192.168.90.254 24
[SwitchA-Vlan-interface90] vrrp vrid 90 track 1 switchover
[SwitchA-Vlan-interface90] bfd min-echo-receive-interval 10
[SwitchA-Vlan-interface90] bfd detect-multiplier 3
[SwitchA-Vlan-interface90] quit
[SwitchA] track 1 bfd echo interface vlan-interface 10 to 90 remote ip 11.0.0.3 local ip 11.0.0.2
[SwitchA] stp region-configuration
[SwitchA-mst-region] region-name vrrp
[SwitchA-mst-region] instance 1 vlan 10 20 30
[SwitchA-mst-region] instance 2 vlan 40 50 60
[SwitchA-mst-region] instance 3 vlan 70 80 90
[SwitchA-mst-region] active region-configuration
[SwitchA-mst-region] quit
[SwitchA] stp instance 1 root primary
[SwitchA] stp instance 2 root secondary
[SwitchA] stp instance 3 root secondary
[SwitchA] stp enable
[SwitchA] port Gigabitethernet 6
[SwitchA-GigabitEthernet6] port link-type trunk
[SwitchA-GigabitEthernet6] port trunk permit vlan 10 20 30
[SwitchA] port Gigabitethernet 5
[SwitchA-GigabitEthernet5] port link-type trunk
[SwitchA-GigabitEthernet5] port trunk permit vlan 40 50 60
[SwitchA] port Gigabitethernet 4
[SwitchA-GigabitEthernet4] port link-type trunk
[SwitchA-GigabitEthernet4] port trunk permit vlan 70 80 90
[SwitchA] port Gigabitethernet 1
[SwitchA-GigabitEthernet1] port access vlan 4094
[SwitchA-GigabitEthernet1] stp disable
[SwitchA]ip route-static 0.0.0.0 0.0.0.0 192.168.100.100 preference 60 //内部所有主机访问外网的下一跳地址为上联设备接口地址
H3C 7503-B
<SwitchA> system-view
[SwitchA] bfd echo-source-ip 11.11.11.11
[SwitchA]vlan 10 20 30 40 50 60 70 80 90 4094
[SwitchA] interface GigabitEthernet2
[SwitchA-GigabitEthernet2] port link-type trunk
[SwitchA-GigabitEthernet2] port trunk permit vlan 10 to 90
[SwitchA] interface GigabitEthernet3
[SwitchA-GigabitEthernet3] port link-type trunk
[SwitchA-GigabitEthernet3] port trunk permit vlan 10 to 90
[SwitchA] interface vlan-interface 4094
[SwitchA-Vlan-interface4094] ip address 192.168.100.253 24。

相关文档
最新文档