Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

internal L3 switches to single router

Hi if I've 2 L3 3560 switches( these 2 L3 switches are interconnected thru ether channel trunk) with 1 connection each to a router(1900), and these 2 switches are connected to this router using 10.1.1.0/30 and 10.1.1.4/30 respectively. How do I make sure that the default route always go thru L3 sw number 1 and not number 2? Will the command below work?

Ip route 0.0.0.0 0.0.0.0 10.1.1.1

Ip route 0.0.0.0 0.0.0.0 10.1.1.5 100

This is to say 10.1.1.1 is the preferred gw and 10.1.1.5 will only be used if 10.1.1.1 gw is down over the L3 sw Number 1 is down?

Sent from Cisco Technical Support iPad App

1 REPLY
Community Member

internal L3 switches to single router

Hi,

I would use the interface option in the IP route command:

IP route 0.0.0.0 0.0.0.0 [interface] 10.1.1.1

IP route 0.0.0.0 0.0.0.0 [interface] 10.1.1.5 100

Here is a doc for your reference:

http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800ef7b2.shtml

Also, you might want to check out HSRP for that connection.

http://www.cisco.com/en/US/docs/switches/lan/catalyst3750/software/release/12.2_25_sec/configuration/guide/swhsrp.html

Hope this helps

140
Views
4
Helpful
1
Replies
CreatePlease to create content