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

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.

the other direction is also simple:
#!/bin/sh
ifconfig lo 127.0.0.1
ifconfig eth0 192.168.1.57 netmask 255.255.255.0 gateway 192.168.1.1

easy to parse, fully documented, no problems, will not confuse anyone.

andreas


Reply to: