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 12800 and 12800E V200R005C00

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 DHCP Server to Assign IP Addresses to Users with the Same MAC Address in Different VLANs for Login

Example for Configuring a DHCP Server to Assign IP Addresses to Users with the Same MAC Address in Different VLANs for Login

This section provides an example for configuring a DHCP server (with no relay agent configured) to assign IP addresses to Ethernet users with the same MAC addresses in different VLANs.

Networking Requirements

IP addresses of different network segments need to be applied for VoIP and IPTV services deployed on different user planes. DHCP clients that support these services use one MAC address to apply for IP addresses of different network segments and differentiate services based on VLAN IDs. This requires the DHCP server to assign IP addresses to users with the same MAC address in different VLANs.

On the network shown in Figure 1, the DHCP server is configured to dynamically assign IP addresses to DHCP clients. When receiving a user packet in which the VLAN ID is 100, the DHCP server selects the address pool huawei1 to assign an IP address to the user based on the gateway address 10.10.10.1/24. When receiving a user packet in which the VLAN ID is 200, the DHCP server selects the address pool huawei2 to assign an IP address to the user based on the gateway address 10.10.20.1/24.

NOTE:

The DHCP server can only assign IP addresses from different address pools to users with the same MAC address in different VLANs.

Figure 3-17 Networking for configuring a DHCP server to assign IP addresses to users with the same MAC address in different VLANs for login

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure an IP address for the interface through which users go online.

  2. Configure gateway addresses and address segments for address pools.

  3. Configure Layer 3 sub-interfaces.

Data Preparation

To complete the configuration, you need the following data:

  • IP address of the interface through which users go online

  • Gateway addresses

  • Numbers and ranges of address segments

Procedure

  1. Configure an IP address for the interface through which users go online.

    <HUAWEI> system-view
    [~HUAWEI] sysname DHCP Server
    [*HUAWEI] commit
    [~DHCP Server] interface 10ge 1/0/1
    [~DHCP Server-10GE1/0/1] undo portswitch
    [*DHCP Server-10GE1/0/1] ip address 10.1.1.1 255.255.255.0
    [*DHCP Server-10GE1/0/1] commit
    [~DHCP Server-10GE1/0/1] quit

  2. Configure gateway addresses and address segments for address pools.

    # Configure an address pool huawei1.

    [~DHCP Server] dhcp enable
    [*DHCP Server] ip pool huawei1
    [*DHCP Server-ip-pool-huawei1] gateway-list 10.10.10.1
    [*DHCP Server-ip-pool-huawei1] network 10.10.10.0 mask 24
    [*DHCP Server-ip-pool-huawei1] commit
    [~DHCP Server-ip-pool-huawei1] quit

    # Configure an address pool huawei2.

    [~DHCP Server] ip pool huawei2
    [*DHCP Server-ip-pool-huawei2] gateway-list 10.10.20.1
    [*DHCP Server-ip-pool-huawei2] network 10.10.20.0 mask 24
    [*DHCP Server-ip-pool-huawei2] commit
    [~DHCP Server-ip-pool-huawei2] quit

  3. Configure a Layer 3 sub-interface (taking the Dot1q termination sub-interface as an example).

    [~DHCP Server] interface 10ge 1/0/1.1
    [*DHCP Server-10GE1/0/1.1] ip address 10.10.10.1 255.255.255.0
    [*DHCP Server-10GE1/0/1.1] dot1q termination vid 100
    [*DHCP Server-10GE1/0/1.1] commit
    [~DHCP Server-10GE1/0/1.1] quit
    [~DHCP Server] interface 10ge 1/0/1.2
    [*DHCP Server-10GE1/0/1.2] ip address 10.10.20.1 255.255.255.0
    [*DHCP Server-10GE1/0/1.2] dot1q termination vid 200
    [*DHCP Server-10GE1/0/1.2] commit
    [~DHCP Server-10GE1/0/1.2] quit

  4. Verify the configuration.

    # Run the display ip pool command on the DHCP server to check the configurations of IP address pools.

    [~DHCP Server] display ip pool name huawei1
      Pool name      : huawei1
      Pool number    : 0
      Lease          : 1 Days 0 Hours 0 Minutes
      Next server    : --
      Domain name    : --
      DNS server     : --
      NBNS server    : --
      Netbios type   : --
      Position       : Local
      Status         : Unlocked
      Gateway        : 10.10.10.1
      Mask           : 255.255.255.0
      VPN instance   : --
     -----------------------------------------------------------------------------
     Start           End             Total  Used  Idle(Expired)  Conflict  Disable
     -----------------------------------------------------------------------------
     10.10.10.1      10.10.10.254      253     0         253(0)         0        0
     -----------------------------------------------------------------------------
    [~DHCP Server] display ip pool name huawei2
      Pool name      : huawei2
      Pool number    : 1
      Lease          : 1 Days 0 Hours 0 Minutes
      Next server    : --
      Domain name    : --
      DNS server     : --
      NBNS server    : --
      Netbios type   : --
      Position       : Local
      Status         : Unlocked
      Gateway        : 10.10.20.1
      Mask           : 255.255.255.0
      VPN instance   : --
     -----------------------------------------------------------------------------
     Start           End             Total  Used  Idle(Expired)  Conflict  Disable
     -----------------------------------------------------------------------------
     10.10.20.1      10.10.20.254      253     0         253(0)         0        0
     -----------------------------------------------------------------------------

Configuration Files

DHCP server configuration file

#
sysname DHCP Server
#
dhcp enable
#
ip pool huawei1
 gateway-list 10.10.10.1 
 network 10.10.10.0 mask 255.255.255.0
#
ip pool huawei2
 gateway-list 10.10.20.1 
 network 10.10.20.0 mask 255.255.255.0
#
interface 10GE1/0/1
 undo portswitch
ip address 10.1.1.1 255.255.255.0
#
interface 10GE1/0/1.1
 ip address 10.10.10.1 255.255.255.0
 dot1q termination vid 100
#
interface 10GE1/0/1.2
 ip address 10.10.20.1 255.255.255.0
 dot1q termination vid 200
#
return
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1100039535

Views: 48120

Downloads: 27

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next