cant ping external website

NoOp glgxg at sbcglobal.net
Tue Sep 23 16:04:52 UTC 2008


On 09/23/2008 08:58 AM, Gilles Gravier wrote:
> Hi!
> 
> NoOp wrote:
>> On 09/23/2008 02:21 AM, Donny George wrote:
>>
>>   
>>> iface eth0 inet static
>>>
>>> address 10.4.139.3
>>>
>>> netmask 255.255.255.0
>>>
>>> network 10.4.139.0
>>>
>>> broadcast 10.4.139.255
>>>
>>> gateway 10.4.139.254
>>>     
>>
>> You only need these lines in that part of your /etc/resolv.conf:
>>
>> iface eth0 inet static
>> address 10.4.139.3
>> netmask 255.255.255.0
>> gateway 10.4.139.254
>>   
> *NO!* These lines aren't for */etc/resolv.conf* ! Don't put them in there.
> 
> resolv.conf is ONLY for hostname resolving. As such, it only contains
> lines like :
> 
> *nameserver *aaa.bbb.ccc.ddd
> *domain *yourdomain.tld
> *search *somedomains
> *sortlist *ip/netmask-pairs
> 
> What NoOp is describing would be the file */etc/network/interfaces* ...
> 
> Gilles.
> 
> 
> 

Thanks Gilles! Good catch... sorry I was also checking /etc/resolv.conf
at the time and brain didn't match keyboard :-)(






More information about the ubuntu-users mailing list