cisco switch DHCP to assign a static IP

Here we describe to vlan31

ip dhcp pool vlan31
network 172.31.255.0 255.255.255.0
default-router 172.31.255.254
dns-server 202.96.209.133 8.8.8.8

1, the first special IP address dhcp excluded from the off, so as to avoid conflict behind ip address
ip dhcp excluded-address 172.31.255.1
ip dhcp excluded-address 172.31.255.100

2, write a static IP address of the pool
ip dhcp the pool static_vlan31_1
Host 172.31.255.100 255.255.255.0
015c.f9dd.48c0.da // in front of client-identifier mac to make "01"
dns-Server 202.96.209.133 8.8.8.8
default- 172.31.255.254 Router
Lease Infinite // permanent

3. Verify the IP address

cisco switch DHCP to assign a static IP

Remark

dmz_cisco3750 # clear ip dhcp binding * // If you want to take effect immediately, you need to clear the cache automatically assigned the ip

dmz_cisco3750#show ip dhcp binding
IP address Client-ID/ Lease expiration Type
Hardware address
172.31.255.100 015c.f9dd.48c0.da Infinite Manual
dmz_cisco3750#

Guess you like

Origin blog.51cto.com/13354560/2422326