1 |
Hi, |
2 |
|
3 |
I would like to set the alias of my interfaces at boot (if possible with |
4 |
netifrc). |
5 |
|
6 |
Here are the relevant parts of my configuration: |
7 |
config_enp3s0f0="null" |
8 |
vlans_enp3s0f0="20 21 22 50" |
9 |
config_enp3s0f0_22="185.1.89.13/24 2001:7f8:b1::d/64" |
10 |
|
11 |
My interface is well created, but if I want an alias, I have to do it by |
12 |
hand: |
13 |
asbr02 ~ # ip addr show enp3s0f0.22 |
14 |
11: enp3s0f0.22@enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 |
15 |
link/ether 00:1b:21:48:68:98 brd ff:ff:ff:ff:ff:ff |
16 |
inet 185.1.89.13/24 brd 185.1.89.255 scope global enp3s0f0.22 |
17 |
valid_lft forever preferred_lft forever |
18 |
inet6 2001:7f8:b1::d/64 scope global |
19 |
valid_lft forever preferred_lft forever |
20 |
inet6 fe80::21b:21ff:fe48:6898/64 scope link |
21 |
valid_lft forever preferred_lft forever |
22 |
asbr02 ~ # ip link set enp3s0f0.22 alias "Peering: BreizhIX" |
23 |
asbr02 ~ # ip link show enp3s0f0.22 |
24 |
11: enp3s0f0.22@enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 |
25 |
link/ether 00:1b:21:48:68:98 brd ff:ff:ff:ff:ff:ff |
26 |
alias Peering: BreizhIX |
27 |
|
28 |
On FreeBSD, I did that with an /etc/start_if script: |
29 |
ifconfig igb0.22 create |
30 |
ifconfig igb0.22 description "Peering: BreizhIX" |
31 |
ifconfig igb0.22 vlan 22 vlandev igb0 |
32 |
ifconfig igb0.22 inet 185.1.89.13/24 |
33 |
ifconfig igb0.22 inet6 2001:7f8:b1::d/64 |
34 |
|
35 |
|
36 |
I didn’t find any mention of this in /usr/share/doc/netifrc-0.5.1/net.example.bz2 |
37 |
|
38 |
Am I missing something? |
39 |
|
40 |
Thanks, |
41 |
-- |
42 |
Alarig |