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 //
Thoughts please? Thanks, - Mike On Mon, Nov 2, 2015 at 2:40 PM, Mike - st257 <silvertip257 at 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 // >-- ---~~.~~--- 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 supportedThe man page for "ip-link" does not indicate any means of deleting or un-setting an alias.
On Nov 2, 2015, at 2:40 PM, Mike - st257 <silvertip257 at 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 at negate.org>
On Sun, Nov 8, 2015 at 7:52 AM, Jonathan Billings <billings at negate.org> wrote:> On Nov 2, 2015, at 2:40 PM, Mike - st257 <silvertip257 at 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 at negate.org> > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- ---~~.~~--- Mike // SilverTip257 //