Re: RFC: new network config (was: Re: network configuration)
On Sun, Feb 07, 1999 at 10:00:10AM +1100, Hamish Moffatt wrote:
> On Sat, Feb 06, 1999 at 01:32:54PM +0100, Miquel van Smoorenburg wrote:
> > Oh well I wrote a sample shell script and still would like to show
> > off with it so I'm including it anyway :)
> >
> > This input: (file "foo"):
> >
> > # First interface
> > interface eth0 {
> > ip = 192.168.1.1
> > mask = 255.255.255.0
> > broadcast = 192.168.1.255
> > }
>
> This has the advantage (over the single-line format) of allowing optional
> fields. It would be nice to be able to include say an IPX network address or
> an AX25 callsign, eg
not really. a single line could do it just as well. e.g.
iface=eth0 ip=192.168.1.1 mask=255.255.255.0 ipx_net=00000010
iface=eth1 dhcpclient=true
iface=eth2 ip=172.16.0.0 prefix=/16
iface=sm0 ip=44.1.2.3 mask=255.255.255.0 callsign=VK3TYD delaystartup=true
iface=widget1 ipv6=xxxxxxxx arbitraryflag=foo anotherarbitraryflag=42 \
linecontinuedafterbackslash=true foo=bar
(i've left out the broadcast= because it can be calculated easily from
the IP Address and the netmask)
i.e. it's a matter of form, not function or capability.
craig
--
craig sanders
Reply to: