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

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