public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alarig Le Lay <alarig@swordarmor.fr>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Set the alias of an interface with netifrc
Date: Sat, 19 Jan 2019 15:36:15 +0100	[thread overview]
Message-ID: <20190119143615.htla5icmf2cnjixj@mew.swordarmor.fr> (raw)
In-Reply-To: <6121845.PtKpqpE0ty@eve>

Hi,

On sam. 19 janv. 12:02:20 2019, J. Roeleveld wrote:
> Not sure if you can use spaces in the name, but I have the following:
> 
> $ cat /etc/conf.d/net
> #config_eno1="dhcp"
> 
> config_eno1="null"
> vlans_eno1="10 15"
> vlan10_name="adm"
> vlan15_name="str"
> rc_net_adm_need="net.eno1"
> rc_net_str_need="net.eno1"
> config_adm="10.55.16.44 netmask 255.255.255.0 broadcast 10.55.16.255"
> routes_adm="default gw 10.55.16.68"
> config_str="10.30.15.44 netmask 255.255.255.0 broadcast 10.30.15.255"
> 
> For this to work, configured the init-scripts as:
> 
> $ ls -l /etc/init.d/net.*
> lrwxrwxrwx 1 root root     6 Jun 16  2016 /etc/init.d/net.adm -> net.lo
> lrwxrwxrwx 1 root root     6 Jun 15  2016 /etc/init.d/net.eno1 -> net.lo
> -rwxr-xr-x 1 root root 18514 Mar  2  2018 /etc/init.d/net.lo
> lrwxrwxrwx 1 root root     6 Jun 16  2016 /etc/init.d/net.str -> net.lo
> 
> And only have to add "net.adm" and "net.str" to the runlevel.

I don’t want to change the name of my interfaces, but the equivalent of
`ip link set ${if} alias "${whatever}"`.

-- 
Alarig


  reply	other threads:[~2019-01-19 14:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17 21:37 [gentoo-user] Set the alias of an interface with netifrc Alarig Le Lay
2019-01-18 12:20 ` Mick
2019-01-19 11:02 ` J. Roeleveld
2019-01-19 14:36   ` Alarig Le Lay [this message]
2019-01-19 15:45     ` J. Roeleveld
2019-01-20  0:29       ` Alarig Le Lay
2019-01-24  5:53         ` J. Roeleveld

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190119143615.htla5icmf2cnjixj@mew.swordarmor.fr \
    --to=alarig@swordarmor.fr \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox