
l
ID and virtual IP address of the VRRP group
l
Priorities of Switch A and Switch B in the VRRP group
l
Preemption mode
Procedure
Step 1
Configure VLANIF interfaces and assign IP addresses to the VLANIF interface.
# Create VLANs and add physical interfaces to VLANs.
<Quidway>
system-view
[Quidway]
sysname SwitchA
[SwitchA]
vlan batch 100 200
[SwitchA]
interface ethernet 0/0/1
[SwitchA-Ethernet0/0/1]
port hybrid pvid vlan 100
[SwitchA-Ethernet0/0/1]
port hybrid untagged vlan 100
[SwitchA-Ethernet0/0/1]
quit
The configurations of Switch B and Switch C are similar to the configuration of Switch A, and
are not mentioned here.
# Configure an IP address for the VLANIF interface on SwitchA.
[SwitchA]
interface vlanif 100
[SwitchA-Vlanif100]
ip address 10.1.1.1 24
[SwitchA-Vlanif100]
quit
[SwitchA]
interface vlanif 200
[SwitchA-Vlanif200]
ip address 192.168.1.1 24
[SwitchA-Vlanif200]
quit
# Configure an IP address for the VLANIF interface on Switch B.
<Quidway>
system-view
[Quidway]
sysname SwitchB
[SwitchB]
interface vlanif 100
[SwitchB-Vlanif100]
ip address 10.1.1.2 24
[SwitchB-Vlanif100]
quit
[SwitchB]
interface vlanif 400
[SwitchB-Vlanif400]
ip address 192.168.2.1 24
[SwitchB-Vlanif400]
quit
# Configure an IP address for the VLANIF interface on Switch C.
<Quidway>
system-view
[Quidway]
sysname SwitchC
[SwitchC]
interface vlanif 200
[SwitchC-Vlanif200]
ip address 192.168.1.2 24
[SwitchC-Vlanif200]
quit
[SwitchC]
interface vlanif 300
[SwitchC-Vlanif300]
ip address 20.1.1.1 24
[SwitchC-Vlanif300]
quit
[SwitchC]
interface vlanif 400
[SwitchC-Vlanif400]
ip address 192.168.2.2 24
[SwitchC-Vlanif400]
quit
Step 2
Configure the OSPF protocol between Switch A, Switch B, and Switch C.
# Configure Switch A.
[SwitchA]
ospf 1
[SwitchA-ospf-1]
area 0
[SwitchA-ospf-1-area-0.0.0.0]
network 10.1.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0]
network 192.168.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0]
quit
[SwitchA-ospf-1]
quit
# Configure Switch B.
Quidway S3700 Series Ethernet Switches
Configuration Guide - Reliability
7 VRRP and VRRP6 Configuration
Issue 01 (2011-10-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
350