设置多IP:
ifconfig 网卡:序号 IP netmask 掩码 up //序号一般从1开始
例如:
ifconfig eth5:1 192.168.96.251 netmask 255.255.255.0 up
ifconfig eth5:2 192.168.97.251 netmask 255.255.255.0 up
ifconfig eth5:3 192.168.98.251 netmask 255.255.255.0 up
ifconfig eth5:4 192.168.99.251 netmask 255.255.255.0 up
ifconfig eth6:1 192.168.96.251 netmask 255.255.255.0 up
ifconfig eth6:2 192.168.97.251 netmask 255.255.255.0 up
ifconfig eth6:3 192.168.98.251 netmask 255.255.255.0 up
ifconfig eth6:4 192.168.99.251 netmask 255.255.255.0 up
取消多IP:
ifconfig 网卡:序号 down //序号一般从1开始
例如:
ifconfig eth5:1 down
ifconfig eth5:2 down
ifconfig eth5:3 down
ifconfig eth5:4 down
ifconfig eth6:1 down
ifconfig eth6:2 down
ifconfig eth6:3 down
ifconfig eth6:4 down