1 |
Hi, |
2 |
|
3 |
On sam. 19 janv. 12:02:20 2019, J. Roeleveld wrote: |
4 |
> Not sure if you can use spaces in the name, but I have the following: |
5 |
> |
6 |
> $ cat /etc/conf.d/net |
7 |
> #config_eno1="dhcp" |
8 |
> |
9 |
> config_eno1="null" |
10 |
> vlans_eno1="10 15" |
11 |
> vlan10_name="adm" |
12 |
> vlan15_name="str" |
13 |
> rc_net_adm_need="net.eno1" |
14 |
> rc_net_str_need="net.eno1" |
15 |
> config_adm="10.55.16.44 netmask 255.255.255.0 broadcast 10.55.16.255" |
16 |
> routes_adm="default gw 10.55.16.68" |
17 |
> config_str="10.30.15.44 netmask 255.255.255.0 broadcast 10.30.15.255" |
18 |
> |
19 |
> For this to work, configured the init-scripts as: |
20 |
> |
21 |
> $ ls -l /etc/init.d/net.* |
22 |
> lrwxrwxrwx 1 root root 6 Jun 16 2016 /etc/init.d/net.adm -> net.lo |
23 |
> lrwxrwxrwx 1 root root 6 Jun 15 2016 /etc/init.d/net.eno1 -> net.lo |
24 |
> -rwxr-xr-x 1 root root 18514 Mar 2 2018 /etc/init.d/net.lo |
25 |
> lrwxrwxrwx 1 root root 6 Jun 16 2016 /etc/init.d/net.str -> net.lo |
26 |
> |
27 |
> And only have to add "net.adm" and "net.str" to the runlevel. |
28 |
|
29 |
I don’t want to change the name of my interfaces, but the equivalent of |
30 |
`ip link set ${if} alias "${whatever}"`. |
31 |
|
32 |
-- |
33 |
Alarig |