cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
402
Views
0
Helpful
2
Replies

How to set defualt source interface for all packets sent by Router.

franchi2015
Level 1
Level 1

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?

 

 

1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

At the config prompt do an "ip domain lookup ?"  and see if you have the option to specify a source interface.

Jon

View solution in original post

2 Replies 2

Jon Marshall
Hall of Fame
Hall of Fame

At the config prompt do an "ip domain lookup ?"  and see if you have the option to specify a source interface.

Jon

Yes Jon, indeed it is. The complete command is

 

ip domain lookup source-interface <interface>

 

Thanks a lot!