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