You are not logged in.
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
ok, i can see the problem, I'll fix it in the next release.
Offline
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
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
ok, new beta 3 in testing, try that.
Offline
Still can't find it in testing. Do you have a PKGBUILD?
I only see netcfg 2.2.0b2-1 in testing.
Offline
Erm, it's there now Forgot to run some db scripts that add it.
PKGBUILD is in svn.
Last edited by iphitus (2009-06-09 00:16:58)
Offline
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
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
Woohoo, it works now! Thanks for your help and great work!
Offline