H3C S7500 Series Operation Manual
H3C S7500 Series Operation Manual

H3C S7500 Series Operation Manual

Dhcp
Hide thumbs Also See for S7500 Series:
Table of Contents

Advertisement

Quick Links

Operation Manual - DHCP
H3C S7500 Series Ethernet Switches
Chapter 1 DHCP Overview............................................................................................................ 1-1
1.1 Introduction to DHCP......................................................................................................... 1-1
1.2 DHCP IP Address Assignment .......................................................................................... 1-2
1.2.1 IP Address Assignment Policy ................................................................................ 1-2
1.2.2 Obtaining IP Addresses Dynamically ...................................................................... 1-2
1.2.3 Updating IP Address Lease .................................................................................... 1-3
1.3 DHCP Packet Format ........................................................................................................ 1-3
1.4 DHCP Packet Processing Modes ...................................................................................... 1-5
1.5 Protocols and Standards ................................................................................................... 1-5
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 DHCP Address Pool................................................................................................ 2-1
2.1.3 DHCP IP Address Preferences ............................................................................... 2-2
2.2 Global Address Pool-Based DHCP Server Configuration ................................................. 2-3
2.2.1 Configuration Task List ........................................................................................... 2-3
2.2.2 Enabling DHCP ....................................................................................................... 2-3
2.2.3 Configuring Global Address Pool Mode on Interface(s).......................................... 2-3
2.2.5 Configuring DNS Services for the DHCP Server .................................................... 2-6
2.2.6 Configuring NetBIOS Services for the DHCP Server.............................................. 2-7
2.2.7 Customizing DHCP Service .................................................................................... 2-8
2.2.8 Configuring Gateway Addresses for DHCP Clients ................................................ 2-8
2.3 Interface Address Pool-Based DHCP Server Configuration ............................................. 2-9
2.3.1 Configuration Overview........................................................................................... 2-9
2.3.2 Enabling DHCP ..................................................................................................... 2-10
Clients ............................................................................................................................ 2-10
2.3.5 Configuring DNS Services for the DHCP Server .................................................. 2-13
2.3.6 Configuring NetBIOS Services for DHCP Clients ................................................. 2-14
2.3.7 Customizing DHCP Service .................................................................................. 2-15
2.4 DHCP Security Configuration .......................................................................................... 2-16
2.4.1 Prerequisites ......................................................................................................... 2-16
2.4.2 Configuring Private DHCP Server Detecting ........................................................ 2-16
2.4.3 Configuring IP Address Detecting ......................................................................... 2-17
2.5 Displaying and Maintaining a DHCP Server.................................................................... 2-18

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S7500 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for H3C S7500 Series

  • Page 1: Table Of Contents

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches 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-2 1.2.1 IP Address Assignment Policy ................1-2 1.2.2 Obtaining IP Addresses Dynamically ..............1-2 1.2.3 Updating IP Address Lease ..................
  • Page 2 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Table of Contents 2.6 DHCP Server Configuration Example................2-18 2.7 Troubleshooting a DHCP Server ..................2-21 Chapter 3 DHCP Relay Agent Configuration ................3-1 3.1 Introduction to DHCP Relay Agent ..................3-1 3.1.1 Usage of DHCP Relay Agent ..................
  • Page 3: Chapter 1 Dhcp Overview

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 1 DHCP Overview Chapter 1 DHCP Overview When configuring DHCP, go to these sections for information you are interested in: Introduction to DHCP DHCP IP Address Assignment DHCP Packet Format...
  • Page 4: Dhcp Ip Address Assignment

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 1 DHCP Overview 1.2 DHCP IP Address Assignment 1.2.1 IP Address Assignment Policy Currently, DHCP provides the following three IP address assignment policies to meet the requirements of different clients: Manual assignment.
  • Page 5: Updating Ip Address Lease

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 1 DHCP Overview Note: The IP addresses offered by other DHCP servers (if any) are not used by the DHCP client and are still available to other clients. 1.2.3 Updating IP Address Lease...
  • Page 6 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 1 DHCP Overview op (1) htype (1) hlen (1) hops (1) xid (4) secs (2) flags (2) ciaddr (4) yiaddr (4) siaddr (4) giaddr (4) chaddr (16) sname (64) file (128)
  • Page 7: Dhcp Packet Processing Modes

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 1 DHCP Overview 1.4 DHCP Packet Processing Modes After the DHCP server is enabled on a device, the device processes the DHCP packet received from a DHCP client in one of the following three modes depending on your...
  • Page 8: Chapter 2 Dhcp Server Configuration

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration Chapter 2 DHCP Server Configuration When configuring DHCP servers, go to these sections for information you are interested in: Introduction to DHCP Server Global Address Pool-Based DHCP Server Configuration...
  • Page 9: Dhcp Ip Address Preferences

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration If an interface is configured with a valid unicast IP address, you can create an interface-based address pool for the interface by executing the dhcp select interface command in interface view.
  • Page 10: Global Address Pool-Based Dhcp Server Configuration

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration The first IP address found among the available IP addresses in the DHCP address pool. If no IP address is available, the DHCP server queries lease-expired and conflicted IP addresses.
  • Page 11: Configuring How To Assign Ip Addresses In A Global Address Pool

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration clients through these interfaces, it assigns IP addresses in the global address pool to the DHCP clients. Follow these steps to configure the global address pool mode on interface(s): To do…...
  • Page 12 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration To do… Use the command… Remarks Enter system view system-view — Required Create a DHCP address dhcp server ip-pool By default, no global pool and enter DHCP...
  • Page 13: Configuring Dns Services For The Dhcp Server

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration To do… Use the command… Remarks Enter system view system-view — Required Create a DHCP address dhcp server ip-pool pool and enter DHCP By default, no DHCP...
  • Page 14: Configuring Netbios Services For The Dhcp Server

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration To do… Use the command… Remarks Enter system view system-view — Required Create a DHCP address dhcp server ip-pool By default, no global pool and enter DHCP...
  • Page 15: Customizing Dhcp Service

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration mappings by sending unicast packets to WINS servers. If they fail to obtain mappings, they send broadcast packets to obtain mappings. Follow these steps to configure NetBIOS services for the DHCP server: To do…...
  • Page 16: Interface Address Pool-Based Dhcp Server Configuration

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration DHCP server provides the gateway addresses to DHCP clients as well while assigning IP addresses to them. You can configure gateway addresses for address pools on a DHCP server. Currently, you can configure up to eight gateway addresses for a DHCP address pool.
  • Page 17: Enabling Dhcp

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration You can perform certain configurations for DHCP address pools of an interface or multiple interfaces within specified interface ranges. Configuring for multiple interfaces eases configuration work load and makes you to configure in a more convenient way.
  • Page 18: Configuring To Assign Ip Addresses Of Dhcp Address Pools To Dhcp Clients

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration Follow these steps to configure to assign the IP addresses of interface address pools to DHCP clients: To do… Use the command… Remarks Enter system view —...
  • Page 19 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration Note: The IP addresses statically bound in interface address pools and the interface IP addresses must be in the same segment. There is no limit to the number of IP addresses statically bound in an interface address pool, but the IP addresses statically bound in interface address pools and the interface IP addresses must be in the same segment.
  • Page 20: Configuring Dns Services For The Dhcp Server

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration To do… Use the command… Remarks Optional By default, all IP addresses in a Specify the IP dhcp server forbidden-ip DHCP address addresses that are not...
  • Page 21: Configuring Netbios Services For Dhcp Clients

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration To do… Use the command… Remarks Enter system view system-view — interface interface-type interface-number Configure the current dhcp server domain-name Required Configure interface domain-name a domain...
  • Page 22: Customizing Dhcp Service

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration WINS server returns the IP address corresponding to the destination node name to the source node. M-node. Nodes of this type are p-nodes mixed with broadcasting features (The character m stands for the word mixed), that is to say, this type of nodes obtain mappings by sending broadcast packets first.
  • Page 23: Dhcp Security Configuration

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration To do… Use the command… Remarks Enter system view system-view — interface interface-type interface-number Configure dhcp server option code { ascii the current ascii-string | hex hex-string&<1-10> |...
  • Page 24: Configuring Ip Address Detecting

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration To do… Use the command… Remarks Enter system view system-view — Required Enable the private DHCP By default, the private dhcp server detect server detecting function...
  • Page 25: Displaying And Maintaining A Dhcp Server

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration 2.5 Displaying and Maintaining a DHCP Server To do… Use the command… Remarks Display the statistics on IP display dhcp server conflict { all | ip...
  • Page 26 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration assigning is carried out through DHCP relay agent. Note that DHCP server configuration is the same in both scenarios. I. Network requirements The DHCP server assigns IP addresses dynamically to the DHCP clients on the same network segment.
  • Page 27 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration II. Network diagram Client WINS server Client Client 10.1.1.4 /25 Vlan -int1 Vlan -int2 10.1.1 .1/25 10.1.1.129/25 Switch A 10.1 .1.126 /25 10 .1 .1.254 /25...
  • Page 28: Troubleshooting A Dhcp Server

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 2 DHCP Server Configuration # Configure DHCP address pool 2, including address range, gateway, WINS server address, and lease time. [H3C] dhcp server ip-pool 2 [H3C-dhcp-pool-2] network 10.1.1.128 mask 255.255.255.128 [H3C-dhcp-pool-2] expired day 5 [H3C-dhcp-pool-2] nbns-list 10.1.1.4...
  • Page 29: Chapter 3 Dhcp Relay Agent Configuration

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration Chapter 3 DHCP Relay Agent Configuration When configuring DHCP relay agents, go to these sections for information you are interested in: Introduction to DHCP Relay Agent...
  • Page 30: Option 82 Supporting

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration DHCP relay agents can transparently transmit broadcast packets on DHCP clients or servers to the DHCP servers or clients in other network segments. In the process of dynamic IP address assignment through the DHCP relay agent, the DHCP client and DHCP server interoperate with each other in a similar way as they do without the DHCP relay agent.
  • Page 31 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration agent. Generally, sub-option 1 and sub-option 2 must be used together to identify information about a DHCP source. Sub-option 2: A sub-option of option 82. Sub-option 2 represents the remote agent ID, namely Remote ID.
  • Page 32: Configuring Dhcp Relay Agent

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration Note: Request packets sent by a DHCP client fall into two categories: DHCP-DISCOVER packets and DHCP-REQUEST packets. As DHCP servers coming from different manufacturers process DHCP request packets in different ways (that is, some DHCP...
  • Page 33: Configuring Dhcp Relay Agent Security

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent 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 34 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration accessing external networks if the IP address configured on the user end and the MAC address of the user end do not match any entries (including the entries dynamically tracked by the DHCP relay agent and the manually configured static entries) in the user address table on the DHCP relay agent.
  • Page 35: Configuring Option 82 Supporting

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration III. Configuring whether to allow freely-connected clients to pass DHCP security check A freely-connected client refers to the client whose IP address and MAC address are not in the DHCP security table.
  • Page 36: Displaying And Maintaining Dhcp Relay Agent

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration To do… Use the command… Remarks Configure the strategy for Optional dhcp relay information the DHCP relay agent to strategy { drop | keep |...
  • Page 37 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 3 DHCP Relay Agent Configuration II. Network diagram DHCP client DHCP client DHCP client DHCP client DHCP client DHCP client Vlan-int2 Vlan-int2 Vlan-int2 Vlan-int1 Vlan-int1 Vlan-int1 10.110.1.1/24 10.110.1.1/24 10.110.1.1/24 202.38.1.1/24 202.38.1.1/24...
  • Page 38: Troubleshooting Dhcp Relay Agent

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

    Trusted ports forward any received DHCP packet to ensure that DHCP clients can obtain IP addresses from valid DHCP servers. Untrusted ports drop all the received packets. Figure 4-1 illustrates a typical network diagram for DHCP snooping application, where Switch A is an S7500 series switch.
  • Page 40: Configuring Dhcp Snooping

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 4 DHCP Snooping Configuration DHCP Server DHCP Server DHCP Client DHCP Client DHCP Client DHCP Client DHCP Client DHCP Client Internet Internet Internet Switch A Switch A Switch A Switch B...
  • Page 41: Dhcp-Snooping Option 82

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 4 DHCP Snooping Configuration To do… Use the command… Remarks Enter system view system-view — Required Enable the DHCP By default, the DHCP dhcp-snooping snooping function snooping function is disabled...
  • Page 42: Enabling Dhcp-Snooping Option 82

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 4 DHCP Snooping Configuration If the message contains option 82, the switch replaces the original option 82 in the message with its own option 82, and then broadcasts the request message.
  • Page 43: Displaying And Maintaining Dhcp Snooping

    Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 4 DHCP Snooping Configuration II. Enabling DHCP-Snooping option 82 Follow these steps to enable DHCP-snooping option 82 on a DHCP-snooping-enabled network device: To do… Use the command… Remarks Enter system view system-view —...
  • Page 44 Operation Manual – DHCP H3C S7500 Series Ethernet Switches Chapter 4 DHCP Snooping Configuration II. Network diagram DHCP Server DHCP Server DHCP Client DHCP Client DHCP Client DHCP Client DHCP Client DHCP Client Internet Internet Internet Eth2/0/2 Eth2/0/2 Eth2/0/2 Eth2/0/1...

Table of Contents