Centos清除IP

要把配置好的ip清除掉,可以使用以下命令:

ip addr flush dev eth0

如果系统中没有ip这个命令,可以使用更简单的:

ifconfig eth0 0.0.0.0

可以用于PPTP拨号导致的ip冲突清除多余的IP地址

ip addr flush dev ppp13

原文地址:https://www.cnblogs.com/minseo/p/7160322.html