H3C S5500-EI Series Operation Manual
H3C S5500-EI Series Operation Manual

H3C S5500-EI Series Operation Manual

Vrrp
Hide thumbs Also See for S5500-EI Series:

Advertisement

Operation Manual - VRRP
H3C S5500-EI Series Ethernet Switches
Chapter 1 VRRP Configuration .................................................................................................... 1-1
1.1 Introduction to VRRP ......................................................................................................... 1-1
1.1.1 VRRP Overview ...................................................................................................... 1-1
1.1.2 VRRP Standby Group Overview ............................................................................. 1-2
1.1.3 VRRP Timers .......................................................................................................... 1-4
1.1.4 Format of VRRP Packets ........................................................................................ 1-5
1.1.5 Principles of VRRP.................................................................................................. 1-7
1.1.6 VRRP Interface Tracking ........................................................................................ 1-7
1.2 Configuring VRRP for IPv4 ................................................................................................ 1-9
1.2.1 VRRP for IPv4 Configuration Task List................................................................... 1-9
1.2.2 Enabling Users to Ping Virtual IP Addresses........................................................ 1-10
1.2.6 Configuring VRRP Packet Attributes .................................................................... 1-13
1.2.7 Displaying and Maintaining VRRP for IPv4........................................................... 1-14
1.3 Configuring VRRP for IPv6 .............................................................................................. 1-15
1.3.1 VRRP for IPv6 Configuration Task List................................................................. 1-15
1.3.2 Enabling Users to Ping Virtual IPv6 Addresses .................................................... 1-15
1.3.6 Configuring VRRP Packet Attributes .................................................................... 1-19
1.3.7 Displaying and Maintaining VRRP for IPv6........................................................... 1-20
1.4 IPv4-Based VRRP Configuration Examples.................................................................... 1-20
1.4.1 Single VRRP Standby Group Configuration Example .......................................... 1-20
1.4.2 VRRP Interface Tracking Configuration Example................................................. 1-23
1.4.3 Multiple VRRP Standby Group Configuration Example ........................................ 1-26
1.5 IPv6-Based VRRP Configuration Examples.................................................................... 1-29
1.5.1 Single VRRP Standby Group Configuration Example .......................................... 1-29
1.5.2 VRRP Interface Tracking Configuration Example................................................. 1-32
1.5.3 Multiple VRRP Standby Group Configuration Example ........................................ 1-36
1.6 Troubleshooting VRRP .................................................................................................... 1-39

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5500-EI Series and is the answer not in the manual?

Questions and answers

