cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2774
Views
0
Helpful
4
Replies

switch config between 2 routers for HSRP

choclateer
Level 1
Level 1

I have a 3750 stack as my core. I am setting up HSRP between 2 routers. I found lots of examples on how to set up the routers, but how do I configure the switch ports that both routers connect to, since they are on the same subnet?

3750>interface gi1/0/1

3750>description- router A interface port

3750>no switchport

3750> ?

3750>no shut

3750>interface gi1/0/2

3750>description- router B interface port

3750>no switchport

3750> ?

3750>no shut

I tried to assign IP addresses to both ports gi1/0/1 and gi1/0/2 in the HSRP subnet, but the switch only took the first one.

1 Accepted Solution

Accepted Solutions

Richard Burts
Hall of Fame
Hall of Fame

Reza

I am surprised that you did not recognize the basic issue here. If the OP wants to configure HSRP then the switch ports must be access ports in the same VLAN. The basic mistake of OP was to configure no switchport. For HSRP both switch ports must be access ports (switchport access VLAN x) in the same VLAN.

HTH

Rick

Sent from Cisco Technical Support iPhone App

HTH

Rick

View solution in original post

4 Replies 4

Reza Sharifi
Hall of Fame
Hall of Fame

Hi

When the switches are stacked, they logically act as one switch not two.  That is why you can't configure the same subnet twice. If you want to connect one interface from each 3750 to two different routers, you need use 2 different subnets.

example:

Switch(config-if)#interface gigabitEthernet 1/0/1

Switch(config-if)#ip address 10.10.10.1 255.255.255.0

Switch(config-if)#interface gigabitEthernet 1/0/2

Switch(config-if)#ip address 10.10.20.1 255.255.255.0

HTH

Is there a way to connect one core switch to 2 different routers and let HSRP choose which router to go to?

Richard Burts
Hall of Fame
Hall of Fame

Reza

I am surprised that you did not recognize the basic issue here. If the OP wants to configure HSRP then the switch ports must be access ports in the same VLAN. The basic mistake of OP was to configure no switchport. For HSRP both switch ports must be access ports (switchport access VLAN x) in the same VLAN.

HTH

Rick

Sent from Cisco Technical Support iPhone App

HTH

Rick

Hi Rick,

I couldn't quite understand what the OP wants to do, as he has configured "no switch" and also looking for HSRP config.  I guess, it is a matter of interpretation.  Most times, it is easier to show a simple drawing.

Reza

Review Cisco Networking for a $25 gift card