You are not logged in.

#1 2011-08-09 07:46:44

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

[Solved]Is the old, deprecated approach to networking still supported?

Yesterday I encountered an issue whereby my network wouldn't start until I had updated my rc.conf - does this mean that the deprecated approach to network configuration is no longer supported?  If so, does it now support more than one NIC?

Last edited by phunni (2011-08-12 10:48:17)

Offline

#2 2011-08-09 08:57:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Is the old, deprecated approach to networking still supported?

Offline

#3 2011-08-09 09:01:11

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

I do. My recent experience suggests that netcfg also does not support more than one NIC at a time

Offline

#4 2011-08-09 13:01:29

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]Is the old, deprecated approach to networking still supported?

That is correct. Deprecated, in fact, is a synonym for "not supported" or "obsolete"

http://www.thefreedictionary.com/deprecating

See: the 3rd definition. So if it's deprecated, then its NOT supported.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-08-09 13:09:51

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

Sorry, perhaps I should clarify what I mean - I am well aware of the meaning of the word deprecated in computer circles.

Obviously it is intended that it should be phased out. My question is - has that already happened? Given that netcfg does not seem to be able to handle multiple NICs, it would seem premature for support for this to be dropped.  By support I mean - that it will still work, not that the community will no longer provide help.

It does also seem that deprecating it may be a little premature given that it is not yet fully featured - because it supports only one NIC.  I was concerned to read the post mentioned above that suggested that further features would not be added.

Offline

#6 2011-08-09 13:14:24

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved]Is the old, deprecated approach to networking still supported?

if you are talking about multiple nic support in rc.conf, then yes, it has been dropped already. I believe with every update to initscripts, you may encounter issues. initscripts recently got upgraded along with kernel3.0 as well. VERBOSE was dropped and the devs are thinking about dropping TIMEZONE support from rc.conf.

Bottom line, with every update, things might change -- which work for everyone else because they have started using the newer format. But since you are still using the old, you might find problems. You could get lucky and the networking section might not get touched by the devs for the next few upgrades, but you can't be certain.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2011-08-09 13:14:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Is the old, deprecated approach to networking still supported?

Offline

#8 2011-08-09 13:16:33

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

Inxsible wrote:

if you are talking about multiple nic support in rc.conf, then yes, it has been dropped already. I believe with every update to initscripts, you may encounter issues. initscripts recently got upgraded along with kernel3.0 as well. VERBOSE was dropped and the devs are thinking about dropping TIMEZONE support from rc.conf.

Bottom line, with every update, things might change -- which work for everyone else because they have started using the newer format. But since you are still using the old, you might find problems. You could get lucky and the networking section might not get touched by the devs for the next few upgrades, but you can't be certain.

I'm not using the old format.  I recently set up a router using the new format and had to use the old network syntax - as specified in the wiki - in order to use 2 NICs

Offline

#9 2011-08-09 13:19:42

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

When I tried it the other day (with the new rc.conf format) it wouldn't work.  This is for multiple NICs at the same time - not (as is often the case with laptops, for example) multiple NICs to be used at different times.

The wiki makes it clear that the new approach will not work with multiple NICs being used at the same time: https://wiki.archlinux.org/index.php/Ro … figuration

My concern here is that I don't want to update my router system until I'm sure it'll continue to work.

Offline

#10 2011-08-09 13:29:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Is the old, deprecated approach to networking still supported?

I happen to have a computer w/ 2 NICs, I'll have a go at this issue in the evening.

Offline

#11 2011-08-09 13:45:05

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

Thanks - I'll be interested to see how you get on.  My experience was that both ended up with the same configuration - the second configuration. That was using netcfg.

Offline

#12 2011-08-09 19:06:11

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Is the old, deprecated approach to networking still supported?

I'm confused as to what your problem is.  I initialize multiple nics through rc.conf+netcfg.  I remember having a bit of trouble figuring out how to set it up, but it works like a champ.  I can post my config if you'd like.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#13 2011-08-09 19:08:17

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

Please do - when I tried to get 2 NICs working with rc.conf & netcfg they both ended up with the 2nd config.  The only way I could solve the problem was to use the old network syntax in rc.conf - which is what the wiki currently advises.

Offline

#14 2011-08-09 19:13:49

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Is the old, deprecated approach to networking still supported?

In rc.conf I have

NETWORKS=(eth0 eth2)

...

DAEMONS=(hwclock syslog-ng net-profiles ...)

and in /etc/network.d I have files named eth0 and eth2:

/etc/network.d/eth0:

CONNECTION='ethernet'
DESCRIPTION='A basic dhcp ethernet connection using iproute'
INTERFACE='eth0'
IP='dhcp'

/etc/network.d/eth2:

CONNECTION='ethernet'
DESCRIPTION='A basic static ethernet connection using iproute'
INTERFACE='eth2'
IP='static'
ADDR='199.200.1.110'

I connect to the net over eth0 and eth2 is used by dnsmasq for dhcp serving.

I think I just copied the appropriate files from /etc/network.d/examples/ and editied to fit my purpose.

Edited to add DAEMONS line from rc.conf

Last edited by alphaniner (2011-08-09 19:24:26)


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#15 2011-08-09 19:28:11

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

That's interesting - that's almost exactly what I tried. Perhaps I should give it another go.

Offline

#16 2011-08-09 19:31:37

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Is the old, deprecated approach to networking still supported?

I don't know if it matters, but I forgot to mention that I haven't upgraded to 3.x kernel yet.

All other packages are up-to-date though.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#17 2011-08-09 19:46:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Is the old, deprecated approach to networking still supported?

alphaniner wrote:

I don't know if it matters, but I forgot to mention that I haven't upgraded to 3.x kernel yet..

Neither did I ;P
As alphaniner said, copying and editing the examples was all that I had to do :-)
I'm now using two NICs at the same time, both managed with dhcp (alphaniner has one static ip). No problems whatsoever.

Offline

#18 2011-08-09 20:07:24

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [Solved]Is the old, deprecated approach to networking still supported?

Only thing I can think of, make sure all traces of the old method *and* the new single NIC method are removed/commented in your rc.conf.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#19 2011-08-09 22:06:16

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

OK - my router box isn't on 3.0 yet, so I'll give it a go before I update and see how I get on...

Thanks for all the help.

Offline

#20 2011-08-12 10:47:17

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

Ok - I have tried updating my router box and using netcfg, but it still doesn't work.  This time, however, the problem is different.  That said, I can confirm that the old syntax (which does still work for me) still works and is, therefore, still supported.

Offline

#21 2011-08-12 10:49:28

phunni
Member
From: Bristol, UK
Registered: 2003-08-13
Posts: 794

Re: [Solved]Is the old, deprecated approach to networking still supported?

Incidentally, I would disagree with Inxsible that deprecated means "Not supported" - although I agree that it could mean obsolete. Deprecated means that this will be unsupported at some point in the future, so move away from it while it is still supported.

Offline

Board footer

Powered by FluxBB