cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2920
Views
0
Helpful
8
Replies

DHCP not working across a trunk when the PC´s connection is interchanged between the switches

0natanael0
Level 1
Level 1

Hi, I am having a problem with DHCP. I have two 3850 switches connected through a trunk, the DHCP works across switches when I connect my PC to either one, the issue comes when I disconnect the PC from switch 1 and connect it to switch 2 or viceversa then the DHCP IP address assignment is not completed properly and the PC stays without an IP adress. After 5-10 minutes have passed is when the IP address is successfully reassigned to the PC. This scenario is causing issues with mobile clients which connect to an ap in a given Switch and then change to another AP connected to other Switch witch cant sucessfully get an IP adress assigned. I dont have DHCP snooping activated anywhere so this is not the issue because the problem occurs when I move fromm one switch to the other after being assigned an IP adress, I think that this maybe has to do with mac adress, security or something like that but cannot really tell because I´ve tried many options.

 

Thanks for your help,

Regards

8 Replies 8

Hi

are you using spanning-tree portfast under the switchports? or port security with aging time for inactive MAC addresses?




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

No, I´m not using port-security or spanning tree port-fast

Deepak Kumar
VIP Alumni
VIP Alumni

Hi,

Please share both switch configuration.

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

johndesgarennes
Level 4
Level 4

This should't matter, but do you have Ip arp inspection enabled? As a precaution I would add " Ip arp inspection trust" and "ip dhcp snooping" trust on a port on each switch and see if the problem continues. This will rule out any inspection issue, also where is your dhcp server? and are you on the same vlan when you move to another switch?

 

 

The Dchp server is switch 1 and yes it is the same vlan when one moves from one switch to the other. 

Is there any other devices on the same vlan when you move the device to the other switch? The reason that I ask is that the vlan will not come online until you have a device on that vlan. This might be the reason of why you have a delay in the device getting a dhcp address.

Yes, there are other devices already in that vlan as well.

Hello,

 

as Julio already mentioned, configure your access ports with the 'spanning-tree portfast' command, otherwise the DHCP broadcasts might not make it to the server in time. Also, if you have only one trunk link, use portfast on the trunk as well:

 

interface FastEthernet0/1

switchport access vlan 20

spanning-tree portfast

 

interface GigabitEthernet0/0

switchport mode trunk

spanning-tree portfast trunk

Review Cisco Networking for a $25 gift card