You are not logged in.

#1 2008-09-21 09:17:02

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

[SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

I am using net-profiles to have my network interfaces up. I cant have my static interface up since netcfg 2.1 upgrade (wireless still works).
Here is my /etc/network.d/ethernet.static :

CONNECTION="ethernet"
DESCRIPTION="Reseau statique"
INTERFACE=eth0
IP="static"
IFOPTS="192.168.4.101 netmask 255.255.255.0 broadcast 192.168.4.255"

Rolling back to netcfg 2.0 fixes the problem. Have i missed any upgrade requirement, or is it a bug in netcfg 2.1?

Last edited by zezaz (2008-09-24 17:18:10)

Offline

#2 2008-09-21 12:02:23

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

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

what's the problem?

"it's broken" doesnt actually tell me what the problem is. What are the error messages? symptoms?

Offline

#3 2008-09-21 16:40:06

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

iphitus wrote:

What are the error messages? symptoms?

When i restart my interfaces with /etc/rc.d/net-profiles restart, the static one (eth0) is put up, but with no IP address.

root@rogue ~]# pacman -Qi netcfg | grep Version
Version               : 2.1.0-1
[root@rogue ~]# /etc/rc.d/net-profiles restart  
   #everything seems OK, but...
[root@rogue ~]# ifconfig eth0  
eth0      Link encap:Ethernet  HWaddr 00:1A:92:78:69:BF  
          inet6 addr: fe80::21a:92ff:fe78:69bf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:14736 (14.3 Kb)
          Interrupt:16 Base address:0x8000

eth0, my ethernet card with static configuration, has no IP address.

With netcfg 2.0 the when the static interface is put up, its ip address is correctly set.

[root@rogue pkg]# pacman -Qi netcfg | grep Version
Version               : 2.0.6-1
[root@rogue ~]# /etc/rc.d/net-profiles restart  
   #everything OK
[root@rogue pkg]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:1A:92:78:69:BF  
          inet addr:192.168.4.101  Bcast:192.168.4.255  Mask:255.255.255.0
          inet6 addr: fe80::21a:92ff:fe78:69bf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:147 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:43409 (42.3 Kb)
          Interrupt:16 Base address:0x8000

Offline

#4 2008-09-21 23:59:11

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

Do you have an:

IP=dhcp

line in your profile?

This may help troubleshooting: use netcfg 2.1 to get to the broken state you report above. Then run dhcpcd manually and see if you can get issued an IP address. If so, what switches did you use for dhcpcd? If not, what errors did you see?

Offline

#5 2008-09-22 19:38:57

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

I investigated a little more, here are some details. Hope it helps!

I have 2 network cards: eth0 (ethernet card) and eth1 (wireless).

Here is the conf file for eth0:

CONNECTION="ethernet"
DESCRIPTION="Reseau statique"
INTERFACE=eth0
IP="static"
IFOPTS="192.168.4.101 netmask 255.255.255.0 broadcast 192.168.4.255"

And eth1:

CONNECTION="wireless"
DESCRIPTION="Reseau wifi"
INTERFACE=eth1
SCAN="no"
SECURITY="wep"
ESSID="(essid)"
KEY="(key)"
IP="dhcp"

With these settings, and the two cards in my NETWORKS line in the rc.conf:

* netcfg 2.0
on /etc/rc.d/net-profiles start:  eth0 and eth1 go up and have an ip address

* netcfg 2.1
on /etc/rc.d/net-profiles start: only eth1 has an ip address. eth0 goes up too but has no ip address.

BUT

if i only put eth0 in my NETWORKS= line in rc.conf , with netcfg 2.1:
* eth0 goes up and has an ip address.

Offline

#6 2008-09-23 12:12:09

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

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

ok...

I think I know what it might be.

Try netcfg 2.1.1 in [testing] (thats if I havn't moved it to core by the time you read this).

Offline

#7 2008-09-23 20:07:26

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

netcfg 2.1.1 from testing worked for me.

Many thanks!

Offline

#8 2008-09-24 01:49:46

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

@zezaz - Please mark this thread as solved.  Thank you  smile

Offline

#9 2008-09-24 17:18:57

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: [SOLVED]net-profiles: static interface broken since netcfg 2.1 upgrade

Done, thank you tigrmesh.

Offline

Board footer

Powered by FluxBB