Hello List,
After demystifying the cause for my /sbin/ifup-local not being executed by network scripts for an Ethernet interface (don't let NetworkManager control it or ifup-local won't be executed)...
... I have a question with hopefully a simple answer: I placed an alias/description on my interface during testing and now I want to remove it. But when I try to remove it, I'm either trying to do something _actually_ not supported or I don't have the proper syntax to accomplish what I want.
~]# ip link set dev eno1 alias "hit"
~]# ip link show eno1 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000 link/ether 00:22:19:1e:a2:5b brd ff:ff:ff:ff:ff:ff alias hit
~]# ip link delete dev eno1 alias "hit" RTNETLINK answers: Operation not supported
Thoughts? It's mildly annoying at most.
Thoughts please?
Thanks, - Mike
On Mon, Nov 2, 2015 at 2:40 PM, Mike - st257 silvertip257@gmail.com wrote:
Hello List,
After demystifying the cause for my /sbin/ifup-local not being executed by network scripts for an Ethernet interface (don't let NetworkManager control it or ifup-local won't be executed)...
... I have a question with hopefully a simple answer: I placed an alias/description on my interface during testing and now I want to remove it. But when I try to remove it, I'm either trying to do something _actually_ not supported or I don't have the proper syntax to accomplish what I want.
~]# ip link set dev eno1 alias "hit"
~]# ip link show eno1 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000 link/ether 00:22:19:1e:a2:5b brd ff:ff:ff:ff:ff:ff alias hit
~]# ip link delete dev eno1 alias "hit" RTNETLINK answers: Operation not supported
Thoughts? It's mildly annoying at most.
-- ---~~.~~--- Mike // SilverTip257 //
On 11/04/2015 05:16 AM, Mike - st257 wrote:
But when I try to remove it, I'm either trying to do something_actually_
not supported or I don't have the proper syntax to accomplish what I want. ~]# ip link delete dev eno1 alias "hit" RTNETLINK answers: Operation not supported
The man page for "ip-link" does not indicate any means of deleting or un-setting an alias.
On Wed, Nov 4, 2015 at 12:45 PM, Gordon Messmer gordon.messmer@gmail.com wrote:
On 11/04/2015 05:16 AM, Mike - st257 wrote:
But when I try to remove it, I'm either trying to do something_actually_
not supported or I don't have the proper syntax to accomplish what I
want.
~]# ip link delete dev eno1 alias "hit" RTNETLINK answers: Operation not supported
The man page for "ip-link" does not indicate any means of deleting or un-setting an alias.
Thanks for the reply Gordon. That's the conclusion I came to after scouring the man page, but wanted to make sure I wasn't missing something.
It's a bit odd there isn't a method to remove an interface alias.
On Sat, November 7, 2015 6:29 pm, Mike - st257 wrote:
On Wed, Nov 4, 2015 at 12:45 PM, Gordon Messmer gordon.messmer@gmail.com wrote:
On 11/04/2015 05:16 AM, Mike - st257 wrote:
But when I try to remove it, I'm either trying to do something_actually_
not supported or I don't have the proper syntax to accomplish what I
want.
~]# ip link delete dev eno1 alias "hit" RTNETLINK answers: Operation not supported
The man page for "ip-link" does not indicate any means of deleting or un-setting an alias.
Thanks for the reply Gordon. That's the conclusion I came to after scouring the man page, but wanted to make sure I wasn't missing something.
It's a bit odd there isn't a method to remove an interface alias.
The tool that allows you create something and does not allow destroy it is at the very least incomplete in my book, so I would just stay away from it.
Valeri
-- ---~~.~~--- Mike // SilverTip257 // _______________________________________________ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++
On Nov 2, 2015, at 2:40 PM, Mike - st257 silvertip257@gmail.com wrote:
But when I try to remove it, I'm either trying to do something _actually_ not supported or I don't have the proper syntax to accomplish what I want.
It doesn’t look like ‘ip link’ has the syntax to remove an alias, but it can be done via sysfs:
# ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 # ip link set dev lo alias loopback # ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 alias loopback # echo > /sys/class/net/lo/ifalias # ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
It also can be set there too:
# echo hicentos > /sys/class/net/lo/ifalias # ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 alias hicentos
-- Jonathan Billings billings@negate.org
On Sun, Nov 8, 2015 at 7:52 AM, Jonathan Billings billings@negate.org wrote:
On Nov 2, 2015, at 2:40 PM, Mike - st257 silvertip257@gmail.com wrote:
But when I try to remove it, I'm either trying to do something _actually_ not supported or I don't have the proper syntax to accomplish what I
want.
It doesn’t look like ‘ip link’ has the syntax to remove an alias, but it can be done via sysfs:
;-) Nice. [Forest for the trees!] I didn't think of sysfs because I was fixated on the ip link utility.
Thanks Jonathan!
# ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 # ip link set dev lo alias loopback # ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 alias loopback # echo > /sys/class/net/lo/ifalias # ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
It also can be set there too:
# echo hicentos > /sys/class/net/lo/ifalias # ip link show dev lo 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 alias hicentos
-- Jonathan Billings billings@negate.org
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos