
119
DHCP Server
Application-2 (Local in different VLANs)
The DHCP cleint-1 and DHCP client-2 are located in different VLAN. But they
allocate IP address from the same DHCP server.
Switch DHCP Relay agent
Server client client client client client client client
VLAN 1: port 1,2 (Management VLAN)
VLAN 2: port 3, 4
VLAN 3: port 5, 6
VLAN 4: port 7, 8
DHCP Server
Port 1.
DHCP Client
Port 2, 3, 4, 5, 6, 7, 8.
Result:
Hosts connected to port 2,3,4,5,6,7,8 can get IP from DHCP server.
Note
: The DHCP Server must connect to the management VLAN member ports.
The DHCP Relay in management VLAN should be enabled.
6.5.1.
CLI Configurations
Node
Command
Description
enable
show dhcp relay
This command displays the current configurations
for the DHCP relay.
enable
configure terminal
This command changes the node to configure
node.
configure dhcp relay
(disable|enable)
This command disables/enables the DHCP relay
on the switch.
configure dhcp relay vlan
VLAN_RANGE
This command enables the DHCP relay function
on a VLAN or a range of VLANs.
configure no dhcp relay vlan
VLAN_RANGE
This command disables the DHCP relay function
on a VLAN or a range of VLANs.
configure dhcp helper-address
IP_ADDRESS
This command configures the DHCP server’s IP
address.
1
2
3
4
6
5
7
8