H3C S9500 Series Operation Manual
H3C S9500 Series Operation Manual

H3C S9500 Series Operation Manual

Routing switch vrrp
Hide thumbs Also See for S9500 Series:

Advertisement

Operation Manual - VRRP
H3C S9500 Series Routing Switches
Chapter 1 VRRP Configuration .................................................................................................... 1-1
1.1 Introduction to VRRP ......................................................................................................... 1-1
1.1.1 Overview ................................................................................................................. 1-1
1.1.2 VRRP Group Overview ........................................................................................... 1-2
1.1.3 VRRP Timers .......................................................................................................... 1-5
1.1.4 Format of VRRP Packets ........................................................................................ 1-5
1.1.5 Principles of VRRP.................................................................................................. 1-8
1.1.6 VRRP Interface Tracking ........................................................................................ 1-8
1.2 Configuring VRRP for IPv4 .............................................................................................. 1-10
1.2.1 IPv4-Based VRRP Configuration Task List........................................................... 1-10
1.2.4 Creating VRRP Group and Configuring Virtual IP Address .................................. 1-12
1.2.6 Configuring VRRP Packet Attributes .................................................................... 1-15
1.2.7 Enabling the Trap Function of VRRP.................................................................... 1-16
1.2.8 Displaying and Maintaining VRRP for IPv4........................................................... 1-17
1.3 Configuring VRRP for IPv6 .............................................................................................. 1-17
1.3.1 IPv6-Based VRRP Configuration Task List........................................................... 1-17
1.3.6 Configuring VRRP Packet Attributes .................................................................... 1-21
1.3.7 Displaying and Maintaining VRRP for IPv6........................................................... 1-22
1.4 IPv4-Based VRRP Configuration Examples.................................................................... 1-22
1.4.1 Single VRRP Group Configuration Example......................................................... 1-23
1.4.2 VRRP Interface Tracking Configuration Example................................................. 1-25
1.4.3 Multiple VRRP Groups Configuration Example .................................................... 1-29
1.5 IPv6-Based VRRP Configuration Examples.................................................................... 1-32
1.5.1 Single VRRP Group Configuration Example......................................................... 1-33
1.5.2 VRRP Interface Tracking Configuration Example................................................. 1-36
1.5.3 Multiple VRRP Groups Configuration Example .................................................... 1-39
1.6 Troubleshooting VRRP .................................................................................................... 1-42

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading

