Sample Header Ad - 728x90

Delete IP address alias by label name

8 votes
4 answers
20084 views
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