On Thursday, 17 January 2019 21:37:32 GMT Alarig Le Lay wrote:
> Hi,
> 
> I would like to set the alias of my interfaces at boot (if possible with
> netifrc).
> 
> Here are the relevant parts of my configuration:
> config_enp3s0f0="null"
> vlans_enp3s0f0="20 21 22 50"
> config_enp3s0f0_22="185.1.89.13/24 2001:7f8:b1::d/64"
> 
> My interface is well created, but if I want an alias, I have to do it by
> hand:
> asbr02 ~ # ip addr show enp3s0f0.22
> 11: enp3s0f0.22@enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> noqueue state UP group default qlen 1000 link/ether 00:1b:21:48:68:98 brd
> ff:ff:ff:ff:ff:ff
>     inet 185.1.89.13/24 brd 185.1.89.255 scope global enp3s0f0.22
>        valid_lft forever preferred_lft forever
>     inet6 2001:7f8:b1::d/64 scope global
>        valid_lft forever preferred_lft forever
>     inet6 fe80::21b:21ff:fe48:6898/64 scope link
>        valid_lft forever preferred_lft forever
> asbr02 ~ # ip link set enp3s0f0.22 alias "Peering: BreizhIX"
> asbr02 ~ # ip link show enp3s0f0.22
> 11: enp3s0f0.22@enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc
> noqueue state UP mode DEFAULT group default qlen 1000 link/ether
> 00:1b:21:48:68:98 brd ff:ff:ff:ff:ff:ff
>     alias Peering: BreizhIX
> 
> On FreeBSD, I did that with an /etc/start_if script:
> ifconfig igb0.22 create
> ifconfig igb0.22 description "Peering: BreizhIX"
> ifconfig igb0.22 vlan 22 vlandev igb0
> ifconfig igb0.22 inet 185.1.89.13/24
> ifconfig igb0.22 inet6 2001:7f8:b1::d/64
> 
> 
> I didn’t find any mention of this in
> /usr/share/doc/netifrc-0.5.1/net.example.bz2
> 
> Am I missing something?
> 
> Thanks,

Would something like this work?

 vlan22_name="Peering: BreizhIX"

Or,

 enp3s0f0_22_name="Peering: BreizhIX"

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to