cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1162
Views
26
Helpful
14
Replies

Cisco Static Route

kumarpmt83
Level 1
Level 1

hi,

I have one doubt in the static route.

In my office two cisco router and both are connected in the switch.

Two router one is core router and secondary router.

Two routers have a wan connectivity.

Router 1:

LAN IP : 10.10.50.100/24

WAN IP : 192.168.36.53/30

Router 2:

LAN IP : 10.10.50.161/24

WAN IP : 10.70.24.86/30

All the systems are connected with the gateway 10.10.50.100

Static route is configured in the Router 1.

ip route 10.10.100.0 255.255.255.0 192.168.36.54

ip route 10.10.100.0 255.255.255.0 10.10.50.161 2

We put the second static route to point the second router for the fall back.

In case of router 1 link down means it will take the second router.

but it is not working.

i got a ttl expired response from the router 1.

The above static route is correct or not and i how to give the metric value for the static route.

I want if the router 1 link fail means i t will take the secon router link.

Any one can help me.

14 Replies 14

paolo bevilacqua
Hall of Fame
Hall of Fame

You should use a routing protocol to router around network failures, not static routes.

Which routing protocol to be used and how to configure..

Kindly tell me.

Safar Safarov
Level 1
Level 1

You can use HSRP for failover.

For more information please visit the link

http://www.cisco.com/en/US/tech/tk648/tk362/tk321/tsd_technology_support_sub-protocol_home.html

If i give the above static route it will work or not..

the metric value which i given in the static route is correct or not.

usually how to give the metric value for the static route.

Vivek Ganapathi
Level 4
Level 4

Hello Dhinesh,

Think in this way, you have 2 routers connected to one switch. If you were to loose the WAN link connected to one router, your switch will never come to know about the failure as static routes will not be withdrawn from the routing table. There are some ways to overcome this, but i don't really feel that to be a right solution.

if you want to really go ahead with static routes, then you do the following

1) Configure IP SLA on your switch to poll an always available IP address on the remote side.

2) Have two floating static routes, the one which you have already configured (better to give a metric of 100, looks good) but nothing wrong with 2 though.

By configuring IP SLA - If the polling configured for that always available IP address fails, the tracked route will be removed off the routing table & then the next higher metric route will get automatically injected into the routing table.

if you want to explore an option of a dynamic routing protocol, you will really feel it to be comfortable than IP SLA (i feel this to be unreliable - sometimes)

Run EIGRP between your routers & switch & set proper metric weights for the one you want to be the best path.

Hope this helps.

Thanks

Vivek

Thanks for your advice.

can u tell me how to configure the eigrp in both router.

If one router wan links fails means and it will take the second wan link.

how to configure the fall back.

Thanks for  sharing a information and also i saw the information.it is very helpful.

Both router i had configured eigrp protocol.

But i have little confusing to give the fallback between the router if one wan link failed.

Can u tell me.

Do you mean fallback or failover? Could you please share me the configs, you have done on your router?

Config:

Router 1:

int fa0/0

ip add 10.10.20.100 255.255.255.0

speed auto

duplex auto

int se0/1/0

Des ### BSNL WAN ###

ip add 192.168.63.56 255.255.255.252

enc ppp

router eigrp 10

no auto-summary

network 10.10.20.0

network 192.168.63.0

Router 2:

int fa0/0

ip add 10.10.20.161 255.255.255.0

speed auto

duplex auto

int fa0/1

Des ## tata wan ###

ip add 10.70.45.23 255.255.255.252

enc ppp

router eigrp 10

no auto-summary

network 10.10.20.0

network 10.70.45.0

Our users are working with router 1 as a primary.If the router 1 WAN link went down it will take the route as second router .

i want to configure a failover b/w the router.

how to configure a failover in the router

Hello Dinesh,

I believe your network architecture looks something like the one attached. I would configure the network in this way, if i were you.

you have two paths to reach a destination (the building). Being that you have BSNL link on serial connection whose bandwidth is lesser than the fastethernet, EIGRP will prefer your TATA link. So, if you were to loose the TATA link, automatically failover would happen to your BSNL link as that's the only feasible successor out there.

Hope i answered you. Its depends on you if you want to run EIGRP over your WAN links to the other sites.

Thanks

Vivek

The network diagram is correct.

But my bsnl bandwidth is 2mbps and tata bandwidth is 512kbps.

In that office all my systems and servers having the gateway as 10.10.20.100.

If any one link down means how it will take the second link.

If any configuration is needed in the switch??

You can configure on the servers more than one gateway. Have router 2 ip configured on the servers as well.

Hope this helps

Eugen

Oh, so the switch is a Layer 2 switch. I'm stupid ! I should have asked what kinda switch is that you have.

Well, then you need to deal your requirement via HSRP.

1) Remove those EIGRP configs.

2) Configure HSRP on Router 1 & Router 2

3) Track the serial link & do the configs to reduce the priority incase of the link goes down.

Thanks

Vivek

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card