FS#31193 - [netcfg] static ip lost when used alongside bridge configuration, unless bridge is specified first

Attached to Project: Arch Linux
Opened by Shridhar Daithankar (ghodechhap) - Sunday, 19 August 2012, 14:46 GMT
Last edited by Eric Belanger (Snowman) - Tuesday, 30 April 2013, 01:06 GMT
Task Type General Gripe
Category Arch Projects
Status Closed
Assigned To Jouke Witteveen (jouke)
Architecture All
Severity Low
Priority Low
Reported Version 4.0.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:

When bridge and ethernet profiles are configured in /etc/network.d, using netcfg; static ethernet does not get an ip if it comes before bride configuration in /etc/config.d/netcfg

Steps to Reproduce:

- configure 2 profiles in netcfg, one for bridge and other for static ethernet

- in /etc/config.d/netcfg, specify networks as follows
NETWORKS=(bridge ethernet-static )

- restart netcfg, observe ip addresses assigned to the interface

- in /etc/config.d/netcfg, specify networks as follows
NETWORKS=(ethernet-static bridge)

- restart netcfg, observe ip addresses assigned to the interface

In the second case, ethernet interface does not have an ip address.

Digging in /usr/bin/netcfg-daemon and duplicating the command sequence in there, it seems that -c option causes the problem somehow.

Attached are the reproduction of working and non-working cases.
This task depends upon

Closed by  Eric Belanger (Snowman)
Tuesday, 30 April 2013, 01:06 GMT
Reason for closing:  Won't fix
Additional comments about closing:  netcfg has been moved to AUR
Comment by Jouke Witteveen (jouke) - Wednesday, 26 September 2012, 08:13 GMT
Is this a bug? Does it make sense to want the non-working order? Of course, it could be that it would work if we replace 'check-iface' by 'up'. That doesn't mean we need to, though.
Comment by Shridhar Daithankar (ghodechhap) - Wednesday, 26 September 2012, 14:57 GMT
Well, my only point is, that it was not obvious from any documentation that certain order of interfaces was expected and I had to struggle quite a bit to discover what works.

If there is a one liner of comment in the config file, thats sufficient too.

Loading...