您的当前位置:首页正文

H3CTE VRRP-MSTP综合实验

来源:小奈知识网
H3CTE MSTP+VRRP 综合实验

实验拓扑:

实验设备:S5800交换机4台 实验配置重点: vlan 1 # vlan 10 # vlan 20 # vlan 30 # vlan 40 # vlan 101 # stp instance 0 root primary stp instance 1 root primary stp instance 2 root secondary stp enable (H3C默认不开启) stp region-configuration region-name ekestin instance 1 vlan 10 30 vlan 1 # vlan 10 # vlan 20 # vlan 30 # vlan 40 # vlan 102 # stp instance 0 root secondary stp instance 1 root secondary stp instance 2 root primary stp enable(H3C默认不开启) stp region-configuration region-name ekestin instance 1 vlan 10 30 instance 2 vlan 20 40 active region-configuration(不要忘记激活) # interface Bridge-Aggregation1 port link-type trunk port trunk permit vlan 1 10 20 30 40 link-aggregation mode dynamic # interface Vlan-interface10 ip address 10.1.10.2 255.255.255.0 vrrp vrid 10 virtual-ip 10.1.10.1 vrrp vrid 10 priority 150 vrrp vrid 10 preempt-mode timer delay 5(打开抢占) vrrp vrid 10 track interface Vlan-interface101 reduced 50 vrrp vrid 10 authentication-mode simple ekestin # interface Vlan-interface20 ip address 10.1.20.2 255.255.255.0 vrrp vrid 20 virtual-ip 10.1.20.1 vrrp vrid 20 priority 110 vrrp vrid 20 preempt-mode timer delay 5 vrrp vrid 20 authentication-mode simple ekestin # interface Vlan-interface30 ip address 10.1.30.2 255.255.255.0 vrrp vrid 30 virtual-ip 10.1.30.1 vrrp vrid 30 priority 150 vrrp vrid 30 preempt-mode timer delay 5 vrrp vrid 30 track interface Vlan-interface101 reduced 50 vrrp vrid 30 authentication-mode simple ekestin # interface Vlan-interface40 ip address 10.1.40.2 255.255.255.0 vrrp vrid 40 virtual-ip 10.1.40.1 vrrp vrid 40 priority 110 vrrp vrid 40 preempt-mode timer delay 5 vrrp vrid 40 authentication-mode simple ekestin # interface Vlan-interface101 ip address 100.100.100.100 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40 # interface GigabitEthernet1/0/2 instance 2 vlan 20 40 active region-configuration(不要忘记激活) # interface Bridge-Aggregation1 port link-type trunk port trunk permit vlan 1 10 20 30 40 link-aggregation mode dynamic # interface Vlan-interface10 ip address 10.1.10.3 255.255.255.0 vrrp vrid 10 virtual-ip 10.1.10.1 vrrp vrid 10 priority 110 vrrp vrid 10 preempt-mode timer delay 5(打开抢占) vrrp vrid 10 authentication-mode simple ekestin # interface Vlan-interface20 ip address 10.1.20.3 255.255.255.0 vrrp vrid 20 virtual-ip 10.1.20.1 vrrp vrid 20 priority 150 vrrp vrid 20 preempt-mode timer delay 5 vrrp vrid 20 track interface Vlan-interface102 reduced 50 vrrp vrid 20 authentication-mode simple ekestin # interface Vlan-interface30 ip address 10.1.30.3 255.255.255.0 vrrp vrid 30 virtual-ip 10.1.30.1 vrrp vrid 30 priority 110 vrrp vrid 30 preempt-mode timer delay 5 vrrp vrid 30 authentication-mode simple ekestin # interface Vlan-interface40 ip address 10.1.40.3 255.255.255.0 vrrp vrid 40 virtual-ip 10.1.40.1 vrrp vrid 40 priority 150 vrrp vrid 40 preempt-mode timer delay 5 vrrp vrid 40 track interface Vlan-interface102 reduced 50 vrrp vrid 40 authentication-mode simple ekestin # interface Vlan-interface102 ip address 200.200.200.200 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40 # interface GigabitEthernet1/0/2 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40 # interface GigabitEthernet1/0/46 port link-mode bridge port access vlan 101 # interface GigabitEthernet1/0/47 port link-mode bridge port link-aggregation group 1 # interface GigabitEthernet1/0/48 port link-mode bridge port link-aggregation group 1 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40 # interface GigabitEthernet1/0/46 port link-mode bridge port access vlan 102 # interface GigabitEthernet1/0/47 port link-mode bridge port link-aggregation group 1 # interface GigabitEthernet1/0/48 port link-mode bridge port link-aggregation group 1 [SW1-GigabitEthernet1/0/46]dis vrrp IPv4 Standby Information:

Run Mode : Standard Run Method : Virtual MAC Total number of virtual routers : 4

Interface VRID State Run Adver Auth Virtual Pri Timer Type IP ---------------------------------------------------------------------

Vlan10 10 Master 150 1 Simple 10.1.10.1 Vlan20 20 Backup 110 1 Simple 10.1.20.1 Vlan30 30 Master 150 1 Simple 10.1.30.1 Vlan40 40 Backup 110 1 Simple 10.1.40.1

[SW1-GigabitEthernet1/0/46]dis vrr IPv4 Standby Information:

Run Mode : Standard Run Method : Virtual MAC Total number of virtual routers : 4

Interface VRID State Run Adver Auth Virtual Pri Timer Type IP ---------------------------------------------------------------------

Vlan10 10 Backup 110 1 Simple 10.1.10.1 Vlan20 20 Master 150 1 Simple 10.1.20.1 Vlan30 30 Backup 110 1 Simple 10.1.30.1 Vlan40 40 Master 150 1 Simple 10.1.40.1 vlan 1 # vlan 10 # vlan 20 # vlan 1 # vlan 10 # vlan 20 # vlan 30 # vlan 40 # stp enable stp region-configuration region-name ekestin instance 1 vlan 10 30 instance 2 vlan 20 40 active region-configuration # interface GigabitEthernet1/0/1 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40 # interface GigabitEthernet1/0/2 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40 vlan 30 # vlan 40 # stp enable stp region-configuration region-name ekestin instance 1 vlan 10 30 instance 2 vlan 20 40 active region-configuration # interface GigabitEthernet1/0/1 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40 # interface GigabitEthernet1/0/2 port link-mode bridge port link-type trunk port trunk permit vlan 1 10 20 30 40

因篇幅问题不能全部显示,请点此查看更多更全内容