05-13-2019 12:02 AM
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???
05-13-2019 12:11 AM
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
05-13-2019 12:29 AM
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
05-13-2019 01:20 AM
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
05-13-2019 01:36 AM
Thank you for reply
I will have this checked.
05-13-2019 12:13 AM
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.
05-13-2019 12:14 AM
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
05-13-2019 12:50 AM
05-13-2019 01:23 AM
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
05-13-2019 01:59 AM
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
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