You are not logged in.

#1 2007-04-07 15:11:43

mildred
Member
From: france
Registered: 2006-12-23
Posts: 43
Website

networkmanager, got IP but no default route :(

Hi,

I'm trying to set up the networkmanager for my laptop, then it can configure my network when I plug in the wire (I can't have working wifi drivvers yet). My problem is hat the default route is not set.

Here are some parts of my /etc/rc.conf file

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo !eth0)

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

NET_PROFILES=(home)

DAEMONS=(syslog-ng 915resolution !@network ifplugd netfs crond alsa dbus hal dhcdbd networkmanager hwd acpid pommed sensors powersaved cpufreq gdm sshd)

Whan I plug in my wire, i got those networkmanager messages in /ver/log/everything.log:

Apr  7 17:07:47 kylae NetworkManager: <information>     Will activate wired connection 'eth0' because it now has a link.
Apr  7 17:07:47 kylae NetworkManager: <information>     SWITCH: no current connection, found better connection 'eth0'.
Apr  7 17:07:47 kylae NetworkManager: <information>     Will activate connection 'eth0'.
Apr  7 17:07:47 kylae NetworkManager: <information>     Device eth0 activation scheduled...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) started...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 4 of 5 (IP Configure Get) scheduled...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 4 of 5 (IP Configure Get) started...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled...
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 4 of 5 (IP Configure Get) complete.
Apr  7 17:07:47 kylae NetworkManager: <information>     Activation (eth0) Stage 5 of 5 (IP Configure Commit) started...
Apr  7 17:07:48 kylae NetworkManager: <information>     Activation (eth0) successful, device activated.
Apr  7 17:07:48 kylae NetworkManager: <information>     Activation (eth0) Finish handler scheduled.
Apr  7 17:07:48 kylae NetworkManager: <information>     Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete.

And related dhcdbd

Apr  7 17:07:47 kylae dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.reason
Apr  7 17:07:47 kylae dhcdbd: message_handler: message handler not found under /com/redhat/dhcp/eth0 for sub-path eth0.dbus.get.reason

And my route right after that:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0

I have to manually sudo route add default gw 192.168.0.254

I think the problem is with dhcdbd but i can't see where. i tried to google on those lines w/o success. Have someone experienced something similar, can anyone help me ?
Thanks

Mildred

Offline

#2 2007-04-07 16:18:15

Mikko777
Member
From: Suomi, Finland
Registered: 2006-10-30
Posts: 837

Re: networkmanager, got IP but no default route :(

Works fine here, it takes a while after route command for the next line after the first to pop up tho.

I'm not sure what your problem is though, can't you reach your router without manually adding the route or what?

I'm using dhcd though, instead of manual configured ip address.

Offline

#3 2007-04-07 17:36:52

mildred
Member
From: france
Registered: 2006-12-23
Posts: 43
Website

Re: networkmanager, got IP but no default route :(

yes, I can reach my router, but I can't reach the Internet because the default route is not set ... So I have to add it manually.

Offline

#4 2007-04-08 07:36:49

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: networkmanager, got IP but no default route :(

same problem here:[

Offline

#5 2007-04-08 10:48:39

mildred
Member
From: france
Registered: 2006-12-23
Posts: 43
Website

Re: networkmanager, got IP but no default route :(

By the way, I found a tempoary solution. To add the service networkmanager-dispatcher and create the script /etc/NetworkManager/dispatcher.d/route containing :

#!/bin/sh

case "$2" in
        up)
                route add default gw 192.168.0.254
        ;;
        down)
        ;;
esac

The problem is that it will only work on my personal network, not elsewhere.

Offline

#6 2007-04-11 22:26:47

AlienTesticle
Member
Registered: 2007-04-11
Posts: 3

Re: networkmanager, got IP but no default route :(

you need to remove the "!" from the ROUTES line... "!" meaning to disable

ROUTES=(!gateway)

Should Read

ROUTES=(gateway)

Hope that helps.

---
keep on m'ARCH'n


Keep on  m'ARCH'n

Offline

#7 2007-04-12 00:24:06

mildred
Member
From: france
Registered: 2006-12-23
Posts: 43
Website

Re: networkmanager, got IP but no default route :(

Thanks but unfortunately I can't because the route is determined dynamicly using DHCP ...

Offline

#8 2007-04-12 04:24:54

AlienTesticle
Member
Registered: 2007-04-11
Posts: 3

Re: networkmanager, got IP but no default route :(

Are you getting DHCP some other way. You list this in your rc.conf

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo !eth0)

And usually I use this when I am using DHCP

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)

I dont have "dhcdbd" installed so I dont know if thats causing any issue. Though I might install that later and try again to see if I can reproduce your issue.


Keep on  m'ARCH'n

Offline

#9 2007-04-12 20:04:24

mildred
Member
From: france
Registered: 2006-12-23
Posts: 43
Website

Re: networkmanager, got IP but no default route :(

Well ... I was using network profiles. But you're right. I changed eth0 and wlan0 to dhcp and it works.

So:

eth0=dhcp
wlan0=dhcp
INTERFACES=(lo !eth0 !wlan0)

Thank you so much, it works now

Offline

Board footer

Powered by FluxBB