Adding Static Route On A Cisco Router

Unanswered Question
Oct 8th, 2010

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>

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 4 (1 ratings)
Jon Marshall Fri, 10/08/2010 - 05:21

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

johnlloyd_13 Sat, 10/09/2010 - 00:18

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.

Actions

Login or Register to take actions

This Discussion

Posted October 8, 2010 at 4:39 AM
Stats:
Replies:2 Avg. Rating:4
Views:1414 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 15,012
2 8,155
3 7,745
4 7,088
5 6,752
Rank Username Points
135
88
80
74
38