01-05-2013 10:29 AM - edited 03-07-2019 10:55 AM
Hi Everyone,
I have 2 switches running as HSRP and both have DHCP config on them.
Both these switches have connection to 3rd switch where PC is connected.
Connection between HSRP switches and 3rd switch is not trunk it is access port only.
VLAN 10 is HSRP running switches and 3rd switch has also int vlan 10 configured.
I ran the debug ip dhcp server packets on HSRP switches but no output comes out.
From Switch where PC is connected i can ping the HSRP Virtual IP which is 192.168.10.3
Thanks
MAhesh
Solved! Go to Solution.
01-05-2013 02:19 PM
Hi REza,
I did as per Alain
Here is info now from switch connected to PC
sh span
R1#sh spanning-tree vlan 10
VLAN0010
Spanning tree enabled protocol ieee
Root ID Priority 24586
Address 0019.556b.a900
Cost 19
Port 45 (FastEthernet1/0/41)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10)
Address 0019.e849.d380
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa1/0/1 Desg FWD 19 128.3 P2p Edge
Fa1/0/31 Altn BLK 19 128.35 P2p
Fa1/0/41 Root FWD 19 128.45 P2p
Now HSRP Active is in Root state and Standby is in blocking state
Thanks
mahesh
01-05-2013 02:42 PM
Hi Mahesh,
Ok, so the spanning tree is good to go.
for test purpose. if you assign a static ip to the pc
example
192.168.10.100
255.255.255.0
192.168.10.3
can you ping
192.168.10.1
192.168.10.2
192.168.10.3
if yes. than change the PC back to use DHCP and this time on the pool assign the physical address of the active switch to it. I am assuming 10.1 is the active HSRP physical address
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
lease 3
and test again
HTH
Reza
01-05-2013 03:30 PM
Hi Reza,
I will test this on monday as this site is remote site and currently no user is there.
Monday i will let you know how it goes.
Thanks
Mahesh
01-07-2013 07:30 AM
Hi Reza,
Today we tried to do ipconfig release and renew on laptop but no luck.
User connected laptop directly to HSRP active switch still no IP it was getting IP 169.254.x.x.
Then from HSRP active switch i removed these lines from config
Before change
ip dhcp excluded-address 192.168.10.5 255.255.255.0 ***********
ip dhcp excluded-address 192.168.10.2 255.255.255.0******** lines removed
ip dhcp excluded-address 192.168.10.1 255.255.255.0************
ip dhcp excluded-address 192.168.10.3 255.255.255.0***********
ip dhcp excluded-address 192.168.10.1 192.168.10.5
After change
ip dhcp excluded-address 192.168.10.1 192.168.10.5
Now PC was able to get IP from HSRP active switch and also from 3rd Switch which is connected to HSRP active switch.
Any idea how removing above lines fixed the issue?
Thanks
Mahesh
01-07-2013 07:52 AM
Hi Mahesh,
No sure exactly what was the issue, but I know in my second post I suggested to add only this line
ip dhcp excluded-address 192.168.10.1 192.168.10.5
and not individual ip addresses.
On the other hand, some times, when you remove a portion of the IOS config and apply it again, it will fix the issue.
I am glad, it is all working now.
Thanks for the update!
Reza
01-07-2013 07:55 AM
Hi Reza,
Before i add the line
ip dhcp excluded-address 192.168.10.1 192.168.10.5 it has also 4 line in config which i later deleted.
Thanks again for all the help
Regards
MAhesh
01-07-2013 07:53 AM
Mahesh,
the command structure is:
ip dhcp excluded-address
In summary, by setting
Best regards,
Rolf
01-07-2013 07:59 AM
Hi Rolf and Alain,
Many thanks for all the helpfull posts.
Regards
Mahesh
01-07-2013 08:03 AM
Hi Rolf,
Many thanks for figuring out the issue.
I got it now
Regards
MAhesh
01-07-2013 10:53 AM
Mahesh,
you're welcome.
Great, that you finally found the problem by yourself and everything works now as it should.
And thanks a lot for rating so generous - today I got my first little star for earning 100 points ;-)
Best regards
Rolf
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