Related configuration commands:
config)#ip dhcp pool [address pool name]
(config)#ip dhcp excluded-address [Not assigned address]
(dhcp-config)#network [Address to be assigned] [Mask]
(dhcp-config)#lease [Lease]
(dhcp-config)#default-router [default gateway]
(dhcp-config)#dns-server[dns server]
Then set the vlan that automatically obtains the address
(config)#ip helper-address [switch address]
Then divide the port into vlan
show config:
ip dhcp excluded-address 10.0.199.200 10.0.199.254
!
ip dhcp pool test
network 10.0.199.0 255.255.255.0
default-router 10.0.199.1
dns-server 10.0.199.252
lease 0 0 5
nterface Vlan199
ip address 10.0.199.1 255.255.255.0
ip helper-address 10.0.1.1
Article entry: csh Editor in charge: csh