admin 管理员组

文章数量: 1087139


2024年12月24日发(作者:面向对象的多态)

linux(凝思)网卡多IP设置

设置多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


本文标签: 序号 网卡 面向对象