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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Adding Static Route On A Cisco Router

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
Hall of Fame Super Blue

Re: Adding Static Route On A Cisco Router

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

Re: Adding Static Route On A Cisco Router

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.

2245
Views
4
Helpful
2
Replies