Re: ip command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Fajar Priyanto writes:

> Hi all,
> I have this network:
> 10.1.20.0 - 10.1.23.0 /22
> Broadcast 10.1.23.255
> 
> Say I have a machine with IP: 192.168.1.1
> Now, I want to create virtual IP on it with ip command:
> 
> 1. Is this ok?
> ip addr add 10.1.22.100/22 dev eth0:1

ip a a 10.1.22.100/22 dev eth0

that will do

> 
> 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 10.1.25.255?

you can skip the broadcast if you want

--
Nux!
www.nux.ro

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux