DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if
prompted.
enable
Example:
Switch>
enable
Step 1
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Creates a switch virtual interface by entering a VLAN ID, and
enter interface configuration mode.
interface vlan vlan-id
Example:
Switch(config)# interface vlan 1
Step 3
Configures the interface with an IP address and an IP subnet.
ip address ip-address subnet-mask
Example:
Switch(config-if)# ip address 192.108.1.27
255.255.255.0
Step 4
Specifies the DHCP packet forwarding address.
ip helper-address address
Step 5
Example:
Switch(config-if)# ip helper-address
172.16.1.2
The helper address can be a specific DHCP server address, or
it can be the network address if other DHCP servers are on the
destination network segment. Using the network address
enables other servers to respond to DHCP requests.
If you have multiple servers, you can configure one helper
address for each server.
Returns to global configuration mode.
end
Example:
Switch(config-if)# end
Step 6
Configures multiple physical ports that are connected to the
DHCP clients, and enter interface range configuration mode.
Use one of the following:
Step 7
•
interface range port-range
or
•
interface interface-id
Configures a single physical port that is connected to the DHCP
client, and enter interface configuration mode.
Example:
Switch(config)# interface
gigabitethernet1/0/2
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
220
OL-29048-01
Configuring DHCP
Specifying the Packet Forwarding Address