Operation Manual
Configuring DHCP Relay DHCP Relay Configuration
Configuration Guide
431
Switch#copy running-config startup-config
2.2.3 Specifying DHCP Server for the Interface
Follow these steps to specify DHCP server for the interface:
Step 1 configure
Enter global configuration mode.
Step 2 Enter Layer 3 interface configuration mode:
interface vlan
vid
Enter VLAN interface configuration mode.
vid
:Specify the ID of the VLAN that will be configured as a DHCP relay agent. The valid
values are from 1 to 4094.
interface loopback
lid
Enter loopback configuration mode.
lid
: Specify the ID of the loopback interface that will be configured as a DHCP relay agent.
The valid values are from 1 to 2147483647.
interface {
fastEthernet
port
| gigabitEthernet
port
| ten-gigabitEthernet
port
}
no switchport
Enter Routed Port interface configuration mode.
port:
Specify the ID of the routed port that will be configured as a DHCP relay agent
Step 3 ip helper-address
ip-addr
Specify DHCP server for the Layer 3 interface.
ip-addr:
Enter the IP address of the DHCP server.
Step 4 show ip dhcp relay
Verify the configuration of DHCP Relay.
Step 5 end
Return to Privileged EXEC Mode.
Step 6 copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to configure the DHCP server address as 192.168.1.7
on VLAN 66:
Switch#configure
Switch(config)#interface vlan 66
Switch(config-if)#ip helper-address 192.168.1.7