Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Manual Networking:Local Lan OK, wLan KO [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Oct 17, 2010 2:28 pm    Post subject: Manual Networking:Local Lan OK, wLan KO [SOLVED] Reply with quote

Hi dear all.
I'm trying to get eth0 operational as follows:
Initial situation after boot:
Code:
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
shell script to start eth0 and add a minimal routing:
Code:
/sbin/ifconfig eth0 192.168.0.21/24
route add default gw 192.168.0.1 eth0
which leads to this:
Code:
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
at this stage I can ping another adress in my local network. Unfortunatly DNS resolution doesn't work. My /etc/resolv.conf
Code:
cat /etc/resolv.conf
# Generated by resolvconf
search fontenay.lpm
nameserver 208.67.222.222
nameserver 208.67.220.220
What am I missing ?

EDIT : resolv.conf is empty at boot time. See below

Thanks for your attention


Last edited by CaptainBlood on Sun Oct 17, 2010 5:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Sun Oct 17, 2010 3:44 pm    Post subject: Reply with quote

CaptainBlood,

That all looks good - you are using opendns.

Try
Code:
ping google.com
ping 173.194.36.104
Thats ping google by name and IP

IF the first fails and the latter works, try using your ISPs nameservers
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3999

PostPosted: Sun Oct 17, 2010 5:09 pm    Post subject: Reply with quote

Thanks for quiick reply :)
Actually I made a mistake, because the resolv.conf is empty at boot time.
NetworkManager must be the culprit as it is started at boot time.
Updating the /etc/resolv.conf as I've described it made the trick.

My aim is to open and close eth0 as root at boot time. I guess I will solve that issue the rough way, i.e. overwriting the file by copy.

Thanks for your attention, interest and support
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum