[root@localhost ~]# ifconfig eth0:1 192.168.10.63 netmask 255.255.255.0 up (新增IP在这个网卡上)
啊,仅此一句
[root@localhost ~]# ifconfig -a
删除
[root@localhost ~]# ip addr del 192.168.10.63 dev eth0:1
Warning: Executing wildcard deletion to stay compatible with old scripts.
Explicitly specify the prefix length (192.168.10.63/32) to avoid this warning.
This special behaviour is likely to disappear in further releases,
fix your scripts!
[root@localhost ~]# ip addr del 192.168.10.63/32 dev eth0:1
本文介绍如何在Linux系统中为网卡eth0添加并随后删除一个子接口192.168.10.63的过程,并提示了在使用ip addr del命令时需要注意的事项。
1045

被折叠的 条评论
为什么被折叠?



