Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Entering in:

network 10.168.1.1 

in /etc/network/interfaces allows computers on other subnets to ping / SSH this machine with a static IP but removing that line causes it to fail unless you're on the same subnet.

The "network" property is supposed to be optional (IP, netmask and gateway should be enough and is on other OS') so why did Ubuntu require it?

network network_address
                 Network address (dotted quad) required for 2.0.x kernels

http://manpages.ubuntu.com/manpages/hardy/man5/interfaces.5.html

In CentOS it's actually deprecated:

NETWORK=<address>, where <address> is the network address. This directive is deprecated. 

http://www.centos.org/docs/rhel-rg-en-3/s1-networkscripts-interfaces.html

I've Googled and they should all be automatically calculated.

Thank you for your time,
Matthew

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.