how to force an illegal netmask in ubuntu

Posted by user1064232 on Super User See other posts from Super User or by user1064232
Published on 2011-11-27T09:26:53Z Indexed on 2011/11/28 1:54 UTC
Read the original article Hit count: 422

Filed under:
|
|

I want to force a netmask on my Ubuntu machine. For example, I want 11.0.0.1 to get a netmask of 255.255.255.0

I tried editing /etc/network/interfaces and I forced the desired netmask, but as soon as I restarted the interfaces it changed it back to the default value.

When I used ifconfig the netmask that I gave survived the interface restart but it was reset as soon as I rebooted the machine.

Is there a way to force an "illegal" netmask on an interface?

© Super User or respective owner

Related posts about ubuntu

Related posts about subnet