Chapter7ServiceConguration
FIGURE64DHCPCLIENTCONFIGURATIONEXAMPLE
Congurationofswitch:
zte(cfg)#setvlan100enable
zte(cfg)#setvlan100addport1untag
zte(cfg)#setport1pvid100
zte(cfg)#setdhcpclientenable
zte(cfg)#configroute
zte(cfg-router)#setipport0ipaddressdhcp
zte(cfg-router)#setipport0vlan100
zte(cfg-router)#setipport0enable
zte(cfg-router)#showipport
IpPortStatusIpAddressMaskMacAddressVlanIdIpMode
--------------------------------------------
0up192.168.1.3255.255.255.000.0d.1c.52.22.22100dhcp
zte(cfg-router)#showipport0
Status:upIpAddress:192.168.1.3
VlanId:100Mask:255.255.255.0
ArpProxy:disabledMacAddress:00.0d.1c.52.22.22
Timeout:600(s)IpMode:dhcp
En/Disable:enabled
Dhcpclientconfigurationasfollows:
Class-id:-
Client-id:-
Hostname:-
Lease:-
Clearrequest:-
DHCPSnooping/Option82
Configuration
DHCPSnooping/Option82Overview
TheDHCP(DynamicHostCongurationProtocol)enablesthehost
toapplydynamicaddressesfromserver .
DHCPsnoopingfunctionpreventsbogusDHCPserverfrombeing
laidinnetwork,andinthiscase,theportconnectingtoDHCP
servermustbesettotrustedport.What’smore,dynamicARP
inspectiontechnologycanbeusedtogethertopreventillegalIP
andMACaddressbinding,thusensuringnormalassignmentofIP
addressesbyDHCPserver .DHCPSnoopingandOption82arede-
signedtosolvethesesafetyproblems.DHCPSnooping,namely
DHCPpacketltering,istodetectlegalityofDHCPpacketsbased
onsomespecialrulesandlterillegalpackets.UseOption82tech-
CondentialandProprietaryInformationofZTECORPORATION133