You are not logged in.

#1 2007-12-24 01:27:14

grilledfromage
Member
Registered: 2007-12-24
Posts: 6

NetworkManager not recognizing network

I had my arch setup working pretty well a couple days ago when I came home. Sadly I believe it was after I uninstalled some packages for pulseaudio and eventually restarted my laptop when NetworkManager stopped recognizing my network. I was on wireless at the time, but I tried plugging it into a jack and even then it was out of luck. Since then, I've done a fresh install of arch (as there were a few other things I wanted to do right the first time) but I still can't get NM to recognize any kind of signal.

lo works fine and I can ping 127.0.0.1, but when I try to ping anything on the network, I receive a "connect: Network is unreachable" message. Clicking on the NM tray icon gives me the message "No network devices have been found." I can take networkmanager out of daemons array in rc.conf and re-enable the eth0 (NIC) and eth1 (wireless). This gives me a working wired connection. However I need to have wireless working on NM to use vpnc to get on the network at school. Here are the problematic rc.conf file:

eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)

gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

DAEMONS=(syslog-ng !network dhcdbd networkmanager netfs crond)

here's my resolv.conf file:

# Generated by dhcpcd for interface eth0
search myhome.westell.com
nameserver 192.168.1.1
nameserver 192.168.1.1

Any help would be so very extremely appreciated

Offline

#2 2007-12-24 02:47:18

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: NetworkManager not recognizing network

I think your problems start here: INTERFACES=(!eth0 !eth1)
The "!" means "not" so you are not using any interfaces.
The same applies to the gateway. If your gateway path is via the computer with the IP 192.168.1.1 then you must use ROUTES=(gateway) instead of ROUTES=(!gateway)

R.

Offline

#3 2007-12-24 05:28:21

grilledfromage
Member
Registered: 2007-12-24
Posts: 6

Re: NetworkManager not recognizing network

The wiki on NM explicitly states that you need to disable the interfaces that you want to use with a "!" The wiki doesn't say anything about the gateway or ROUTES, but enabling it and disabling it doesn't seem to have an effect on whether NM will work or not.

Offline

#4 2007-12-24 05:32:23

NoOneImportant
Member
From: Deep Southern California
Registered: 2007-02-13
Posts: 178

Re: NetworkManager not recognizing network

If I were you, I would only have the loopback interface enabled.

Last edited by NoOneImportant (2007-12-24 05:33:00)

Offline

#5 2007-12-24 05:48:10

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,718
Website

Re: NetworkManager not recognizing network

@grilledfromage:

I do not know what the NM wiki is or what it says but this I know: I know networking.  wink
This is an example of a working /etc/rc.conf file that has networking enabled:

HOSTNAME="dragonfly"
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="eth0 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

I can guarantee that this works.

If for whatever reason this does not work then you have other problems. In such case post the results of:
ifconfig and we will go from there.

In your case because you are using DHCP this line: eth0="eth0 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255" should read : eth0="dhcp" just as you have it in your file.

R.

p.s. changes to network settings in /etc/rc.conf are not automatic. You may need to restart the network. (/etc/rc.d/newtork restart)

p.s. (2) : One more thing. If you are using DHCP you can disable the gateway (ROUTES=(!gateway)) because it should be set  up for you by the DHCP server.

Last edited by ralvez (2007-12-24 06:35:35)

Offline

#6 2008-01-10 06:10:22

grilledfromage
Member
Registered: 2007-12-24
Posts: 6

Re: NetworkManager not recognizing network

I got it to work a bit ago, but not by enabling the eth0 or eth1 in the Interfaces array. I ended up adding hal to my Daemons array and keeping network disabled. I guess hal was required for NM to work correctly and must have been what was messed up on my old installation. Anyway, it works now. Here's a copy of the bit of my rc.conf that's applicable:

eth0="dhcp"
eth1="dhcp"
INTERFACES=(!eth0 !eth1)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

DAEMONS=(syslog-ng !network dhcdbd networkmanager hal esd alsa netfs crond)

Hope that helps anyone that has the same problem.

Offline

Board footer

Powered by FluxBB