#ifconfig eth0:0 192.168.6.100 netmask 255.255.255.0 up
#ifconfig eth0:1 173.173.173.173 netmask 255.255.255.0 up
#ifconfig eth0:2 119.110.120.1 netmask 255.255.255.0 up
configuration file/etc/sysconfig/network-scripts Directory
# 3Com Corporation 3c905b 100BaseTX [Cyclone]//hardware model, negligible
device=eth0:0//Virtual network interface, optional
onboot=yes//activated at system startup
bootproto=static//Use static IP address
ipaddr=192.168.6.100//IP alias of the virtual network interface, optionally
netmask=255.255.255.0//subnet mask, corresponding IP alias
gateway=192.168.6.1//gateway, corresponding IP alias
hwaddr=00:10:5a:5e:b1:e4//network card MAC address, no need to change
Userctl=no//whether to give non-root user device administrative rights
This article is from the "Qinnengbuzhuo" blog, make sure to keep this source http://echoroot.blog.51cto.com/11804540/1965429
Linux NIC configuration multi-IP