I would like to delete an alias I created using:
ip addr add 192.168.1.1 dev eth0 label eth0:100
without having to know the IP address. Basically, I would like to do
ip addr del dev eth0 label eth0.100
which, according to documentation should be valid, but rather gives me:
ip: RTNETLINK answers: Operation not supported
In the mean time, I worked around using
ip addr del $(ip addr list label eth0:100 | awk '{ print $2 }') dev eth0 label eth0.100
Asked by bcolpron
(83 rep)
Jul 11, 2014, 06:06 PM
Last activity: Apr 17, 2025, 06:28 PM
Last activity: Apr 17, 2025, 06:28 PM