11-19-2012 02:23 PM - edited 03-07-2019 10:08 AM
Hello,
Is it possible to force a router to use its secondary IP on an outside-facing interface as a source IP for traffic that originates from within the router, such as ICMP, NTP, and DNS?
i.e.
interface vlan 200
ip address 10.0.0.2 255.255.255.0
ip address 12.12.12.2 255.255.255.252 secondary
ip route 0.0.0.0 0.0.0.0 12.12.12.1
Every time I try to ping a public network, the router defaults to using 10.0.0.2 as its source, which obviously goes nowhere. And before you ask, yes I'm stuck with 10.0.0.2 as my primary IP for reasons not listed
Thanks,
Wil
Solved! Go to Solution.
11-19-2012 02:34 PM
I have to say, generally you won't run a private/public addresses on the same interface. Unfortunately you won't be able to source your 12.x.x.x traffic as the source packet unless you reverse the 2 addresses on the interface.
John
*** Please rate useful posts ***
11-19-2012 02:27 PM
Wil,
Cisco routers always source from the primary address. Is the secondary address a public address or is this something on your network?
John
11-19-2012 02:29 PM
Primary is private, secondary is public.
11-19-2012 02:34 PM
I have to say, generally you won't run a private/public addresses on the same interface. Unfortunately you won't be able to source your 12.x.x.x traffic as the source packet unless you reverse the 2 addresses on the interface.
John
*** Please rate useful posts ***
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