H3C S3600 Series Operation Manual
Hide thumbs Also See for S3600 Series:
Table of Contents

Advertisement

Operation Manual - DHCP
H3C S3600 Series Ethernet Switches-Release 1510
Chapter 1 DHCP Overview............................................................................................................ 1-1
1.1 Introduction to DHCP......................................................................................................... 1-1
1.2 DHCP IP Address Assignment .......................................................................................... 1-1
1.2.1 IP Address Assignment Policy ................................................................................ 1-1
1.2.2 Obtaining IP Addresses Dynamically ...................................................................... 1-2
1.2.3 Updating IP Address Lease .................................................................................... 1-2
1.3 DHCP Packet Format ........................................................................................................ 1-3
1.4 DHCP Packet Processing Modes ...................................................................................... 1-4
1.5 Protocol Specification ........................................................................................................ 1-4
Chapter 2 DHCP Server Configuration........................................................................................ 2-1
2.1 Introduction to DHCP Server ............................................................................................. 2-1
2.1.1 Usage of DHCP Server ........................................................................................... 2-1
2.1.2 IRF Support ............................................................................................................. 2-1
2.1.3 DHCP Address Pool................................................................................................ 2-2
2.1.4 DHCP IP Address Preferences ............................................................................... 2-3
2.2 Global Address Pool-Based DHCP Server Configuration ................................................. 2-4
2.2.1 Configuration Overview........................................................................................... 2-4
2.2.2 Enabling DHCP ....................................................................................................... 2-4
2.2.3 Configuring Global Address Pool Mode on Interface(s).......................................... 2-5
2.2.5 Configuring DNS Services for the DHCP Server .................................................... 2-9
2.2.7 Customizing DHCP Service .................................................................................. 2-11
2.2.8 Configuring Gateway Addresses for DHCP Clients .............................................. 2-11
2.3 Interface Address Pool-based DHCP Server Configuration ............................................ 2-13
2.3.1 Configuration Overview......................................................................................... 2-13
2.3.2 Enabling DHCP ..................................................................................................... 2-14
2.3.3 Configuring to Assign the IP Addresses of Interface Address Pools to DHCP Clients2-14
2.3.5 Configuring DNS Services for the DHCP Server .................................................. 2-17
2.3.7 Customizing DHCP Service .................................................................................. 2-20
Server............................................................................................................................. 2-20
2.4 DHCP Security Configuration .......................................................................................... 2-21
2.4.1 Prerequisites ......................................................................................................... 2-21

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading

