beautypg.com

H3C Technologies H3C S3600 Series Switches User Manual

Page 588

background image

1-14

# Configure that the virtual router can be pinged.

[LSW-A] vrrp ping-enable

# Create a VRRP group.

[LSW-A] interface Vlan-interface 2

[LSW-A-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111

# Set the priority for the VRRP group.

[LSW-A-Vlan-interface2] vrrp vrid 1 priority 110

# Set the authentication type for the VRRP group to md5, and the password to abc123.

[LSW-A-Vlan-interface2] vrrp vrid 1 authentication-mode md5 abc123

# Configure the master to send VRRP packets every 5 seconds.

[LSW-A-Vlan-interface2] vrrp vrid 1 timer advertise 5

# Set the tracked VLAN interface.

[LSW-A-Vlan-interface2] vrrp vrid 1 track interface Vlan-interface 3 reduced 30

z

Configure switch B.

# Configure VLAN 3.

system-view

[LSW-B] vlan 3

[LSW-B-vlan3] port Ethernet1/0/10

[LSW-B-vlan3] quit

[LSW-B] interface Vlan-interface 3

[LSW-B-Vlan-interface3] ip address 10.100.10.3 255.255.255.0

[LSW-B-Vlan-interface3] quit

# Configure VLAN 2.

[LSW-B] vlan 2

[LSW-B-vlan2] port Ethernet 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

# Configure that the virtual router can be pinged through.

[LSW-B] vrrp ping-enable

# Create a VRRP group.

[LSW-B] interface Vlan-interface 2

[LSW-B-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111

# Configure the authentication key for the VRRP group.

[LSW-B-Vlan-interface2] vrrp vrid 1 authentication-mode md5 abc123

# Configure the master to send VRRP packets every 5 seconds.

[LSW-B-Vlan-interface2] vrrp vrid 1 timer advertise 5

Normally, Switch A functions as the gateway, but when VLAN-interface 3 on Switch A goes down, its

priority will be reduced by 30, lower than that of Switch B so that Switch B will preempt the master for

gateway services instead.

This manual is related to the following products: