OcNOS-RON : System Management Guide : System Management Configuration Guide : DHCP Snooping : Procedures
Procedures
The following subsections provide examples of how to enable and configure DHCP Snooping.
Enable DHCP Snooping Globally
 
#configure terminal
Enter configure mode.
(config)#bridge 1 protocol mstp
Create mstp or ieee vlan-bridge.
(config)#ip dhcp snooping bridge 1
Enable DHCP Snooping on the bridge
Enable DHCP Snooping on a VLAN
 
configure terminal
Enter configure mode.
(config)#vlan 2 bridge 1
Configure a vlan for the bridge.
(config)#ip dhcp snooping vlan 2 bridge 1
Enable DHCP Snooping on the vlan 2
 
Configuring the ports connected to DHCP server and DHCP client
 
#configure terminal
Enter the configure mode
(config)#interface xe1
Specify the interface xe1 to be configured, and Enter interface mode
(config-if)#switchport
Configure the interface as a switch port.
(config-if)#bridge-group 1
Associate the interface xe1 with bridge-group 1.
(config-if)#switchport mode access
Configure the port as an access port
(config-if)#switchport access vlan 2
Bind the interface vlan 2 to the port.
(config-if)#exit
Exit interface mode.
(config)#interface xe2
Specify interface xe2 to be configured connected to server.
(config-if)#switchport
Configure the interface as a switch port.
(config-if)#bridge-group 1
Associate interface xe2 with bridge-group 1.
(config-if)#switchport mode access
Configure the port as an access port.
(config-if)#switchport access vlan 2
Bind the interface vlan 2 to the port.
(config-if)#exit
Exit interface mode.
(config)#exit
Exit the config mode.
Last modified date: 08/28/2023