[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/init.d/network is too simple?



Hi!

Andreas Jellinghaus (aj@dungeon.inka.de),
"Re: /etc/init.d/network is too simple?":
> i would suggest a netscape preferences like format:
> network.interfaces.lo.ip=127.0.0.1
> network.interfaces.lo.netmask=255.0.0.0
> network.interfaces.eth0.ip=192.168.1.57
> network.interfaces.eth0.netmask=255.255.255.0
> network.interfaces.eth0.gateway=192.168.1.1
> 
> plus: you can store all information in one database, not only network stuff.
> and it's easy to implement.

Make the dots underscores and you can easily source the conf from sh. My
current setup does it this way.

This has major a drawback for maintainance: You need to repeat the interface
name for each parameter. Chances are higher, you mistiped one occurance
(forgot to chaneg on cut'n'paste). Think of adding another NIC or for
example moving 192.168.1.57 to eth1 ...

I'd prefer to put all parameters belonging to an interface in one group.


Rainer

-- 
KeyID=58341901 fingerprint=A5 57 04 B3 69 88 A1 FB  78 1D B5 64 E0 BF 72 EB


Reply to: