Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
bringing up eth0 problem
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
chr1z
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 207

PostPosted: Fri Aug 23, 2002 11:50 am    Post subject: bringing up eth0 problem Reply with quote

when i boot i only get
bringing up lo ... [ok]

i did and etc-update and all my etc config files seem to be broken :(

i edited the /etc/conf.d/net
and /etc/resolv.conf

everything worked fine before but now eth0 is not starting automatically
the proper module is also in /etc//modules.autoload

any suggestion?
it is strange because i don't get a failed to bring up eth0..
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Aug 23, 2002 12:16 pm    Post subject: Reply with quote

May not be in the default runlevel. Try:
Code:

rc-update add net.eth0 default
Back to top
View user's profile Send private message
chr1z
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 207

PostPosted: Fri Aug 23, 2002 4:13 pm    Post subject: Reply with quote

i already did that
does not help
it says that it is already in default runlevel
i think the net.eth0 file is broken or something like that
can i recreate it ?
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Fri Aug 23, 2002 7:11 pm    Post subject: Reply with quote

A safe way to recover net.eth0 is:
Code:

ebuild unpack /usr/portage/sys-apps/baselayout/baselayout-1.7.9-r1.ebuild
cd /var/tmp/portage/baselayout-1.7.9-r1/work/rc-scripts-1.3.5/init.d
cp net.eth0 /etc/init.d

Substitute your version of baselayout above.
Back to top
View user's profile Send private message
chr1z
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 207

PostPosted: Sat Aug 24, 2002 12:05 am    Post subject: Reply with quote

ok that helped me to bring eth0 up again
but i still can't browse any website :cry:
something is still wrong
any ideas?
i added the correct nameserver ip to resolv.conf
i can't ping www.gentoo.org or any other site
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Aug 24, 2002 1:17 am    Post subject: Reply with quote

Make sure the gateway line in /etc/conf.d/net is set up correctly.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
chr1z
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 207

PostPosted: Sat Aug 24, 2002 4:36 pm    Post subject: Reply with quote

the gateway line IS set up correctly
but when i try the following
Code:

route add net default gw 192.168.168.230

i get this output
net: host name lookup failure

my hostname is set up correctly in /etc/hostname
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sat Aug 24, 2002 6:24 pm    Post subject: Reply with quote

The syntax is "-net" rather than "net" below. Hence the error. What are the contents of your /etc/conf.d/net file?

Can you ping a host by IP? For example, what does pinging the IP (www.gentoo.org) below give you:
Code:

ping 64.57.168.198


chr1z wrote:
...
Code:

route add net default gw 192.168.168.230

i get this output
net: host name lookup failure
...
Back to top
View user's profile Send private message
chr1z
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 207

PostPosted: Sat Aug 24, 2002 7:06 pm    Post subject: Reply with quote

my conf.d/net file

Code:

# This is basically the ifconfig argument without the ifconfig $iface
#
iface_eth0="192.168.168.1 broadcast 192.168.168.255 netmask 255.255.255.0"
#iface_eth1="207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0"

# For DHCP set iface_eth? to "dhcp"
# For passing options to dhcpcd use dhcpcd_eth?
#
#iface_eth0="dhcp"
#dhcpcd_eth0="..."

# For adding aliases to a interface
#
#alias_eth0="192.168.0.3 192.168.0.4"

# NB:  The next is only used for aliases.
#
# To add a custom netmask/broadcast address to created aliases,
# uncomment and change accordingly.
#
#broadcast_eth0="192.168.0.255"
#netmask_eth0="255.255.255.0"


# For setting the default gateway
#
gateway="eth0/192.168.168.230"



and the ping statistics:

Code:

--- 64.57.168.198 ping statistics ---
21 packets transmitted, 21 packets received, 0% packet loss
round-trip min/avg/max = 242.2/576.7/1273.5 ms
[/quote]
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Aug 24, 2002 7:15 pm    Post subject: Reply with quote

You said you added the correct nameserver to /etc/resolv.conf, but is there a chance that there's a typo in there? It sure looks like a resolver problem now.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
chr1z
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 207

PostPosted: Sat Aug 24, 2002 9:28 pm    Post subject: Reply with quote

my resolv.conf contains only this ip
194.25.2.129
which is the correct nameserver for my isp
still i can't browse anywebsite or find any host :(
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Aug 24, 2002 9:41 pm    Post subject: Reply with quote

chr1z wrote:
my resolv.conf contains only this ip
194.25.2.129

Does it just have that line exactly, or does it say:
Code:
nameserver 194.25.2.129

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
chr1z
Apprentice
Apprentice


Joined: 17 Jul 2002
Posts: 207

PostPosted: Sat Aug 24, 2002 10:55 pm    Post subject: Reply with quote

:roll: ok i am stupid ...
nameserver was missing lol :wink:
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