No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Service

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes the configurations of IP Service, including IP address, ARP, DHCP, DNS, IP performance optimization, IPv6, DHCPv6, and IPv6 DNS.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring a DHCPv6 Relay Agent

Example for Configuring a DHCPv6 Relay Agent

Networking Requirements

As shown in Figure 8-21, the IPv6 network segment address is fc00:2::/64 and the DHCPv6 server address is fc00:3::3/64. Users expect to obtain IPv6 addresses using DHCPv6. The DHCPv6 client and server are on different network segments; therefore, a DHCPv6 relay agent is required to forward DHCPv6 packets.

It is required that the switch should function as the DHCPv6 relay agent to forward DHCPv6 packets between the DHCPv6 client and the DHCPv6 server. In addition, the switch functions as the gateway device of the network at fc00:2::/64. The M flag bit and O flag bit in RA messages allow hosts on the network to obtain IPv6 addresses and other network configuration parameters through DHCPv6.

Figure 8-21  Networking diagram for configuring a DHCPv6 relay agent

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure IPv6 addresses for interfaces so that devices can implement IPv6 communication.

  2. Configure the DHCPv6 relay function so that the device can forward packets between the DHCPv6 server and client.

Procedure

  1. Configure the IPv6 function on interfaces.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] interface 10ge 1/0/1
    [~SwitchA-10GE1/0/1] undo portswitch
    [*SwitchA-10GE1/0/1] ipv6 enable
    [*SwitchA-10GE1/0/1] ipv6 address fc00:2::1 64
    [*SwitchA-10GE1/0/1] quit
    [*SwitchA] interface 10ge 1/0/2
    [*SwitchA-10GE1/0/2] undo portswitch
    [*SwitchA-10GE1/0/2] ipv6 enable
    [*SwitchA-10GE1/0/2] ipv6 address fc00:3::1 64
    [*SwitchA-10GE1/0/2] quit
    [*SwitchA] commit
    

  2. Configure the DHCPv6 relay function.

    [~SwitchA] dhcpv6 enable
    [*SwitchA] interface 10ge 1/0/1
    [*SwitchA-10GE1/0/1] dhcpv6 relay destination fc00:3::3
    [*SwitchA-10GE1/0/1] commit
    

  3. Configure SwitchA to send RA messages and configure M and O flag bits.

    [~SwitchA-10GE1/0/1] ipv6 nd ra halt disable
    [*SwitchA-10GE1/0/1] ipv6 nd autoconfig managed-address-flag
    [*SwitchA-10GE1/0/1] ipv6 nd autoconfig other-flag
    [*SwitchA-10GE1/0/1] commit
    [~SwitchA-10GE1/0/1] quit

  4. Verify the configuration.

    # Run the display dhcpv6 relay statistics command on SwitchA to check DHCPv6 packet statistics on the DHCPv6 relay agent.

    [~SwitchA] display dhcpv6 relay statistics
      -------------------------------------------------------------------
      Bad packets received                                :   0
      DHCPv6 packets received from clients                :   41357
             DHCPv6 SOLICIT packets received              :   41357
             DHCPv6 REQUEST packets received              :   0
             DHCPv6 CONFIRM packets received              :   0
             DHCPv6 RENEW packets received                :   0
             DHCPv6 REBIND packets received               :   0
             DHCPv6 DECLINE packets received              :   0
             DHCPv6 RELEASE packets received              :   0
             DHCPv6 INFORMATION-REQUEST packets received  :   0
                                                               
      DHCPv6 packets received from relay agents or servers:   6
             DHCPv6 RELAY-FORWARD packets received        :   6
             DHCPv6 RELAY-REPLY packets received          :   0
                                                               
      DHCPv6 packets sent to clients                      :   6
             DHCPv6 ADVERTISE packets sent                :   6
             DHCPv6 REPLY packets sent                    :   0
             DHCPv6 RECONFIGURE packets sent              :   0
                                                               
      DHCPv6 packets sent to relay agents or servers      :   41333
             DHCPv6 RELAY-FORWARD packets sent            :   41333
             DHCPv6 RELAY-REPLY packets sent              :   0
                                                               
      DHCPv6 packets dropped                              :   24
             Table full                                   :   0
             General error                                :   24
             IPSec authentication failed                  :   0
      -------------------------------------------------------------------  

Configuration File

Configuration file of SwitchA

#
sysname SwitchA
#
dhcpv6 enable
#
interface 10GE1/0/1
 undo portswitch
 ipv6 enable
 ipv6 address FC00:2::1/64
 ipv6 nd ra halt disable
 ipv6 nd autoconfig managed-address-flag
 ipv6 nd autoconfig other-flag
 dhcpv6 relay destination FC00:3::3
#
interface 10GE1/0/2
 undo portswitch
 ipv6 enable
 ipv6 address FC00:3::1/64
#
return
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166635

Views: 131387

Downloads: 285

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next