Author Topic: How to assign multiple IP addresses to one network interface on CentOS?  (Read 665 times)

arjun.datasoft

  • Blue Belt
  • ****
  • Posts: 180
  • Karma: +0/-0
Hi,

Here is the solution;!!!!!

$ sudo ifconfig eth0:1 192.168.10.10 netmask 255.255.255.0 up
$ sudo ifconfig eth0:2 192.168.10.15 netmask 255.255.255.0 up


To view a list of all IP addresses assigned to eth0 , run the following command.

$ sudo ip addr list dev eth0


Thanks
« Last Edit: August 23, 2013, 05:13:38 PM by arjun.datasoft »