cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3155
Views
4
Helpful
2
Replies

Adding Static Route On A Cisco Router

johnlloyd_13
Level 9
Level 9

hi experts,

i have a router which i would add a secondary IP address. please advise if i need to add a static route or would it route automatically out to the internet since it's a direct/connected router interface. a sample would be:

int f0/1

desc LAN Network

ip address <PUBLIC IP ADDRESS> <SM>

ip add 192.168.53.254 255.255.255.0 secondary

ip route 192.168.53.0 255.255.255.0 <ISP ROUTER IP ADDRESS>

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

johnlloyd_13 wrote:

hi experts,

i have a router which i would add a secondary IP address. please advise if i need to add a static route or would it route automatically out to the internet since it's a direct/connected router interface. a sample would be:

int f0/1

desc LAN Network

ip address

ip add 192.168.53.254 255.255.255.0 secondary

ip route 192.168.53.0 255.255.255.0

Not sure what you mean. If you have a default-route already on your router for then you don't need to add a special route for the secondary address. However you will need to NAT those addresses because 192.168.53.0/24 is not routable on the internet.

The above shows a LAN interface and yet you have a public IP on it. Do you also have a public IP on your WAN interface ? I'm assuming it is your WAN interface that connects to the ISP ?

If so lets assume fa0/0 is the WAN interface. So you would need -

int fa0/1

ip nat inside

int fa0/0

ip nat outside

access-list 101 permit ip 192.168.53.0 255.255.255.0 any

ip nat inside source list 101 interface fa0/0 overload

Jon

thanks jon! i've just added the static default route. i'm able to route outside the internet. there is NAT set on this router. removed the public IP address on the LAN interface.

Review Cisco Networking products for a $25 gift card