New VLAN and enable this VLAN DHCP function
This example is used inVmwareviewRequiredDHCPAutomatically obtainedIPAddress:
1, Connection Server Specify IP Address 192.168.30.2 , So IP Slave DHCP Pool exclusion, if there are other IP The address must be retained. You can continue to exclude it.
2, DHCP The gateway of is 192.168.30.1 , DNS Is 192.168.0.120 And 192.168.0.121
3. DHCP the pool name is VM _ Dt , and VLAN name same (Of course it can be different ).
Core‑6e # conf t
Enter configuration commands, one per line. End with cntl/Z.
Core‑6e (config) # VLAN 30
Core‑6e (config-VLAN) # name vm_dt
Core‑6e (config-VLAN) # exit
Core‑6e (config) # int VLAN 30
Core‑6e (config-If) # IP address 192.168.30.1 255.255.255.0
Core‑6e (config-If) # ip dhcp pool vm_dt
Core‑6e (DHCP-config) # network 192.168.30.0 255.255.255.0
Core‑6e (DHCP-config) # default-router 192.168.30.1
Core‑6e (DHCP-config) # DNS-server 192.168.0.120 192.168.0.121
Core‑6e (DHCP-config) # exit
Core‑6e (config) # ip dhcp excluded-address 192.168.30.2
Core‑6e (config) # exit
Core3166e # WR
Building configuration...
Compressed configuration from 7240 bytes to 2458 bytes [OK]
Core‑6e #