Re: /etc/network/interfaces: network option
On Tue September 1 2009 22:59:13 Rakotomandimby Mihamina wrote:
> Hi all,
> Let a /etc/network/interfaces be, with these lines:
> iface eth0 inet static
> address 192.168.1.15
> network 192.168.1.0
> broadcast 192.168.1.255
> gateway 192.168.1.254
>
> What is the role of 'network'?
> I mean:
>
> If I am on a 192.168.1.8/27:
>
> address 192.168.1.8
> netmask 255.255.255.224
>
> What to put as 'network'?
network = address & netmask, i.e. 192.168.1.0
broadcast = address | ~netmask, i.e. 192.168.1.31
However, in most cases you can safely omit both
network and broadcast from /etc/network/interfaces
as they are automatically calculated from the
address and netmask.
--Mike Bird
Reply to: