[Ilugc] configure the virtual IP

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Tue Jan 12 23:48:26 2010

Bharathi Subramanian said:

It is not like direct assignment of IP. Some other trick and is
related to multicast. Let me try to recollect that.

No. You can do this using the following command:
# ip address add dev eth0 192.168.10.1/24 broadcast +
# ip address add dev eth0 192.168.20.1/24 broadcast +

Show the associated IPs (ifconfig won't show this):
$ ip address show eth0

IPs are locally reachable. Please test the reachability of this
IP(s) from an another machine and share the result.

In this process, I learned that, we can create alias interface with
any name (10 chars max):

# ifconfig eth0:abcdefghij 192.168.30.1 up
# ifconfig eth0:1234567890 192.168.40.1 up

Bye :)
-- 
Bharathi S

Other related posts: