[CentOS] ip command

Fri Nov 18 14:28:55 UTC 2011
Mike Burger <mburger at bubbanfriends.org>

> Hi all,
> I have this network:
> - /22
> Broadcast
> Say I have a machine with IP:
> Now, I want to create virtual IP on it with ip command:
> 1. Is this ok?
> ip addr add dev eth0:1
> 2. Should I define the broadcast too in the above command?
> If I don't define it, will the above command means the broadcast would
> be

By specifying /22 as the subnet mask, you're implicitly specifying the
broadcast address. You don't need to specify it, manually.

However, based on a CIDR notation of /22 (which is a subnet mask of, the broadcast will actually be

Mike Burger

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org

To be notified of updates to the web site, visit:


or send a blank email message to:

site-update-subscribe at bubbanfriends.org