1833018 Members
2206 Online
110048 Solutions
New Discussion

netconf/index

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

netconf/index

In the netconf file, does the index [0] or [1]
relate to the lan card lan0 or lan1. Or is it just a number to process in a certain order.

OUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=172.16.8.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

So all of these entries are effecting lan0 or is this not true?
UNIX IS GOOD
3 REPLIES 3
John Palmer
Honored Contributor
Solution

Re: netconf/index

It is simply a sequence number starting from 0 (and you shouldn't leave any gaps). In actual fact the number refers to the subscript of a shell array variable, see man sh-posix for more information.

Regards,
John
A. Clay Stephenson
Acclaimed Contributor

Re: netconf/index

Those are simply array subscripts and don't apply to any interfasce in particular. The main thing is that they must start with 0 and not skip any values. i.e. no 2's without some 1's.

Now the section that include
INTERFACE_NAME[n]=lanN do refer to particular NIC's. However, INTERFACE_NAME[0] might very well be set to lan3 (or lan0); that's up to you.
If it ain't broke, I can fix that.
John Palmer
Honored Contributor

Re: netconf/index

I didn't originally notice the last line of your question...

No, these do not relate specifically to lan0. route commands will relate to the lan card that matches the gateway's network address.

Regards,
John