Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] No network on startup
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
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Fri Jan 05, 2007 10:56 pm    Post subject: [SOLVED] No network on startup Reply with quote

Hello!

When I boot my Gentoo linux I have no network connection. To get a network connection I have to type

rm /var/run/dhcpcd-eth0.pid
dhcpcd eth0

Then I can surf onto the internet. I added net.eth0 to runlevel default but it didn't help.

How can I solve this problem, as it is really annoying.

MfG rob


Last edited by robin1990 on Sat Jan 06, 2007 2:25 pm; edited 2 times in total
Back to top
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Fri Jan 05, 2007 11:02 pm    Post subject: Reply with quote

in /etc/conf.d/net set
Code:
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis"

_________________
Noice

when you post remove comments
Code:
grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Back to top
View user's profile Send private message
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Fri Jan 05, 2007 11:10 pm    Post subject: Reply with quote

Thank you for your answer!

These two options were set in my conf.d/net but they seem not to work.

This is all I do on startup to get a network connection:
Quote:

rob@roblab ~ $ su
Password:
roblab rob # dhcpcd eth0
**** dhcpcd: already running
**** dhcpcd: if not then delete /var/run/dhcpcd-eth0.pid file
roblab rob # rm /var/run/dhcpcd-eth0.pid
roblab rob # dhcpcd eth0
Error, dhcpConfig: ioctl SIOCADDRT: File exists
roblab rob #


Thank you for your help!

Best Regards rob
Back to top
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Fri Jan 05, 2007 11:23 pm    Post subject: Reply with quote

try in this way
Code:
emerge -C dhcpcd
emerge =dhcpcd-3.0.6

_________________
Noice

when you post remove comments
Code:
grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Back to top
View user's profile Send private message
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Fri Jan 05, 2007 11:34 pm    Post subject: Reply with quote

Doesn't help. The only thing which changed ist, that I only have to type

dhcpcd eth0

without the remove cmd and I also get no error messages anymore.

but the network doesn't work .. :(

What else can I do?

MfG rob
Back to top
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Fri Jan 05, 2007 11:44 pm    Post subject: Reply with quote

can you post
Code:
rc-update show
?
_________________
Noice

when you post remove comments
Code:
grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Back to top
View user's profile Send private message
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Fri Jan 05, 2007 11:47 pm    Post subject: Reply with quote

The output of rc-update show is:
Quote:
alsasound | boot
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
coldplug | boot
consolefont | boot
hostname | boot
keymaps | boot
local | default nonetwork
localmount | boot
modules | boot
net.eth0 | default
net.lo | boot
netmount | default
rmnologin | boot
syslog-ng | default
urandom | boot
vixie-cron | default
xdm | default


Thanks rob
Back to top
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Sat Jan 06, 2007 12:14 am    Post subject: Reply with quote

when you boot your gentoo, what is the error? Anything as "netmount not started"?

edit:
coldplug is deprecated,you use udev..
try
Code:

emerge -C coldplug
echo "sys-fs/udev" >> /etc/portage/package.keywords
emerge udev
emerge -uD baselayout
etc-update

_________________
Noice

when you post remove comments
Code:
grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Back to top
View user's profile Send private message
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Sat Jan 06, 2007 12:28 am    Post subject: Reply with quote

Oh..... there is an error ... I just didn't see it because kdm started up so quickly.... :? Sorry!

The error is
Quote:

dhcp
No DHCP client installed
ERROR: Problem starting needed service net.eth0
netmount was not started


How can I fix this problem? rc-update add netmount default?

MfG rob
Back to top
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Sat Jan 06, 2007 12:51 am    Post subject: Reply with quote

robin1990 wrote:
rc-update add netmount default?

no it's already there
Quote:

alsasound | boot
bootmisc | boot
checkfs | boot
checkroot | boot
clock | boot
coldplug | boot
consolefont | boot
hostname | boot
keymaps | boot
local | default nonetwork
localmount | boot
modules | boot
net.eth0 | default
net.lo | boot
netmount | default
rmnologin | boot
syslog-ng | default
urandom | boot
vixie-cron | default
xdm | default


look my previous post (edit)
_________________
Noice

when you post remove comments
Code:
grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Back to top
View user's profile Send private message
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Sat Jan 06, 2007 1:47 am    Post subject: Reply with quote

oh man. now nothing works at all! :?

I am typing this text using windows, because I can't get network to work at all.
When I type dhcpcd eth0 it tells me that eth0 is no valid ethernet connection and my x server also doesn't start anymore ...

Thank you for any help!

MfG rob
Back to top
View user's profile Send private message
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Sat Jan 06, 2007 2:22 am    Post subject: Reply with quote

Ok. I get the following errors:

Quote:
Bringing up eth0
dhcp
Running dhcpcd
Error eth0: interface is not ethernet
Error cannot start netmount as net.eth0 could not start
Setting up xdm
/sbin/start-stop-daemon: stat /usr/bin/xdm No such file or directory (No such file or directory)
Error: Could not start the display manager
xdm: no process killed


Please help me!

Best regards rob
Back to top
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Sat Jan 06, 2007 12:03 pm    Post subject: Reply with quote

look at here for xdm.
Udev, sometime, change your name network interface, you have to see the output of
Code:
ifconfig -a
in this way you know new name associated to it.
_________________
Noice

when you post remove comments
Code:
grep -vh '^[[:space:]]*\(#\|$\)' "$@"
Back to top
View user's profile Send private message
robin1990
n00b
n00b


Joined: 02 Jan 2007
Posts: 28

PostPosted: Sat Jan 06, 2007 12:17 pm    Post subject: Reply with quote

Hello!

Thanks for the help!!!!!!!

I already fixed the xdm problem, there were also some other config files (keymaps, timezone ...) to change as etc-update completely changed my config files.

I have to reboot to get ifconfig -a, I'll be back soon... :-)

EDIT:
It works!!!!! The device name now is eth1!

You are great!!! Thank you soooo much!!

Thanks a lot!!!! :D

PS: Writing from the linux box now 8)

Best Regards rob
Back to top
View user's profile Send private message
noice
Guru
Guru


Joined: 05 Dec 2005
Posts: 473
Location: italia, Ischia

PostPosted: Sat Jan 06, 2007 12:49 pm    Post subject: Reply with quote

it's good! you edit topic with tag [Solved] if network starts to boot
bye :wink:
_________________
Noice

when you post remove comments
Code:
grep -vh '^[[:space:]]*\(#\|$\)' "$@"
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