Configuring DHCP Service DHCP Relay Configuration
Configuration Guide  
  405
Step 2 Enter VLAN interface configuration mode:
interface vlan 
vlan-id
vlan-id
:  Specify a VLAN interface. Only VLAN 1 (the management VLAN) is supported.
Step 3 ip dhcp relay default-interface
Set the management VLAN interface as the default relay agent interface.
Step 4 ip dhcp relay vlan 
vid 
helper-address 
ip-address
Specify the VLAN ID and the DHCP server.
vid
: Enter the ID of the VLAN, in which the hosts can dynamically get the IP addresses from 
the DHCP server.
ip-address
: Enter the IP address of the DHCP server.
Step 5 exit
Return to global configuration mode.
Step 6 show ip dhcp relay
Verify the configuration of DHCP Relay.
Step 7 end
Return to Privileged EXEC Mode.
Step 8 copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to set VLAN interface 1 (the management VLAN) as the 
default relay agent interface and specify the DHCP server by entering the server address 
as 192.168.1.8 on VLAN 10: 
Switch#configure
Switch(config)#interface vlan 1
Switch(config-if)# ip dhcp relay default-interface
Switch(config-if)#exit
Switch(config)#ip dhcp relay vlan 10 helper-address 192.168.1.8
Switch(config)#show ip dhcp relay
...
DHCP VLAN relay helper address is configured on the following vlan:
vlan                                 Helper address
----------                       --------------
VLAN 10                      192.168.1.8
Switch(config)#end
Switch#copy running-config startup-config