How to add multiple IP

  
on Linux NIC

The easiest way is to use the command line:

ifconfig add eth0 192.168.0.2 netmask 255.255.255.0

ifconfig add eth0:1 192.168. 0.2 netmask 255.255.255.0

ifconfig add eth0:2 192.168.0.2 netmask 255.255.255.0

where eth0:1 and eth0:2 are the two IPs added.

The startup item must be added after the addition, otherwise the virtual added IP will be lost after the restart.

Add the above command to:

/etc/rc.d/rc.local< Br>

Copyright © Windows knowledge All Rights Reserved