现在的位置: 首页 > 综合 > 正文

一个网卡配置多个ip:[root@localhost ~]# ifconfig eth0:1 192.168.10.64 netmask 255.255.255.0 up

2013年07月14日 ⁄ 综合 ⁄ 共 446字 ⁄ 字号 评论关闭

[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

抱歉!评论已关闭.