使用ip addr flush
[root@sre01 ~]# ip addr flush dev ens36
[root@sre01 ~]# ip addr show ens36
3: ens36: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:c0:78:db brd ff:ff:ff:ff:ff:ff
[root@sre01 ~]# ip addr flush dev ens36
[root@sre01 ~]# ip addr show ens36
3: ens36: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:c0:78:db brd ff:ff:ff:ff:ff:ff