如果要在eth0网卡设备上添加两个IP别名192.168.8.43和192.168.8.44,可以通过以下的ifconfig和route命令进行:
/sbin/ifconfig eth0:1 192.168.8.43 broadcost 192.168.8.255 netmask 255.255.255.0 up
/sbin/route add -host 192.168.8.43 dev eth0:1
/sbin/ifconfig eth0:2 192.168.8.44 broadcost 192.168.8.255 netmask 255.255.255.0 up
/sbin/route add -host 192.168.8.44 dev eth0:2