[Ilugc] configure the virtual IP

  • From: sureshkumar.s@xxxxxxxxxx (Suresh Kumar Subramanian)
  • Date: Wed Jan 13 09:10:02 2010

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 +

This command works. This what I have expected.
How "ip address" command differs from ifconfig command.

Show the associated IPs (ifconfig won't show this):
Why ifconfig doesn't show this ip?

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

Yes its reachable. I have added the route.

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

I must say Thanks to all whoever try to solve this case. Special thanks to 
bharathi.

Thanks
Suresh

Other related posts: