现在的位置: 首页 > 综合 > 正文

华为负载均衡技术

2012年07月09日 综合 ⁄ 共 1247字 ⁄ 字号 暂无评论


R1:

[r1]vrrp ping-enable

[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 130
[r1-Ethernet1.10]vrrp vrid 10 track s 1 reduce 40
[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]vrrp ping-enable
[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 130
[r1-Ethernet1.10]vrrp vrid 20 track s 1 reduce 40

Sw1

[sw1]int e1/0/1

[sw1-Ethernet1/0/1]port link-type trunk
[sw1-Ethernet1/0/1]port trunk permit vlan all
[sw1]link-aggre group 1 mode manual
[sw1]int e1/0/1
[sw1-Ethernet1/0/1]port link-aggre group 1
[sw1-Ethernet1/0/1]int e1/0/2
[sw1-Ethernet1/0/2]port link-type trunk
[sw1-Ethernet1/0/2]port trunk permit vlan all
[sw1-Ethernet1/0/1]port link-aggre group 1
[sw1-Ethernet1/0/2]int e1/0/24
[sw1-Ethernet1/0/24]port link-type trunk
[sw1-Ethernet1/0/24]port trunk permit vlan all
[sw]vlan 10

[sw3-vlan20]port e1/0/10

[sw]vlan 20

[sw3-vlan20]port e1/0/20
Sw2同Sw1

【上篇】
【下篇】

给我留言

留言无头像?