Summary of Contents for H3C S5500-EI Series

  • Page 1: Table Of Contents

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Table of Contents Table of Contents Chapter 1 VRRP Configuration ....................1-1 1.1 Introduction to VRRP ......................1-1 1.1.1 VRRP Overview ...................... 1-1 1.1.2 VRRP Standby Group Overview ................1-2 1.1.3 VRRP Timers ......................1-4 1.1.4 Format of VRRP Packets ..................
  • Page 2: Chapter 1 Vrrp Configuration

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Chapter 1 VRRP Configuration When configuring VRRP, go to these sections for information you are interested in: Introduction to VRRP Configuring VRRP for IPv4 Configuring VRRP for IPv6...
  • Page 3: Vrrp Standby Group Overview

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Host A Network Gateway Host B Host C Figure 1-1 LAN networking Apparently, this approach to enabling hosts on a network to communicate with external networks is easy to configure but it imposes a very high requirement of performance stability on the device acting as the gateway.
  • Page 4 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration group elect a new gateway to undertake the responsibility of the failed switch, thus ensuring that the hosts in the network segment can communicate with the external networks uninterruptedly.
  • Page 5: Vrrp Timers

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration remains 255. That is, if there is an IP address owner in a standby group, it acts as the master as long as it works properly. II. Working mode...
  • Page 6: Format Of Vrrp Packets

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration You can adjust the interval of sending VRRP advertisements by setting the VRRP advertisement interval timer. If a backup switch receives no advertisements in three times the interval, the backup switch regards itself as the master switch and sends VRRP advertisements to start a new master switch election.
  • Page 7 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Count IP Addrs: Number of virtual IP addresses for the standby group. A standby group can have multiple virtual IP addresses. Auth Type: Authentication type. 0 means no authentication, 1 means simple authentication, and 2 means MD5 authentication.
  • Page 8: Principles Of Vrrp

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Auth Type: Authentication type. 0 means no authentication, 1 means simple authentication. VRRPv3 does not support MD5 authentication. Adver Int: Interval for sending advertisement packets, in centiseconds. The default is 100.
  • Page 9 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration only one standby group, in which each switch holds different priorities and the one with the highest priority becomes the master, as shown in Figure 1-5. Figure 1-5 VRRP in master/backup mode...
  • Page 10: Configuring Vrrp For Ipv4

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Virtual router 1 Virtual router 2 Virtual router 3 Switch A Backup Master Backup Host A Switch B Backup Backup Master Network Host B Switch C Master...
  • Page 11: Enabling Users To Ping Virtual Ip Addresses

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Task Remarks Configuring VRRP Packet Attributes Optional 1.2.2 Enabling Users to Ping Virtual IP Addresses You can configure whether the master switch responds to the received ICMP echo requests, that is, whether the virtual IP address of a standby group can be successfully pinged.
  • Page 12: Creating Standby Group And Configuring Virtual Ip Address

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration When an IP address owner exists in a standby group, if you associate the virtual IP address with the virtual MAC address, two MAC addresses are associated with an IP address.
  • Page 13: Configuring Standby Group Priority, Preemption Mode And Interface Tracking

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration To do… Use the command… Remarks Enter system view system-view — Enter the specified interface interface-type — interface view interface-number Create standby group and Required configure virtual IP...
  • Page 14: Configuring Vrrp Packet Attributes

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration II. Configuration procedure By configuring switch priority, preemption mode and interface tracking, you can decide which switch in the standby group serves as the Master. Follow these steps to configure standby group priority, preemption mode and interface tracking: To do…...
  • Page 15: Displaying And Maintaining Vrrp For Ipv4

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration To do… Use the command… Remarks Enter system view system-view — Enter the specified interface interface-type — interface view interface-number Configure the authentication mode and Optional vrrp vrid virtual-router-id...
  • Page 16: Configuring Vrrp For Ipv6

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration To do… Use the command… Remarks reset vrrp statistics [ interface interface-type Remove VRRP statistics Available in user view interface-number [ vrid virtual-router-id ] ] 1.3 Configuring VRRP for IPv6 1.3.1 VRRP for IPv6 Configuration Task List...
  • Page 17: Configuring The Association Between Virtual Ipv6 Address And Mac Address

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Caution: You should configure this function before creating a standby group. Otherwise, you cannot ping the virtual IPv6 addresses of standby groups. 1.3.3 Configuring the Association Between Virtual IPv6 Address and MAC Address...
  • Page 18: Creating Standby Group And Configuring Virtual Ipv6 Address

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Caution: You should configure this function before creating a standby group. Otherwise, you cannot modify the mapping between the virtual IPv6 address and the MAC address. 1.3.4 Creating Standby Group and Configuring Virtual IPv6 Address You need to configure a virtual IPv6 address for a standby group when creating the standby group.
  • Page 19: Configuring Standby Group Priority, Preemption Mode And Interface Tracking

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Caution: The maximum number of standby groups on an interface and the maximum number of virtual IPv6 addresses in a standby group vary by device. A standby group is removed after you remove all the virtual IPv6 addresses in it. In addition, configurations on that standby group no longer take effect.
  • Page 20: Configuring Vrrp Packet Attributes

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Caution: The priority of an IP address owner is always 255 and not configurable. Interface tracking is not configurable on an IP address owner. The priority of a device is reset if the state of the interface under tracking changes from down to up.
  • Page 21: Displaying And Maintaining Vrrp For Ipv6

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration 1.3.7 Displaying and Maintaining VRRP for IPv6 To do… Use the command… Remarks display vrrp ipv6 [verbose] [ interface Display VRRP Available in any interface-type interface-number [ vrid...
  • Page 22 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration II. Network diagram Virtual IP address: 202.38.160.111/24 Vlan-int2 202.38.160.1/24 Switch A 203.2.3.1/24 202.38.160.3/24 Internet Host B Host A Vlan-int2 202.38.160.2/24 Switch B Figure 1-7 Network diagram for single VRRP standby group configuration III.
  • Page 23 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration # Create standby group 1 and set its virtual IP address to be 202.38.160.111. [SwitchB-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111 # Set Switch B to work in preemption mode. The preemption delay is five seconds.
  • Page 24: Vrrp Interface Tracking Configuration Example

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration [SwitchB-Vlan-interface2] display vrrp verbose IPv4 Standby Information: Run Method : VIRTUAL-MAC Virtual IP Ping : Enable Interface : Vlan-interface2 VRID Adver. Timer Admin Status : UP State...
  • Page 25 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration III. Configuration procedure Configure Switch A # Configure VLAN 2. <SwitchA> system-view [SwitchA] vlan 2 [SwitchA-vlan2] port GigabitEthernet 1/0/5 [SwitchA-vlan2] quit [SwitchA] interface vlan-interface 2 [SwitchA-Vlan-interface2] ip address 202.38.160.1 255.255.255.0 # Create a standby group 1 and set its virtual IP address to 202.38.160.111.
  • Page 26 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration After the configuration, Host B can be pinged through on Host A. You can use the display vrrp command to verify the configuration. # Display detailed information of standby group 1 on Switch A.
  • Page 27: Multiple Vrrp Standby Group Configuration Example

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Virtual IP Ping : Enable Interface : Vlan-interface2 VRID Adver. Timer Admin Status : UP State : Backup Config Pri : 110 Run Pri : 80 Preempt Mode...
  • Page 28 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration II. Network diagram Figure 1-9 Network diagram for multiple VRRP standby group configuration III. Configuration procedure Configure Switch A # Configure VLAN 2. <SwitchA> system-view [SwitchA] vlan 2...
  • Page 29 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration [SwitchB-Vlan-interface2] ip address 202.38.160.2 255.255.255.0 # Create a standby group 1 and set its virtual IP address to 202.38.160.111. [SwitchB-Vlan-interface2] vrrp vrid 1 virtual-ip 202.38.160.111 # Create a standby group 2 and set its virtual IP address to 202.38.160.112.
  • Page 30: Ipv6-Based Vrrp Configuration Examples

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Config Pri : 100 Run Pri : 100 Preempt Mode : YES Delay Time Auth Type : NONE Virtual IP : 202.38.160.111 Master IP : 202.38.160.1 Interface...
  • Page 31 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration II. Network diagram Virtual IPv6 address: FE80::10 Vlan-int2 FE80::1 Switch A Gateway: FE80::10 Internet Host B Host A Vlan-int2 FE80::2 Switch B Figure 1-10 Network diagram for single VRRP standby group configuration III.
  • Page 32 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration [SwitchB] vlan 2 [SwitchB-vlan2] port GigabitEthernet 1/0/5 [SwitchB-vlan2] quit [SwitchB] interface vlan-interface 2 [SwitchB-Vlan-interface2] ipv6 address fe80::2 link-local # Create a standby group 1 and set its virtual IP address to FE80::10.
  • Page 33: Vrrp Interface Tracking Configuration Example

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration The above information indicates that in standby group 1 Switch A is the master, Switch B is the backup and packets sent from Host A to Host B are forwarded by Switch A.
  • Page 34 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration II. Network diagram Virtual IPv6 address: FE80::10 Vlan-int2 FE80::1 Vlan-int3 Switch A Gateway: FE80::10 Internet Host B Host A Vlan-int2 FE80::2 Switch B Figure 1-11 Network diagram for VRRP interface tracking III.
  • Page 35 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration [SwitchA-Vlan-interface2] vrrp ipv6 vrid 1 track interface vlan-interface 3 reduced 30 Configure Switch B # Configure VLAN 2. <SwitchB> system-view [SwitchB] ipv6 [SwitchB] vlan 2 [SwitchB-vlan2] port GigabitEthernet 1/0/5...
  • Page 36 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration # Display detailed information of standby group 1 on Switch B. [SwitchB-Vlan-interface2] display vrrp ipv6 verbose IPv6 Standby Information: Run Method : VIRTUAL-MAC Virtual IP Ping : Enable...
  • Page 37: Multiple Vrrp Standby Group Configuration Example

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Admin Status : UP State : Master Config Pri : 100 Run Pri : 100 Preempt Mode : YES Delay Time Auth Type : SIMPLE TEXT : hello...
  • Page 38 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration [SwitchA] vlan 2 [SwitchA-vlan2] port GigabitEthernet 1/0/5 [SwitchA-vlan2] quit [SwitchA] interface vlan-interface 2 [SwitchA-Vlan-interface2] ipv6 address fe80::1 link-local [SwitchA-Vlan-interface2] ipv6 address 1::1 64 # Create standby group 1 and set its virtual IP address to FE80::10.
  • Page 39 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Preempt Mode : YES Delay Time Auth Type : NONE Virtual IP : FE80::10 Virtual MAC : 0000-5e00-0201 Master IP : FE80::1 Interface : Vlan-interface2 VRID Adver. Timer...
  • Page 40: Troubleshooting Vrrp

    Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration The above information indicates that in standby group 1 Switch A is the master, Switch B is the backup and the host with the default gateway of FE80::10 accesses the Internet through Switch A;...
  • Page 41 Operation Manual – VRRP H3C S5500-EI Series Ethernet Switches Chapter 1 VRRP Configuration Symptom 3: Frequent VRRP state transition. Analysis: The VRRP advertisement interval is set too short. Solution: Increase the interval to sent VRRP advertisement or introduce a preemption delay...

Table of Contents