H3C S7500 Series Ethernet Switches Release 3135 DHCP Configuration Examples
DHCP Configuration Examples
H3C S7500 Series Ethernet Switches Release 3135 Chapter 2 Configuration Examples
2-4
[H3C] dhcp server detect
# Configure VLAN-interface100 to operate in the global address pool mode.
[H3C] interface Vlan-interface 100
[H3C-Vlan-interface100] dhcp select global
Note that:
After DHCP configuration is complete, IP addresses can be assigned to the
workstations in the Branch only when a route is active between the HQ and the Branch.
II. Configuring the DHCP relay agent
This section mainly describes the DHCP server configuration. The following shows the
basic DHCP relay agent configuration that ensures the DHCP relay agent to relay
DHCP requests to the DHCP server. For details about DHCP relay agent configuration,
see section
2.2 "DHCP Relay Agent/Snooping Configuration Example".
<H3C> system-view
[H3C] dhcp-server 1 ip 10.214.10.1
[H3C] interface Vlan-interface 5
[H3C-Vlan-interface5] dhcp-server 1
2.2 DHCP Relay Agent/Snooping Configuration Example
2.2.1 Network Requirements
A Cisco Catalyst 3745 switch is deployed in the HQ and serves as the DHCP server to
assign IP addresses to the workstations in the Office branch. The branches are
connected to an S7506R switch that serves as the central node and as the DHCP relay
agent to forward the DHCP requests from the workstations. Meanwhile, an S7502
switch that serves as the DHCP server is used to assign IP addresses to the devices in
the labs. The network requirements are as follows:
z Configure the DHCP server in the HQ to assign the IP addresses in the
192.168.10.0/24 network segment to the workstations in the Office branch, with a
lease period of 12 hours. Configure the IP addresses of the DNS server and WINS
server as 192.169.100.2 and 192.168.100.3 respectively.
z The S7506R switch that serves as the DHCP relay agent forwards DHCP requests
from the workstations in the Office and the devices in the labs. A server is
deployed in the Office to provide access for hosts with manually configured IP
addresses.
z An S7502 Ethernet switch in Lab1 serves as the Lab DHCP server to assign the IP
addresses in the 192.168.17.0/24 network segment to the devices in Lab1, with a
lease period of one day, and to assign the IP addresses in the 192.168.19.0/24
network segment to Lab2, with a lease period of two days. The lab DHCP server