Describes how to configure DHCP for a layer-3 Switch

Source: Internet
Author: User

Describes how to configure DHCP for a layer-3 Switch. Today's topic is about configuring dhcp for a layer-3 switch or using the dhcp function of a pc, we will discuss how to correctly set a layer-3 Switch When configuring it to avoid abnormal switch operations. You can easily complete related configurations. Enter the vswitch world.

I. If you do not need the DHCP function of the switch, you can use the DHCP function of the PC!

◆ Configure the DHCP server on a layer-3 Switch: ip dhcp-server 192.168.0.69

◆ Set the IP address of the same DHCP server for each VLAN in the vswitch: the "vro" option is set to the interface IP address of the corresponding VLAN.

 

Layer-3 Switch configures the interface IP address of the corresponding VLAN

2. Use the DHCP function provided by the layer-3 Switch to automatically allocate IP addresses in multiple VLANs

Method 1
◆ Allocate addresses for multiple VLAN clients at the same time
◆ Some IP addresses in a VLAN are manually allocated.
◆ Specify the gateway and Wins server for the customer
◆ The address lease validity period for VLAN 2 is 1 day, and the remaining value is 3 days.
◆ Assign a specified IP address to a specific user based on the MAC address

The final layer-3 Switch configuration is as follows:

Related layer-3 Switch configuration DHCP Debugging commands:

If the DHCP client is not assigned an IP address, there are two common causes. The first case is that the port connecting to the client is not set to Portfast. After the MS Client is started, it checks that the network card is connected normally. If the Link is UP, it starts to send the DHCPDISCOVER request.

At this time, the switch port is undergoing Spanning Tree computing. Generally, it takes 30-50 seconds to enter the forwarding status. If the MS client does not receive a response from the dhcp server, it will set a 169.169.X.X IP address for the NIC. The solution is to set the vswitch port to Portfast:

Configure Portfast for a layer-3 Switch

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.