You are not logged in.

#1 2009-06-03 14:50:41

bleichmittel
Member
From: Vienna, Austria
Registered: 2009-03-02
Posts: 26

Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

This is my Ethernet controller:

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)

It is connected to an ADSL-Modem/Router.

I tried two different network configs (one with dhcp, one without):

With dhcp:

CONNECTION="ethernet-iproute"
DESCRIPTION="A basic static ethernet connection using iproute"
INTERFACE="eth0"
IP="dhcp"

Static Config:

CONNECTION="ethernet-iproute"
DESCRIPTION="A basic static ethernet connection using iproute"
INTERFACE="eth0"
IP="static"
ADDR="10.0.0.141"
NETMASK="255.255.255.0"
GATEWAY="10.0.0.138"
DNS=("10.0.0.138")

It always fails when I try to connect with netcfg2:

bash-3.2# netcfg2 --version
netcfg v2.2.0b2
bash-3.2# netcfg2 eth-wien
:: eth-wien up                                                                                                                   [BUSY]
  - No connection
                                                                                                                                 [FAIL]
bash-3.2# netcfg2 eth-wien-dhcp
:: eth-wien-dhcp up                                                                                                              [BUSY]
  - No connection
                                                                                                                                 [FAIL]

The strange thing is, that it works when I configure the interface in rc.conf like this:

MOD_AUTOLOAD="yes"
MODULES=(fuse r8169 slhc rtl8180 !snd-mixer-oss !snd-pcm-oss !pcspkr snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore powernow-k8 cpufreq_ondemand)

eth0="eth0 10.0.0.141 netmask 255.255.255.0 broadcast 10.0.0.255"
INTERFACES=(eth0)

gateway="default gw 10.0.0.138"
ROUTES=(gateway)

DAEMONS=(hal @cups fam @network !net-profiles @syslog-ng !netfs @crond)

Of course I change the DAEMONS to (!network @net-profiles) when I try to use netcfg2. I would like to use netcfg because I need two different configs for eth0.

Last edited by bleichmittel (2009-06-03 14:51:00)

Offline

#2 2009-06-04 00:52:25

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

ok, i can see the problem, I'll fix it in the next release.

Offline

#3 2009-06-04 01:02:34

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

could you rmmod, and reload your module, then post the output of

ip link set $INTERFACE up
sleep 1
ip link show $INTERFACE
sleep 5 
ip link show $INTERFACE

Also, try editing line 28 of /usr/lib/network/connections/ethernet-static from '5' to '20' and see if that fixes it.

James

Last edited by iphitus (2009-06-04 01:03:22)

Offline

#4 2009-06-04 08:07:22

bleichmittel
Member
From: Vienna, Austria
Registered: 2009-03-02
Posts: 26

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

I don't know if I did everything correctly.

So here is what I did. Based on aboves rc.conf, with a working network-connection, I did the following:

bash-3.2# rmmod r8169
bash-3.2# modprobe r8169
bash-3.2# ip link set eth0 up; sleep 1; ip link show eth0; sleep 5; ip link show eth0
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:21:85:32:46:db brd ff:ff:ff:ff:ff:ff
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:21:85:32:46:db brd ff:ff:ff:ff:ff:ff

Then I tried to make the suggest change, but ethernet-static didn't exist. So I changed line 28 in ethernet-iproute from

if  [[ $timeout -eq 5 ]]; then

to

if  [[ $timeout -eq 20 ]]; then

I booted with this rc.conf:

...

MOD_AUTOLOAD="yes"
MODULES=(fuse r8169 slhc rtl8180 !snd-mixer-oss !snd-pcm-oss !pcspkr snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore powernow-k8 cpufreq_ondemand)

...

INTERFACES=()

...

#gateway="default gw 10.0.0.138"
#ROUTES=(!gateway)

...

NETWORKS=()
DAEMONS=(hal @cups fam !network @net-profiles @syslog-ng !netfs @crond)

But trying to connect with the network-config above failed again. Altough it seemed to take longer to fail:

bash-3.2# netcfg2 eth-wien
:: eth-wien up                                                                                                                                                                                         [BUSY]
  - No connection
                                                                                                                                                                                                       [FAIL]

Offline

#5 2009-06-06 02:18:29

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

ok, new beta 3 in testing, try that.

Offline

#6 2009-06-08 16:29:45

bleichmittel
Member
From: Vienna, Austria
Registered: 2009-03-02
Posts: 26

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

Still can't find it in testing. Do you have a PKGBUILD?

I only see netcfg 2.2.0b2-1 in testing.

Offline

#7 2009-06-09 00:16:43

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

Erm, it's there now smile Forgot to run some db scripts that add it.

PKGBUILD is in svn.

Last edited by iphitus (2009-06-09 00:16:58)

Offline

#8 2009-06-09 08:58:57

bleichmittel
Member
From: Vienna, Austria
Registered: 2009-03-02
Posts: 26

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

I still only have b2 in testing.
In SVN I can see the PKGBUILD for b3 in /trunk, but it fails to build, because it can't find the sources at "http://ftp.archlinux.org/other/netcfg/n … 0b3.tar.gz".
Probably I only have to wait a little (I don't really know how the update-cycles/uploading works).

Offline

#9 2009-06-09 10:17:07

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

Third time lucky... it's definitely there now.

The db's will update briefly, but it definitely succeeded this time,  and the source package on archlinux.org will appear soon too.

Offline

#10 2009-06-09 11:07:37

bleichmittel
Member
From: Vienna, Austria
Registered: 2009-03-02
Posts: 26

Re: Problems with netcfg2 and ethernet (Realtek RTL8111/8168B)

Woohoo, it works now! Thanks for your help and great work!

Offline

Board footer

Powered by FluxBB