10-08-2010 04:39 AM - edited 03-06-2019 01:24 PM
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>
10-08-2010 05:21 AM
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
10-09-2010 12:18 AM
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.
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