cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3577
Views
10
Helpful
9
Replies

static route is not getting added to routing table

ashik.bc
Level 1
Level 1

Hello All,

 

Our ISP as provided us the WAN IP:: 14.143.X.X/30

LAN ip:115.113.X.X/29

i am adding the static route --115.113.X.X /29 pointed towards 14.143.X.X(ISP gateway)

But its not getting added displayed in routing table..

 

Can you guys help us with this one???

 

 

 

9 Replies 9

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Ashick,

the ISP has provided you the address block 115.113.x.x/29 for you to be used as a NAT pool for accessing Internet.

If you have assigned one IP address of 115.113.x.x/29 to one interface of your router you don't need that static route at all. The network is a connected network for your router.

It is the ISP router that needs a static route for net 115.113..x.x/29 pointing to your router not your device.

on your side you need a default static route pointing to the ISP:

ip route 0.0.0.0 0.0.0.0 14.143.X.X

This should be installed if you have ip routing enabled

To enable IP routing:

ip routing

 

 

Hope to help

Giuseppe

 

 

Hello Larosa,

 

Thanks for you reply,

 

But if i add the default route like you said.

ip route 0.0.0.0 0.0.0.0 14.143.X.X.

 

Then it will hit my  internal management traffic

ip route 172.X.X.X 255.255.X.X  172.X.X.X

 

 

 

 

Hello Ashick,

the router uses the most specific route first, so a default route never overrides specific routes like the one you have shown.

This is very important and a basic principle of routing.

The default route is used for all destinations for which no specific routes exist in your network device.

A default route is typically used to reach the public Internet.

 

Hope to help

Giuseppe

 

Thank you for reply

I will have this checked.

Seb Rupik
VIP Alumni
VIP Alumni

Hi there,

Is the LAN subnet at a remote site? Where in the topology is the device you are trying to add the static route too? Can you share the output of sh ip route ?

 

cheers,

Seb.

johnd2310
Level 8
Level 8

Hi,

We need to understand your topology better. Why are you adding static route for the LAN pointing to the ISP? What is the ip addresses of your lan interface? Is the wan interface up?

 

Thanks

John

**Please rate posts you find helpful**

Hello All,

 

Both of this LAN ip and Wan ip are provided by Our ISP

And in there PE router they have added the route like below.

IP route 115.33.X.X/29 points 14.182.X.X..

 

I have attached my topology.. 

 

 

 

 

What you are trying to do does not make any sense because as Giuseppe said it is the ISP who needs a static route for the 115.33.x.x subnet. 

 

Jon

Hello Ashik,

your network diagram confirms my previous answers:

the LAN subnet provided by ISP is used to connect your multilayer switch to the two Firewalls.

The Firewalls have to perform NAT for internal network 172.x.xx.

The switch needs a default route pointing to ISP and a static route for internal network 172.x.x.x pointing to the firewall outside IP address.

As noted by Jon that static route in your initial message is not needed at all as that subnet is directly connected to your switch. This is also the reason why it is not installed and you are lucky it is not installed othewise it would break connectivity.

connected admin distance = 0

static admin distance with a next-hop = 1

The first is preferred.

 

Hope to help

Giuseppe

 

Review Cisco Networking for a $25 gift card