162
DHCP Client-1 can get an IP address.
3.
Enable the global DHCP Snooping and VLAN 1 DHCP Snooping.
A.
L2SWITCH(config)#dhcp-snooping
B.
L2SWITCH(config)#dhcp-snooping vlan 1
C.
DHCP Client-1: ipconfig /release
D.
DHCP Client-1: ipconfig /renew
DHCP Client-1 cannot get an IP address.
; Because the DHCP server connects to a un-trust port.
4.
Enable the global DHCP Snooping and VLAN 1 DHCP Snooping.
A.
L2SWITCH(config)#dhcp-snooping
B.
L2SWITCH(config)#dhcp-snooping vlan 1
C.
L2SWITCH(config)#interface gi1/0/1
D.
L2SWITCH(config-if)#dhcp-snooping trust
E.
DHCP Client-1: ipconfig /release
F.
DHCP Client-1: ipconfig /renew
DHCP Client-1 can get an IP address.
5.
If you configure a static host entry in the DHCP snooping binding table, and then you want
to change the host to DHCP client, the host will not get a new IP from DHCP server, and
then you must delete the static host entry first.
7.1.1.2.
CLI Configuration
Node
Command
Description
enable
show dhcp-snooping This command displays the current DHCP snooping
configurations.
configure
dhcp-snooping
(disable|enable)
This command disables/enables the DHCP snooping on
the switch.
configure
dhcp-snooping vlan
VLANID
This command enables the DHCP snooping function on
a VLAN or range of VLANs.
configure
no dhcp-snooping
vlan VLANID
This command disables the DHCP snooping function on
a VLAN or range of VLANs.
configure
dhcp-snooping
server IPADDR
This command configures a valid DHCP server.
interface
dhcp-snooping host
This command configures the maximum host count for
the specific port.
interface
no dhcp-snooping
host
This command configures the maximum host count to
default for the specific port.
interface
dhcp-snooping trust
This command configures the trust port for the specific
port.
interface
no dhcp-snooping
trust
This command configures the un-trust port for the
specific port.
configure
interface range
gigabitethernet1/0/
PORTLISTS
This command enters the interface configure node.