h3c vrrp 小实验

 

 R1:[r1]int e1.10

[r1-Ethernet1.10]vlan-type dot1q vid 10
[r1-Ethernet1.10]ip add 192.168.10.1 24
[r1-Ethernet1.10]vrrp vrid 10 virtual 192.168.10.254
[r1-Ethernet1.10]vrrp vrid 10 priority 120
[r1-Ethernet1.10]int  e1.20
[r1-Ethernet1.20]vlan-type dot1q vid 20
[r1-Ethernet1.20]ip add 192.168.20.1 24
[r1-Ethernet1.20]vrrp vrid 20 virtual-ip 192.168.20.254
 
R2:[r2]int e1.10
[r2-Ethernet1.10]vlan-type dot1q vid 10
[r2-Ethernet1.10]ip add 192.168.10.2 24
[r2-Ethernet1.10]vrrp vrid 10 virtual 192.168.10.254
[r2-Ethernet1.10]int  e1.20
[r2-Ethernet1.20]vlan-type dot1q vid 20
[r2-Ethernet1.20]ip add 192.168.20.1 24
[r2-Ethernet1.20]vrrp vrid 20 virtual-ip 192.168.20.254:
[r2-Ethernet1.20]vrrp vrid 20 priority 120
 
 
[sw1]int e1/0/19
[sw1-Ethernet1/0/19]port link-type trunk
[sw1-Ethernet1/0/19]port trunk permit vlan all
[sw1-Ethernet1/0/19]int e1/0/20
[sw1-Ethernet1/0/20]port link-type trunk
[sw1-Ethernet1/0/20]port trunk permit vlan all
[sw1-Ethernet1/0/20]int e1/0/21
[sw1-Ethernet1/0/21]port link-type trunk
[sw1-Ethernet1/0/21]port trunk permit vlan all
[sw1-Ethernet1/0/21]int e1/0/22
[sw1-Ethernet1/0/22]port link-type trunk
[sw1-Ethernet1/0/22]port trunk permit vlan all
[sw1-Ethernet1/0/22]int e1/0/23
[sw1-Ethernet1/0/23]port link-type trunk
[sw1-Ethernet1/0/23]port trunk permit vlan all
[sw1-Ethernet1/0/23]int e1/0/24
[sw1-Ethernet1/0/24]port link-type trunk
[sw1-Ethernet1/0/24]port trunk permit vlan all
[sw1]link-aggregation group 10 mode manual
[sw1]link-aggregation group 20 mode manual
[sw1]int e1/0/21
[sw1-Ethernet1/0/21]port link-aggregation group 10
[sw1-Ethernet1/0/21]int e1/0/22
[sw1-Ethernet1/0/22]port link-aggregation group 10
[sw1-Ethernet1/0/22]int e1/0/23
[sw1-Ethernet1/0/23]port link-aggregation group 20
[sw1-Ethernet1/0/23]int e1/0/24
[sw1-Ethernet1/0/24]port link-aggregation group 20
 
 
 
 
[sw2]int e1/0/21
[sw2-Ethernet1/0/21]port link-type trunk
[sw2-Ethernet1/0/21]port trunk permit vlan all
[sw2-Ethernet1/0/21]int e1/0/22
[sw2-Ethernet1/0/22]port link-type trunk
[sw2-Ethernet1/0/22]port trunk permit vlan all
[sw2]vlan 10
[sw2-vlan10]port e1/0/19
[sw2-vlan10]vlan 20
[sw2]link-aggregation group 10 mode manual
[sw2]int e1/0/21
[sw2-Ethernet1/0/21]port link-aggregation group 10
[sw2-Ethernet1/0/21]int e1/0/22
[sw2-Ethernet1/0/22]port link-aggregation group 10
 
[sw2]gvrp
[sw2-Ethernet1/0/21]gvrp
[sw2-Ethernet1/0/21]int e1/0/22
[sw2-Ethernet1/0/22]gvrp
[sw3]vlan 20
[sw3-vlan20]port e1/0/20
[sw3-vlan20]int e1/0/23
[sw3-Ethernet1/0/23]port link-type trunk
[sw3-Ethernet1/0/23]port trunk permit vlan all
[sw3-Ethernet1/0/23]int e1/0/24
[sw3-Ethernet1/0/24]port link-type trunk
[sw3-Ethernet1/0/24]port trunk permit vlan all
[sw3]gvrp
[sw3-Ethernet1/0/24]gvrp
[sw3-Ethernet1/0/23]gvrp
[sw3]link-aggregation group 20 mode manual
[sw3-Ethernet1/0/23]port link-aggregation group 20
[sw3-Ethernet1/0/23]int e1/0/24
[sw3-Ethernet1/0/24]port link-aggregation group 20