10-27-2011 03:17 AM - edited 03-07-2019 03:04 AM
Hi,
My topology is like this :
FAI1 --- Router1 (fa1/0) ---------- Switch1
| |
(fa2/0) iBGP (fa2/0) |
| |
FAI2 --- Router2 (fa1/0) ---------- Switch2
Note : for some networks I use Router2 as default route if Router2 is UP. If Router2 is down, Router1 is the only external way. If Router1 is down, Router2 is the ony external way.
My HSRP conf is simple as possible :
Router1 (fa1/0)
ip add 192.168.0.10
standby 1 ip 192.168.0.1
standby 1 timer 2 6
standby 1 priority 200
standby 1 preempt delay minimum 120
Router2 (fa1/0)
ip add 192.168.0.11
standby 1 ip 192.168.0.1
standby 1 timers 2 6
standby 1 preempy
If Switch1 and Switch2 are up. Router1 is active, Router2 is in standby. Ok that work.
If Switch1 or Switch2 is down, HSRP is active on the two routers. Is it possible to use the link used by iBGP to set the state of HSRP (I have trying with standby 1 track but that doesnt work) ?
Thanks
Jerome
10-29-2011 04:11 AM
So, I have changed my conf, now my topology is like this :
With this conf :
R1 (same thing for R2) :
interface Port-channel1
switchport mode trunk
interface FastEthernet3/0
description R2
switchport mode trunk
channel-group 1 mode on
interface FastEthernet3/1
description R2
switchport mode trunk
channel-group 1 mode on
interface FastEthernet3/2
description SW1
switchport mode trunk
interface FastEthernet3/3
description SW2
switchport mode trunk
interface Vlan10
ip address 91.209.117.10 255.255.255.0
standby 10 ip 91.209.117.1
standby 10 timers 2 6
standby 10 priority 200
SW1 (same thing for SW2) :
interface FastEthernet0/0
description R1
switchport mode trunk
interface FastEthernet0/1
description R2
switchport mode trunk
interface FastEthernet0/2
description Server
switchport access vlan 10
spanning-tree portfast
Now it's ok, R1 is active, R2 is in stanby. But there are little very strange problem. From server I can ping 91.209.117.10 (or R2 with 91.209.117.11) but not the HSRP virtual IP add.
If I lookat ARP table on server :
tc@Server:~$ arp
? (91.209.117.1) at 00:00:0c:07:ac:0a [ether] on bond0
? (91.209.117.10) at cc:1d:1c:fc:00:00 [ether] on bond0
And the mac address table on SW1 :
Switch1#sh mac-address-table
*Mar 1 00:53:39.163: %SYS-5-CONFIG_I: Configured from console by console
Destination Address Address Type VLAN Destination Port
------------------- ------------ ---- --------------------
cc21.15f8.0000 Self 1 Vlan1
0000.0c07.ac0a Dynamic 10 FastEthernet0/0
00aa.0086.fe00 Dynamic 10 FastEthernet0/2
cc1d.1cfc.0000 Dynamic 10 FastEthernet0/0
cc1d.1cfc.f302 Dynamic 1 FastEthernet0/0
cc1d.1cfc.0000 Dynamic 1 FastEthernet0/0
I have the correct VLAN/MAC for the HSRP address :
Router1#sh standby
Vlan10 - Group 10
State is Active
2 state changes, last state change 01:29:09
Virtual IP address is 91.209.117.1
Active virtual MAC address is 0000.0c07.ac0a
Local virtual MAC address is 0000.0c07.ac0a (v1 default)
Hello time 2 sec, hold time 6 sec
Next hello sent in 0.248 secs
Preemption enabled, delay min 120 secs
Active router is local
Standby router is unknown
Priority 200 (configured 200)
Track interface FastEthernet0/0 state Up decrement 10
IP redundancy name is "hsrp-Vl10-10" (default)
Why I can't reach this address ?
10-29-2011 05:30 AM
Hi Jerome
Can you ping the HSRP IP from R1/R2 itself ?
Regards
Varma
10-29-2011 05:45 AM
the standby router for vlan 10 is listed as 'unknown' in your output for R1. does vlan10 exist in the vlan databases on R1 and R2?
hth
andy
10-29-2011 09:14 AM
@Varma.
Yes no problem from R1/R2.
@Andy
It's normal R2 was down when I have made the last test (see the screenshot).
10-29-2011 09:38 AM
Hi,
I have find a command on another lab but I dont understand the command and the result.
If I add on R1/R2 :
int vlan 10
ip pim sparse-mode
That work BUT if I reload routers I can't ping and if I remove this command I can ping.
Why ?
10-29-2011 10:40 PM
Hi Jerome
"ip pim sparse-mode" is used to enable multiast routing and I don't think it has anything to do with HSRP here..Its a not so expected behaviour we are seeing for HSRP..
What series router are you using..Is it a real network or some lab setup in GNS or something ?
If R1/R2 can ping HSRP IP and User can ping R1/R2 Physical IP then I don't see any issue on HSRP Layer.
Not sure many be a weird platform/IOS behaviour...
Regards
Varma
10-29-2011 11:29 PM
Hi varma,
In fact I thing I need to use pim because I not use HSRP on the default VLAN. I think have found my problem with the restart because the DR needed by the sparse mode was missing. I test my lab but I think my issue is completed.
Jerome
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