Create a VLAN and enable DHCP for the VLAN

Source: Internet
Author: User

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 #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.