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

Re: /etc/network/interfaces: network option



On Wed,02.Sep.09, 08: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:

You can drop 'network' because it can be calculated, but you should add 
'netmask'.
 
> If I am on a 192.168.1.8/27:
> 
>    address 192.168.1.8
>    netmask 255.255.255.224

I never quite understood classless addressing, but doesn't that mean 
your gateway is in a different network?

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: