beautypg.com

CANOGA PERKINS 9175 Configuration Guide User Manual

Page 242

background image

CanogaOS Configuration Guide

36-5

DUT(config)#dhcp snooping information option

Enable DHCP option-82 data insertion.

DUT(config)#dhcp snooping verify mac-address

Verify mac address of dhcp packets.

DUT(config)#dhcp snooping vlan 2

Enable dhcp snooping feature on vlan 2.


Enable DHCP snooping global feature

DUT(config)#service dhcp enable

Enable dhcp services.

DUT(config)#dhcp snooping

Enable dhcp snooping feature.

36.2.4 Validation

Commands

Check the interface configuration

DUT(config)#show running-config interface eth-0-12
!
interface eth-0-12
dhcp snooping trust
switchport access vlan 2
switchport access allowed vlan add 2
!
DUT(config)#show running-config interface eth-0-1
!
interface eth-0-1
switchport access vlan 2
switchport access allowed vlan add 2
!


Check the dhcp service status

DUT#show services
Networking services configuration:
Service Name Status
============================================================
dhcp enable


Print dhcp snooping configuration to check current configuration

DUT#show dhcp snooping config
dhcp snooping service: enabled
dhcp snooping switch: enabled
Verification of hwaddr field: enabled
Insertion of relay agent information (option 82): enabled
Relay agent information (option 82) on untrusted port: not allowed
dhcp snooping vlan 2


Show dhcp relay statistics to check the dhcp snooping statistics

DUT#show dhcp snooping statistics
DHCP snooping statistics:
============================================================
DHCP packets 0
BOOTP packets 0

Packets forwarded 0
Packets invalid 0
Packets MAC address verify failed 0
Packets dropped 0