Summary of Contents for H3C S9500 Series

  • Page 1: Table Of Contents

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

    The term router and the icon router in this document refer to a router in a generic sense or an S9500 series routing switch running routing protocols. At present, the interfaces that VRRP involves can only be VLAN interfaces for S9500 series switches.
  • Page 3: Vrrp Group Overview

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Host A Network Gateway Host B Host C Figure 1-1 Common 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 S9500 Series Routing Switches Chapter 1 VRRP Configuration I. VRRP group VRRP combines a group of routers on a LAN (including a master and multiple backups) into a virtual router called VRRP group. The VRRP group has the following features: A virtual router has an IP address.
  • Page 5 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Caution: The IP address of the virtual router can be either an unused IP address on the segment where the VRRP group resides or the IP address of an interface on a router in the VRRP group.
  • Page 6: Vrrp Timers

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration packet. If the two authentication keys are the same, the received VRRP packet is considered real and valid; otherwise, the received packet is considered an invalid one.
  • Page 7 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration I. IPv4-based VRRP packet format Figure 1-3 IPv4-based VRRP packet format As shown in Figure 1-3, an IPv4-based VRRP packet consists of the following fields: Version: Version number of the protocol, 2 for VRRPv2.
  • Page 8 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration II. IPv6-based VRRP packet format Version Type Virtual Rtr ID Priority Count IPv6 Addrs Auth Type Adver Int Checksum IPv6 address 1 IPv6 address n Authentication data 1...
  • Page 9: Principles Of Vrrp

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration 1.1.5 Principles of VRRP With VRRP enabled, the routers determine their respective roles in the VRRP group by priority. The router with the highest priority becomes the master, while the others are the backups.
  • Page 10 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Figure 1-5 VRRP in master/backup mode At the beginning, Router A is the master and therefore can forward packets to external networks, while Router B and Router C are backups and are thus in the state of listening.
  • Page 11: Configuring Vrrp For Ipv4

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Virtual router 1 Virtual router 2 Virtual router 3 Router A Backup Master Backup Host A Router B Backup Backup Master Network Host B Router C Master...
  • Page 12: Enabling Users To Ping Virtual Ip Addresses Of Vrrp Groups

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Task Remarks Configuring VRRP Packet Attributes Optional Enabling the Trap Function of VRRP Optional Caution: VRRP is not supported on the VLAN interfaces of Super VLAN. Do not configure VRRP on this type of interfaces.
  • Page 13: Creating Vrrp Group And Configuring Virtual Ip Address

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Virtual IP address is associated with virtual router MAC address By default, a MAC address is created for a VRRP group after the VRRP group is created, and the virtual IP address is associated with the virtual MAC address. With such association adopted, the hosts in the internal network need not update the association between IP address and MAC address when the master changes.
  • Page 14 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Caution: It is not recommended to create VRRP groups on the VLAN interface of a super VLAN. Otherwise, network performance may be affected. I. Configuration prerequisites Before creating VRRP group and configuring virtual IP address, you should first configure the IP address of the interface and ensure that the virtual IP address to be configured is in the same network segment as the IP address of the interface.
  • Page 15: Configuring Priority, Preemptive Mode And Interface Tracking For A Vrrp Group

    Chapter 1 VRRP Configuration Caution: For S9500 series switches, the maximum number of VRRPv2 VRRP groups on an interface is 16, the maximum number of virtual IP addresses in a VRRP group is 16 and the maximum number of VRRP groups on a switch is 96.
  • Page 16: Configuring Vrrp Packet Attributes

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration To do… Use the command… Remarks Optional Configure switch priority vrrp vrid virtual-router-id in the VRRP group priority priority-value 100 by default. Optional Configure the switch in...
  • Page 17: Enabling The Trap Function Of Vrrp

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration To do... Use the command... Remarks Configure the authentication mode and Optional vrrp vrid virtual-router-id authentication key when authentication-mode Authentication is not the VRRP groups send { md5 | simple } key...
  • Page 18: Displaying And Maintaining Vrrp For Ipv4

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Note: For detailed description on the snmp-agent trap enable vrrp command, refer to command snmp-agent trap enable in SNMP Commands in the System Volume. 1.2.8 Displaying and Maintaining VRRP for IPv4 To do…...
  • Page 19: Enabling Users To Ping Virtual Ipv6 Addresses Of Vrrp Groups

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration 1.3.2 Enabling Users to Ping Virtual IPv6 Addresses of VRRP Groups You can configure whether the master responds to the received ICMPv6 echo requests, that is, whether the virtual IPv6 address of a VRRP group can be successfully pinged.
  • Page 20: Creating Vrrp Group And Configuring Virtual Ipv6 Address

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Follow these steps to configure the association between virtual IPv6 address and MAC address: To do… Use the command… Remarks Enter system view — system-view Optional Configure the association...
  • Page 21: Configuring Priority, Preemption Mode And Interface Tracking For A Vrrp Group

    Caution: For S9500 series switches, the maximum number of VRRPv3 VRRP groups on an interface is 16, the maximum number of virtual IP addresses in a VRRP group is 16 and the maximum number of VRRP groups on a switch is 96.
  • Page 22: Configuring Vrrp Packet Attributes

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration To do… Use the command… Remarks Enter system view system-view — interface interface-type Enter VLAN interface view — interface-number Configure the priority of vrrp ipv6 vrid Optional...
  • Page 23: Displaying And Maintaining Vrrp For Ipv6

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration To do… Use the command… Remarks interface interface-type Enter VLAN interface view — interface-number Configure the authentication mode and vrrp ipv6 vrid Optional authentication key when virtual-router-id...
  • Page 24: Single Vrrp Group Configuration Example

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration VRRP Interface Tracking Configuration Example Multiple VRRP Groups Configuration Example 1.4.1 Single VRRP Group Configuration Example I. Network requirements Host A needs to access Host B on the Internet, using 202.38.160.111/24 as its default gateway.
  • Page 25 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration # Configure the priority of Switch A in the VRRP group 1 as 110. [SysnameA-Vlan-interface2] vrrp vrid 1 priority 110 # Configure Switch A to work in preemption mode and configure the preemption delay to five seconds.
  • Page 26: Vrrp Interface Tracking Configuration Example

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration <SysnameB> display vrrp verbose IPv4 Standby Information: Run Method : VIRTUAL-MAC Virtual IP Ping : Enable Total number of virtual routers: 1 Interface : Vlan-interface2 VRID Adver. Timer...
  • Page 27 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Switch A and Switch B belong to VRRP group 1 with the virtual IP address of 202.38.160.111/24. If Switch A operates normally, packets sent from Host A to Host B are forwarded by Switch A;...
  • Page 28 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration # Configure the master to send VRRP packets every five seconds. [SysnameA-Vlan-interface2] vrrp vrid 1 timer advertise 5 # Set the interface to be tracked. [SysnameA-Vlan-interface2] vrrp vrid 1 track interface vlan-interface 3...
  • Page 29 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Virtual MAC : 0000-5e00-0101 Master IP : 202.38.160.1 # Display detailed information of VRRP group 1 on Switch B. <SysnameB> display vrrp verbose IPv4 Standby Information: Run Method...
  • Page 30: Multiple Vrrp Groups Configuration Example

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration IPv4 Standby Information: Run Method : VIRTUAL-MAC Virtual IP Ping : Enable Total number of virtual routers: 1 Interface : Vlan-interface2 VRID Adver. Timer Admin Status : UP...
  • Page 31 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration II. Network diagram Figure 1-9 Network diagram for multiple VRRP groups configuration III. Configuration procedure Configure Switch A # Configure VLAN 2. <SwitchA> system-view [SwitchA] vlan 2...
  • Page 32 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration # Configure VLAN 2. <SwitchB> system-view [SwitchB] vlan 2 [SwitchB-vlan2] port ethernet 1/5 [SwitchB-vlan2] quit [SwitchB] interface vlan-interface 2 [SwitchB-Vlan-interface2] ip address 202.38.160.2 255.255.255.128 # Create VRRP group 1 and configure its virtual IP address as 202.38.160.100.
  • Page 33: Ipv6-Based Vrrp Configuration Examples

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Admin Status : UP State : Backup Config Pri : 100 Run Pri : 100 Preempt Mode : YES Delay Time Auth Type : NONE Virtual IP : 202.38.160.200...
  • Page 34: Single Vrrp Group Configuration Example

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration 1.5.1 Single VRRP Group Configuration Example I. Network requirements Host A needs to access Host B on the Internet, using FE80::10 as its default gateway. Switch A and Switch B belong to VRRP group 1 with the virtual IPv6 address of FE80::10.
  • Page 35 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration [SysnameA-Vlan-interface2] vrrp ipv6 vrid 1 priority 110 # Set Switch A to work in preemptive mode, with the preemption delay set to 5 seconds. [SysnameA-Vlan-interface2] vrrp ipv6 vrid 1 preempt-mode timer delay 5 # Enable Switch A to send RA messages.
  • Page 36 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Virtual IP : FE80::10 Virtual MAC : 0000-5e00-0201 Master IP : FE80::1 # Display detailed information of VRRP group 1 on Switch B. <<SysnameB> display vrrp ipv6 verbose...
  • Page 37: Vrrp Interface Tracking Configuration Example

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration 1.5.2 VRRP Interface Tracking Configuration Example I. Network requirements Host A needs to access Host B on the Internet, using FE80::10 as its default gateway. Switch A and Switch B belong to VRRP group 1 with the virtual IP address of FE80::10.
  • Page 38 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration # Set the priority of Switch A in VRRP group 1 to 110. [SysnameA-Vlan-interface2] vrrp ipv6 vrid 1 priority 110 # Set the authentication mode for VRRP group 1 to SIMPLE and authentication key to hello.
  • Page 39 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Run Method : VIRTUAL-MAC Virtual IP Ping : Enable Total number of virtual routers: 1 Interface : Vlan-interface2 VRID Adver. Timer : 500 Admin Status : UP...
  • Page 40: Multiple Vrrp Groups Configuration Example

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Admin Status : UP State : Backup Config Pri : 110 Run Pri : 80 Preempt Mode : YES Delay Time Auth Type : SIMPLE TEXT : hello...
  • Page 41 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration II. Network diagram Figure 1-12 Network diagram for multiple IPv6 VRRP group configuration III. Configuration procedure Configure Switch A # Configure VLAN 2. <SysnameA> system-view [SysnameA] ipv6...
  • Page 42 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration [SysnameB-vlan2] port ethernet 2/1/6 [SysnameB-vlan2] quit [SysnameB] interface vlan-interface 2 [SysnameB-Vlan-interface2] ipv6 address fe80::2 link-local [SysnameB-Vlan-interface2] ipv6 address 1::2 64 # Create VRRP group 1 and set its virtual IP address to FE80::10.
  • Page 43: Troubleshooting Vrrp

    Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration IPv6 Standby Information: Run Method : VIRTUAL-MAC Virtual IP Ping : Enable Total number of virtual routers: 2 Interface : Vlan-interface2 VRID Adver. Timer : 100 Admin Status...
  • Page 44 Operation Manual – VRRP H3C S9500 Series Routing Switches Chapter 1 VRRP Configuration Solution: In the first case, modify the configuration. In the latter case, you have to resort to non-technical measures. II. Symptom 2: Multiple masters are present in the same VRRP group.

Table of Contents