Summary of Contents for H3C S3600 Series

  • Page 1: Table Of Contents

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Table of Contents Table of Contents Chapter 1 DHCP Overview......................1-1 1.1 Introduction to DHCP......................1-1 1.2 DHCP IP Address Assignment ..................1-1 1.2.1 IP Address Assignment Policy ................1-1 1.2.2 Obtaining IP Addresses Dynamically ..............
  • Page 2 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Table of Contents 2.4.2 Configuring Private DHCP Server Detecting ............2-21 2.4.3 Configuring IP Address Detecting ................. 2-21 2.5 Option 82 Supporting Configuration ................2-22 2.5.1 Introduction to DHCP-Server Option 82..............2-22 2.5.2 Configuration Prerequisites...................
  • Page 3: Chapter 1 Dhcp Overview

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 DHCP Overview Chapter 1 DHCP Overview 1.1 Introduction to DHCP With networks getting larger in size and more complicated in structure, lack of available IP addresses becomes the common situation the network administrators have to face, and network configuration becomes a tough task for the network administrators.
  • Page 4: Obtaining Ip Addresses Dynamically

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 DHCP Overview Dynamic assignment. The DHCP server assigns IP addresses to DHCP clients for predetermined period of time. In this case, a DHCP client must apply for an IP address again at the expiration of the period.
  • Page 5: Dhcp Packet Format

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 DHCP Overview By default, a DHCP client updates its IP address lease automatically by unicasting a DHCP-REQUEST packet to the DHCP server when half of the lease time elapses. The DHCP server responds with a DHCP-ACK packet to notify the DHCP client of a new IP lease if the server can assign the same IP address to the client.
  • Page 6: Dhcp Packet Processing Modes

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 DHCP Overview flags: The first bit is the broadcast response flag bit. It is used to identify that the DHCP response packet is sent in the unicast or broadcast mode. Other bits are reserved.
  • Page 7 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 DHCP Overview RFC1542: Clarifications and Extensions for the Bootstrap Protocol...
  • Page 8: Chapter 2 Dhcp Server Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Chapter 2 DHCP Server Configuration Note: The contents of this chapter are only applicable to the S3600-EI series among S3600 series switches. 2.1 Introduction to DHCP Server 2.1.1 Usage of DHCP Server...
  • Page 9: Dhcp Address Pool

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration directly forwarded by hardware instead of being delivered to the DHCP server, or being redirected to the master unit by UDP HELPER. This idles the DHCP server.
  • Page 10: Dhcp Ip Address Preferences

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration holds belong to the network segment the interface resides in and are available to the interface only. II. The structure of an address pool The address pools of a DHCP server are hierarchically organized in a tree-like structure.
  • Page 11: Global Address Pool-Based Dhcp Server Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration If no IP address is available, the DHCP server queries lease-expired and conflicted IP addresses. If the DHCP server finds such IP addresses, it assigns them;...
  • Page 12: Configuring Global Address Pool Mode On Interface(S)

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Table 2-2 Enable DHCP Operation Command Description Enter system view system-view — Required Enable DHCP dhcp enable By default, DHCP is enabled Note: To improve security and avoid malicious attack to the unused SOCKETs, S3600 Ethernet switches provide the following functions: UDP 67 and UDP 68 ports used by DHCP are enabled only when DHCP is enabled.
  • Page 13: Configuring How To Assign Ip Addresses In A Global Address Pool

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Table 2-3 Configure the global address pool mode on interface(s) Operation Command Description Enter system view system-view — interface interface-type nterface-number Configure Configure the specified...
  • Page 14 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Table 2-4 Configure to assign IP addresses by static binding Operation Command Description Enter system view system-view — Required default, Create a DHCP address pool and...
  • Page 15 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Note: To improve security and avoid malicious attack to the unused SOCKETs, S3600 Ethernet switches provide the following functions: UDP 67 and UDP 68 ports used by DHCP are enabled only when DHCP is enabled.
  • Page 16: Configuring Dns Services For The Dhcp Server

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Operation Command Description Return to system — quit view Optional Specify dhcp server forbidden-ip By default, all IP addresses in addresses that are low-ip-address a DHCP address pool are...
  • Page 17: Configuring Dhcp Server To Assign Wins Server Addresses

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Operation Command Description Required Configure domain-name domain name for By default, no domain name is domain-name DHCP clients configured for DHCP clients. Required Configure server addresses dns-list ip-address&<1-8>...
  • Page 18: Customizing Dhcp Service

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Table 2-7 Configure DHCP server to assign WINS server addresses Operation Command Description Enter system view system-view — Create a DHCP Required address pool and...
  • Page 19: Configuring Connection Between A Dhcp Global Address Pool And A Bims Server2-12

    2.2.9 Configuring Connection Between a DHCP Global Address Pool and a BIMS Server Branch intelligent management system (BIMS) is a kind of network management software, provided by H3C Technologies Co., Ltd. With BIMS you can manage and monitor network devices that dynamically obtain IP addresses universally and effectively.
  • Page 20: Interface Address Pool-Based Dhcp Server Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration 2.3 Interface Address Pool-based DHCP Server Configuration Caution: In the interface address pool mode, after the addresses in the interface address pool have been assigned, the DHCP server picks IP addresses from the global interface address pool containing the segment of the interface address pool and assigns them to the DHCP clients.
  • Page 21: Enabling Dhcp

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Configuration task Description Related section Configure to bind must address choose Configure tically least one of assign P clients 2.3.4 "Configuring the addresses options. Mode...
  • Page 22: Configuring The Mode To Assign Ip Addresses To Dhcp Clients

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Table 2-13 Configure to assign the IP addresses of interface address pools to DHCP clients Operation Command Description Enter system view — system-view interface interface-type...
  • Page 23 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration DHCP-DISCOVER packets. The DHCP server finds the corresponding IP addresses based on the client IDs and assigns them to the DHCP clients. Table 2-14 Configure to assign IP addresses by static binding...
  • Page 24: Configuring Dns Services For The Dhcp Server

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Table 2-15 Configure to assign IP addresses dynamically Operation Command Description Enter system view system-view — interface interface-type interface-number Configure dhcp server expired { day...
  • Page 25: Configuring Dhcp Servers To Assign Wins Server Addresses

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration On the DHCP server, you can configure domain names to be used by DHCP clients for address pools. After you do this, the DHCP server provides the domain names to the DHCP clients while the DHCP server assigns IP addresses to the DHCP clients.
  • Page 26 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration host name of the destination node. After receiving the broadcast packet, the destination node returns its IP address to the source node. P-node. Nodes of this type establish their mappings by communicating with WINS servers (The character p stands for peer-to-peer).
  • Page 27: Customizing Dhcp Service

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration 2.3.7 Customizing DHCP Service With the evolution of DHCP, new options are constantly coming into being. You can add the new options as the properties of DHCP servers by performing the following configuration.
  • Page 28: Dhcp Security Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration 2.4 DHCP Security Configuration DHCP security configuration is needed to ensure the security of DHCP service. 2.4.1 Prerequisites Before configuring DHCP security, you should first complete the DHCP server configuration (either global address pool-based or interface address pool-based DHCP server configuration).
  • Page 29: Option 82 Supporting Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration address to the DHCP client only when no response is received during the whole course, thus ensuring that an IP address is assigned to one DHCP client exclusively.
  • Page 30: Option 184 Supporting Configuration

    Option 184 is an RFC reserved option, and the information it carries can be customized. H3C defines four proprietary sub-options for this option, enabling the DHCP server to put the information required by a DHCP client in the response packet to the client.
  • Page 31 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Sub-option Feature Function Note The alternate NCP server identified by sub-option option 184 acts as the backup of the AS-IP NCP server. The The AS-IP sub-option...
  • Page 32: Prerequisites

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Note: For the configurations specifying to add sub-option 2, sub-option 3, and sub-option 4 in the response packets to take effect, you must configure the DHCP server to add sub-option 1.
  • Page 33 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration I. Configuring the option 184 supporting function in system view Table 2-24 Configure the option 184 supporting function in system view Operation Command Description Enter system view system-view —...
  • Page 34 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration II. Configuring the option 184 supporting function in interface view Table 2-25 Configure the option 184 supporting function in interface view Operation Command Description Enter system view system-view —...
  • Page 35: Configuration Example

    A 3COM VCX device operating as a DHCP client requests the DHCP server for all sub-options of option 184. A H3C series switch operates as the DHCP server. The option 184 supporting function is configured for a global DHCP address pool. The sub-options of option 184 are as follows: NCP-IP: 3.3.3.3...
  • Page 36 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration AS-IP: 2.2.2.2 Voice VLAN configuration: voice VLAN: enabled; voice VLAN ID: 3 Fail-over routing: IP address: 1.1.1.1; dialer string: 99* II. Network diagram DHCP client...
  • Page 37: Displaying And Debugging A Dhcp Server

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration [H3C-dhcp-pool-123] voice-config as-ip 2.2.2.2 [H3C-dhcp-pool-123] voice-config voice-vlan 3 enable [H3C-dhcp-pool-123] voice-config fail-over 1.1.1.1 99* 2.7 Displaying and Debugging a DHCP Server You can verify your DHCP-related configuration by executing the display command in any view.
  • Page 38: Dhcp Server Configuration Example

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Note: Executing the save command will not save the lease information on a DHCP server to the flash memory. Therefore, the configuration file contains no lease information after the DHCP server restarts or you clear the lease information by executing the reset dhcp server ip-in-use command.
  • Page 39 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration Note: If you use the inheriting relation of parent and child address pools, make sure that the number of the assigned IP addresses does not exceed the number of the IP addresses in the child address pool;...
  • Page 40: Troubleshooting A Dhcp Server

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration # Configure the IP addresses that are not dynamically assigned. (That is, the IP addresses of the DNS server, WINS server, and gateways.) [H3C] dhcp server forbidden-ip 10.1.1.2 [H3C] dhcp server forbidden-ip 10.1.1.4...
  • Page 41 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 2 DHCP Server Configuration on the network, with the conflicting IP address as the destination and an enough timeout time. The IP address is manually configured on a host if you receive a response packet of the ping operation.
  • Page 42: Chapter 3 Dhcp Relay Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration Chapter 3 DHCP Relay Configuration 3.1 Introduction to DHCP Relay 3.1.1 Usage of DHCP Relay Since the packets are broadcasted in the process of obtaining IP addresses, DHCP is...
  • Page 43: Option 82 Supporting

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration After receiving the packet, the network device providing the DHCP relay function unicasts the packet to the designated DHCP server based on the configuration. The DHCP server assigns IP addresses and sends the configuration information...
  • Page 44 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration RFC2131 Dynamic Host Configuration Protocol RFC3046 DHCP Relay Agent Information Option IV. Mechanism of option 82 supporting on DHCP relay The procedure for a DHCP client to obtain an IP address from a DHCP server through a DHCP relay is similar to that for the client to obtain an IP address from a DHCP server directly.
  • Page 45: Dhcp Relay Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration 3.2 DHCP Relay Configuration Note: If a switch belongs to a fabric, you need to enable the UDP-helper function on it before configure it to be a DHCP relay.
  • Page 46 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration To enhance reliability, you can set multiple DHCP servers on the same network. These DHCP servers form a DHCP server group. When the interface establishes mapping relationship with the DHCP server group, the interface forwards the DHCP packets to all servers in the server group.
  • Page 47: Configuring Dhcp Relay Security

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration Note: You can configure up to eight external DHCP server IP addresses in a DHCP server group. You can map multiple VLAN interfaces to one DHCP server group. But one VLAN interface can be mapped to only one DHCP server group.
  • Page 48 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration Operation Command Description Required default, address checking function is disabled. Enable the address address-check enable (Only S3600-EI series checking function switches among S3600 series switches...
  • Page 49 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration III. Configuring the dynamic user address entry updating function When a DHCP client obtains an IP address from a DHCP server with the help of a...
  • Page 50: Configuring Option 82 Supporting

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration Table 3-7 Configure private DHCP server detection function Operation Command Description Enter system view system-view — Required Enable private DHCP By default, the private dhcp-server detect...
  • Page 51: Displaying And Debugging Dhcp Relay

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration Note: By default, with the option 82 supporting function enabled on the DHCP relay, the DHCP relay will adopt the replace strategy to process the request packets containing option 82.
  • Page 52 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration the DHCP clients can obtain IP addresses and related configuration information from the DHCP server. II. Network diagram DHCP client DHCP client DHCP client DHCP client...
  • Page 53: Troubleshooting Dhcp Relay

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 3 DHCP Relay Configuration 3.5 Troubleshooting DHCP Relay I. Symptom A client fails to obtain configuration information through a DHCP relay. II. Analysis This problem may be caused by improper DHCP relay configuration. When a DHCP...
  • Page 54: Chapter 4 Dhcp Snooping Configuration

    DHCP servers. Trusted ports forward any received DHCP packets to ensure that DHCP clients can obtain IP addresses from valid DHCP servers. Figure 4-1 illustrates a typical network diagram for DHCP snooping application, where Switch A is an S3600 series Ethernet switch.
  • Page 55 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 4 DHCP Snooping Configuration DHCP client DHCP client DHCP client DHCP client DHCP client DHCP client Switch A (DHCP snooping) Switch A (DHCP snooping) Switch A (DHCP snooping) Switch B (DHCP relay)
  • Page 56: Dhcp Snooping Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 4 DHCP Snooping Configuration DHCP snooping listens the following two types of packets to retrieve the IP addresses the DHCP clients obtain from DHCP servers and the MAC addresses of the DHCP...
  • Page 57: Configuration Example

    4.4 Configuration Example I. Network requirements As shown in Figure 4-1, the Ethernet1/0/1 port of Switch A (an S3600 series switch) is connected to Switch B (acting as a DHCP relay). A network segment containing some DHCP clients is connected to the Ethernet1/0/2 port of Switch A.
  • Page 58: Chapter 5 Dhcp Accounting Configuration

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 5 DHCP Accounting Configuration Chapter 5 DHCP Accounting Configuration 5.1 Introduction to DHCP Accounting DHCP accounting allows a DHCP server to notify the RADIUS server of the start/end of accounting when it assigns/releases a lease.
  • Page 59: Configuring Dhcp Accounting

    Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 5 DHCP Accounting Configuration 5.2.2 Configuring DHCP Accounting Table 5-1 Configure DHCP accounting Operation Command Description Enter system view system-view — Enter address pool dhcp server ip-pool Required view...
  • Page 60 Operation Manual – DHCP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 5 DHCP Accounting Configuration [H3C] vlan 2 [H3C-vlan2] quit # Create VLAN 3. [H3C] vlan 3 [H3C-vlan3] quit # Enter Ethernet1/0/2 port view and add the port to VLAN 2.

Table of Contents