beautypg.com

CANOGA PERKINS 9175 Configuration Guide User Manual

Page 241

background image

CanogaOS Configuration Guide

36-4

36.2.2 Topology

Figure 36-2: DHCP Snooping

This figure is the networking topology for testing DHCP snooping functions. We need two
Linux boxes and one switch to construct the test bed.
Computer A is used as a DHCP server.
Computer B is used as a DHCP client.
Switch A is used as a DHCP Snooping box.

36.2.3 Configurations

Configure vlan

DUT#configure terminal

Enter the Configure mode.

DUT(config)#vlan database

Configure VLAN database.

DUT(config-vlan)#vlan 2

Create vlan 2.

DUT(config-vlan)#exit

Exit the Configure mode.


Configure interface eth-0-12

DUT(config)#interface eth-0-12

Enter the Interface Configure mode.

DUT(config-if)#switchport Make

sure the port is switch port.

DUT(config-if)#switchport access vlan 2

Add the port to vlan 2.

DUT(config-if)#dhcp snooping trust

Trust all dhcp packets from this port.

DUT(config-if)#no shutdown

Make sure the port is enabled.

DUT(config-if)#exit Exit

the

Interface Configure mode.


Configure interface eth-0-1

DUT(config)#interface eth-0-1

Enter the Interface Configure mode.

DUT(config-if)#switchport Make

sure the port is switch port.

DUT(config-if)#switchport access vlan 2

Add the port to vlan 2.

DUT(config-if)#no shutdown

Make sure the port is enabled.

DUT(config-if)#exit Exit

the

Interface Configure mode.


Configure DHCP snooping feature