09-14-2017 11:00 PM - edited 03-08-2019 12:02 PM
Hi guys,
I' ve an DHCP issue that works if the link is access mode but didn't work if I change it to trunk mode. Here's the config:
SW-server: (with vlan database created)
ip routing
ip dhcp pool VLAN-MGT
network 10.0.0.0 255.255.255.0
default-router 10.0.0.254
!
interface vlan 500
ip address 10.0.0.254 255.255.255.0
!
interface G1/0
switchport mode trunk
switchport trunk allowed vlan 500
!
SW-client: (with vlan database created)
ip routing
interface vlan 500
ip address dhcp
!
interface G1/0
switchport mode trunk
switchport trunk allowed vlan 500
!
In summary:
1. if interface G1/0 is access mode , interface vlan500 on SW-client gets IP address
2. if interface G1/0 is trunk mode, no IP address on SW-client interface vlan500.
Your explanations are very appreciated.
Solved! Go to Solution.
09-18-2017 12:35 PM
Hello,
Finally, I found this command applied on trunk interface:
mac-address-table secure maximum 24 GigabitEthernet0/1/2
By removing it, it works immediately.
I didn't understand why this line block the traffic. Its not an ACL.
Thanks for all of you guys.
09-18-2017 01:28 PM
09-18-2017 11:16 PM
Hello,
glad that you found the problem/solution. No way to guess this...:)
09-19-2017 03:59 AM - edited 09-19-2017 04:09 AM
I'm glad to know that you found the solution for your issue.
I'm kind of stumped with the solution. (If port security was an issue, Could you also let us know the violation type selected, what mode did the port go into when there was a violation eg: err-disa../Shutdown? )
If possible can someone please shed some light to this solution.
How can --> mac-address-table secure maximum 24 GigabitEthernetxx act differently on a Access port and a Trunk port.
I assume that the above command should also block (DHCP Request) while the port is in access mode.
(No offence to anyone. I'm just curious to know how the above command works differently on an access port vs Trunk port.)
Regards,
Moses.
09-20-2017 11:31 AM
Hello,
In my case, this command doesn't work on trunk interface. That is why I remove it.
I didn't try on access mode. But I think it should work.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide