In Linux, to define aliases, we have to modify /etc/network/interfaces..

Something like this:

auto eth0:1
iface eth0:1 inet static
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

What does network mean here?


For your case, network is, which means your ip address is in the network range, to

You can always get your network base address easily by doing ip & mask, where & is logical AND.

  • i need to set my alias ip as and gateway as what should be my netmask and network? I want to access all 10.X.X.X ips through this gateway.
    – Kumar
    Jan 24 '10 at 13:52
  • your netmask should be and network would be, and your gateway server/router should also be set as netmask
    – S.Mark
    Jan 24 '10 at 13:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.