You are not logged in.

#1 2008-12-21 11:54:19

kdemon
Member
From: Latvia
Registered: 2008-12-11
Posts: 40

[SOLVED] Network device problem!

Problem is that I do not have network access from my Arch box. I just started it today and it seem to not recognize my network card - when booting it said "IP-Config : no devices to configure". What could be the problem??

Last edited by kdemon (2009-01-01 10:16:56)

Offline

#2 2008-12-21 12:26:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] Network device problem!

That message is not relevant - it refers to network functionality in the init image only.

If you want help with this problem, provide some more details e.g. network card type, lsmod, log extracts etc.

Offline

#3 2008-12-21 14:41:17

kdemon
Member
From: Latvia
Registered: 2008-12-11
Posts: 40

Re: [SOLVED] Network device problem!

Ok, so I ran lspci, results:

.
.
.
Ethernet controller: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)

in rc.conf i have:

HOSTNAME="khost"
eth0="eth0 192.168.0.44 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
DAEMONS=(...network...)

And when I try to run /etc/rc.d/network start    I get this:

: command not found4:
: command not found26:
: command not found40:
: command not found43:
: command not found51:
: command not found64:
: command not found71:
: command not found82:
:: Starting network [BUSY]
/etc/rc.d/network: eval: line 21: syntax error near unexpected token `('
'etc/rc.d/network: eval: line 21: `iwcfg=$wlan_(eth0)
/etc/rc.d/network: line 26: eth0: command not found
: error fetching interface information : Device not found
/etc/rc.d/network: line 74: gateway: command not found
:Host name lookup failure
[FAIL]

So I open the /etc/rc.d/network file and line 21 reads:

eval iwcfg="\$wlan_${1}"

...line 26

eval ifcfg="\$${1}"

I dont see whats wrong...

Last edited by kdemon (2008-12-21 14:43:02)

Offline

#4 2008-12-21 14:46:30

kdemon
Member
From: Latvia
Registered: 2008-12-11
Posts: 40

Re: [SOLVED] Network device problem!

Oh, and for Ubuntu on the same box everything is fine...

Offline

#5 2008-12-21 16:14:40

kdemon
Member
From: Latvia
Registered: 2008-12-11
Posts: 40

Re: [SOLVED] Network device problem!

Also when running ifconfig, it shows only localhost entry. No eth0 as it used to....
When I try to get it up with ifconfig eth0 up, I get

eth0: unknown interface: No such device

Its so damn confusing... please any help?

Offline

#6 2009-01-01 10:15:39

kdemon
Member
From: Latvia
Registered: 2008-12-11
Posts: 40

Re: [SOLVED] Network device problem!

Hello,
My long quest is finally completed.

What I did was:
reloaded module for network adapter

modprobe forcedeth

configured now available interface

ifconfig eth0 192.168.0.44 netmask 255.255.255.0 up

and default gateway

route add default gw 192.168.0.1

The network was now available at least. Could start httpd, mysqld, vsftpd and everything worked. However, everytime I booted in I had to do these things including daemon starting. So I put this is rc.local. I thought this will be for a while, until I manage to find real problem.

I uninstalled and installed initscripts package with pacman:

pacman -Rsn initscripts
pacman -S initscripts

and almost everything was fine. Had to do a little configuring in rc.conf (IP address) and hosts (hostname) file and thats it. Hope this helps someone.

Offline

Board footer

Powered by FluxBB