09-30-2015 01:59 PM - edited 03-05-2019 02:25 AM
Im using the NAT on a stick configuration (described here) because that´s how i connect to my ISP. The problem is that i cannot ping public IPs without using the source command at the end of the ping, in my case the only way to ping a public IP is this way:
ping 8.8.8.8 source loopback 0
That´s ok, but now i want to ping websites too, and thats not possible, everytime i try:
Home_Router#ping google.com
Translating "google.com"...domain server (8.8.8.8)
% Unrecognized host or address, or protocol not running.
. Here is my running config:
ip domain lookup
ip name-server 8.8.8.8
interface Loopback0
ip address my.publ.ic.ip and.sub.net.mask
interface FastEthernet3
ip address 192.168.1.1 255.255.255.0
ip nat inside
interface FastEthernet4
ip address 172.31.64.39 255.255.248.0
ip nat outside
ip access-list standard internet
permit 192.168.1.0 0.0.0.255
ip nat inside source list internet interface Loopback0 overload
Is there a way to achieve that?
Solved! Go to Solution.
09-30-2015 03:15 PM
At the config prompt do an "ip domain lookup ?" and see if you have the option to specify a source interface.
Jon
09-30-2015 03:15 PM
At the config prompt do an "ip domain lookup ?" and see if you have the option to specify a source interface.
Jon
10-01-2015 05:55 AM
Yes Jon, indeed it is. The complete command is
ip domain lookup source-interface <interface>
Thanks a lot!
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