View previous topic :: View next topic |
Author |
Message |
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Fri Jan 05, 2007 10:56 pm Post subject: [SOLVED] No network on startup |
|
|
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 |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Fri Jan 05, 2007 11:02 pm Post subject: |
|
|
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 |
|
|
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Fri Jan 05, 2007 11:10 pm Post subject: |
|
|
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 |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Fri Jan 05, 2007 11:23 pm Post subject: |
|
|
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 |
|
|
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Fri Jan 05, 2007 11:34 pm Post subject: |
|
|
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 |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Fri Jan 05, 2007 11:44 pm Post subject: |
|
|
can you post ? _________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
|
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Fri Jan 05, 2007 11:47 pm Post subject: |
|
|
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 |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Sat Jan 06, 2007 12:14 am Post subject: |
|
|
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 |
|
|
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Sat Jan 06, 2007 12:28 am Post subject: |
|
|
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 |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Sat Jan 06, 2007 12:51 am Post subject: |
|
|
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 |
|
|
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Sat Jan 06, 2007 1:47 am Post subject: |
|
|
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 |
|
|
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Sat Jan 06, 2007 2:22 am Post subject: |
|
|
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 |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Sat Jan 06, 2007 12:03 pm Post subject: |
|
|
look at here for xdm.
Udev, sometime, change your name network interface, you have to see the output of in this way you know new name associated to it. _________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
|
robin1990 n00b
Joined: 02 Jan 2007 Posts: 28
|
Posted: Sat Jan 06, 2007 12:17 pm Post subject: |
|
|
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!!!!
PS: Writing from the linux box now
Best Regards rob |
|
Back to top |
|
|
noice Guru
Joined: 05 Dec 2005 Posts: 473 Location: italia, Ischia
|
Posted: Sat Jan 06, 2007 12:49 pm Post subject: |
|
|
it's good! you edit topic with tag [Solved] if network starts to boot
bye _________________ Noice
when you post remove comments Code: | grep -vh '^[[:space:]]*\(#\|$\)' "$@" |
|
|
Back to top |
|
|
|