Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from Jan 24 '10 at 16:48

This question came from our site for professional and enthusiast programmers.

1 Answer 1

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.

share|improve this answer
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
thank you Mark. – Kumar Jan 24 '10 at 14:00

Your Answer


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

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