The configuration of VRRP on S5600 switches
I Requirement for the diagram
Host A will access to Host B by VRRP which make up of Switch A and Switch B. Normally, Switch A is master, Switch B is backup.
The connection of topology is as follow:
Switch
Port which connect to Host A
Vlan-interface
Priority of switch
preempt-mode
LSW-A
GE 1/0/6
202.38.160.1/24
110
permit
LSW-B
GE 1/0/5
202.38.160.2/24
100(default)
permit
II Network topology
III Steps of configuration
1.Configurtion of Switch A:
1) Create vlan 2 and vlan2-interface
<LSW-A> system-view
[LSW-A] vlan 2
[LSW-A-vlan2] port GigabitEthernet 1/0/6
[LSW-A-vlan2] quit
[LSW-A] interface Vlan-interface 2
[LSW-A-Vlan-interface2] ip address 202.38.160.1 255.255.255.0
[LSW-A-Vlan-interface2] quit
2) Enable vlan-interface ping-enable
[LSW-A] vrrp ping-enable
3) Create a backup group
[LSW-A] interface vlan 2
[LSW-A-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
4) Configure priority of Switch A in backup group 1
[LSW-A-Vlan-interface2] vrrp vrid 1 priority 110
5) Set preempt-mode of Switch A in backup group 1
[LSW-A-Vlan-interface2] vrrp vrid 1 preempt-mode
2.Configurtion of Switch B:
1) Create vlan 2 and vlan2-interface
<LSW-B> system-view
System View: return to User View with Ctrl+Z.
[LSW-B] vlan 2
[LSW-B-Vlan2] port GigabitEthernet 1/0/5
[LSW-B-vlan2] quit
[LSW-B] interface Vlan-interface 2
[LSW-B-Vlan-interface2] ip address 202.38.160.2 255.255.255.0
[LSW-B-Vlan-interface2] quit
2) Enable vlan-interface ping-enable
[LSW-B] vrrp ping-enable
3) Create a backup group
[LSW-B] interface vlan 2
[LSW-B-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111
4) Set preempt-mode of Switch B in backup group 1
[LSW-B-Vlan-interface2] vrrp vrid 1 preempt-mode
Default gateway is 202.38.160.111 of Switch A
In general,switch A work as the gateway,when switch A works wrong,switch B will do the work instead of switch A.
The purpose of setting preempt-mode is make switch A instead of switch B to work when switch A recover normal.
IV Key notes in the configuration
This case could also be used on H3C S3600、S3610、S5510 series switches.
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作