Purpose
Command or Action
Defines the VLAN membership mode for the port.
switchport mode access
Example:
Switch(config-if)# switchport mode access
Step 8
Assigns the ports to the same VLAN as configured in Step 2.
switchport access vlan vlan-id
Example:
Switch(config-if)# switchport access vlan 1
Step 9
Returns to privileged EXEC mode.
end
Example:
Switch(config-if)# end
Step 10
Verifies your entries.
show running-config
Example:
Switch#
show running-config
Step 11
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config startup-config
Step 12
Prerequisites for Configuring DHCP Snooping and Option 82
The prerequisites for DHCP Snooping and Option 82 are as follows:
•
You must globally enable DHCP snooping on the switch.
•
Before globally enabling DHCP snooping on the switch, make sure that the devices acting as the DHCP
server and the DHCP relay agent are configured and enabled.
•
If you want the switch to respond to DHCP requests, it must be configured as a DHCP server.
•
Before configuring the DHCP snooping information option on your switch, be sure to configure the
device that is acting as the DHCP server. You must specify the IP addresses that the DHCP server can
assign or exclude, or you must configure DHCP options for these devices.
•
For DHCP snooping to function properly, all DHCP servers must be connected to the switch through
trusted interfaces. In a service-provider network, a trusted interface is connected to a port on a device
in the same network.
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
OL-29048-01
221
Configuring DHCP
Prerequisites for Configuring DHCP Snooping and Option 82