1.添加ip:
ip addr add 1.1.1.100/255.255.255.0 dev eth0
2.删除ip:
ip addr del 1.1.1.100/255.255.255.0 dev eth0
3.清空接口ip:
ip addr flush dev eth0
1.添加ip:
ip addr add 1.1.1.100/255.255.255.0 dev eth0
2.删除ip:
ip addr del 1.1.1.100/255.255.255.0 dev eth0
3.清空接口ip:
ip addr flush dev eth0