User Guide
424
Configuring DHCP Service
Configuration Examples
Switch(config-if)#exit
3) Configure the management VLAN (by default, it is VLAN 1) as the default relay agent
interface.
Switch(config)#interface vlan 1
Switch(config-if)#ip dhcp relay default-interface
Switch(config-if)#exit
4) Specify the DHCP server for the interface VLAN 2.
Switch(config)#ip dhcp relay vlan 2 helper-address 192.168.0.59
Switch(config)#end
Switch#copy running-config startup-config
5) Verify the Configurations
View global settings:
Switch#show ip dhcp relay
DHCP relay state: enabled
...
DHCP relay helper address is configured on the following interfaces:
Interface Helper address
------------ -------------------
VLAN 2 192.168.0.59
...
View port settings:
Downloaded from