Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #198144 > unrolled thread

Specifying multiple NICs

Started byMark Neidorff <mark@neidorff.com>
First post2018-08-01 18:10 +0200
Last post2018-08-02 00:50 +0200
Articles 8 — 6 participants

Back to article view | Back to linux.debian.user


Contents

  Specifying multiple NICs Mark Neidorff <mark@neidorff.com> - 2018-08-01 18:10 +0200
    RE: Specifying multiple NICs Edwin Pers <EPers@ansencorp.com> - 2018-08-01 19:30 +0200
    Re: Specifying multiple NICs Brian <ad44@cityscape.co.uk> - 2018-08-01 19:40 +0200
      Re: Specifying multiple NICs Pascal Hambourg <pascal@plouf.fr.eu.org> - 2018-08-01 20:00 +0200
        Re: Specifying multiple NICs Brian <ad44@cityscape.co.uk> - 2018-08-01 21:00 +0200
          Re: Specifying multiple NICs mark@neidorff.com - 2018-08-06 21:50 +0200
    Re: Specifying multiple NICs Darac Marjal <mailinglist@darac.org.uk> - 2018-08-01 21:00 +0200
      Re: Specifying multiple NICs Brian <ad44@cityscape.co.uk> - 2018-08-02 00:50 +0200

#198144 — Specifying multiple NICs

FromMark Neidorff <mark@neidorff.com>
Date2018-08-01 18:10 +0200
SubjectSpecifying multiple NICs
Message-ID<wi1Rf-3Mc-3@gated-at.bofh.it>
I'm setting up a "just in case" replacement mailserver for my domain and my 
local network.  I'm using Debian Jessie, because the latest instructions for 
setting the mailserver (qmail) are written for Jessie.  The mailserver has 2 
NICs (one for local network, and one for Internet).

In the past,  I referred to each NIC as eth0, eth1,..... but now, these names 
are not permanent, and the designation can change on boot.  I looked at the 
"Network Coinfiguration" document which didn't have a solution.  So, either how 
do I make the names for the NICs permanent or what do I use fot the names of 
the NICs?

Thanks,
Mark
-- 
If you finding the going easy, you're probably going downhill.

[toc] | [next] | [standalone]


#198146

FromEdwin Pers <EPers@ansencorp.com>
Date2018-08-01 19:30 +0200
Message-ID<wi36G-4ug-9@gated-at.bofh.it>
In reply to#198144
Toss something like this for each interface into /etc/udev/rules.d/10-interface-names.rules

SUBSYSTEM=="net", ACTION=="add",ATTR{address}=="00:25:90:80:2e:a4", NAME="1gig1"

Replace the mac address with the one your interface has.

-Ed

-----Original Message-----
From: Mark Neidorff <mark@neidorff.com> 
Sent: Wednesday, August 1, 2018 12:01 PM
To: debian-user@lists.debian.org
Subject: Specifying multiple NICs

I'm setting up a "just in case" replacement mailserver for my domain and my local network.  I'm using Debian Jessie, because the latest instructions for setting the mailserver (qmail) are written for Jessie.  The mailserver has 2 NICs (one for local network, and one for Internet).

In the past,  I referred to each NIC as eth0, eth1,..... but now, these names are not permanent, and the designation can change on boot.  I looked at the "Network Coinfiguration" document which didn't have a solution.  So, either how do I make the names for the NICs permanent or what do I use fot the names of the NICs?

Thanks,
Mark
--
If you finding the going easy, you're probably going downhill.

[toc] | [prev] | [next] | [standalone]


#198147

FromBrian <ad44@cityscape.co.uk>
Date2018-08-01 19:40 +0200
Message-ID<wi3gl-4xK-3@gated-at.bofh.it>
In reply to#198144
On Wed 01 Aug 2018 at 12:00:41 -0400, Mark Neidorff wrote:

> I'm setting up a "just in case" replacement mailserver for my domain and my 
> local network.  I'm using Debian Jessie, because the latest instructions for 
> setting the mailserver (qmail) are written for Jessie.  The mailserver has 2 
> NICs (one for local network, and one for Internet).
> 
> In the past,  I referred to each NIC as eth0, eth1,..... but now, these names 
> are not permanent, and the designation can change on boot.  I looked at the 
> "Network Coinfiguration" document which didn't have a solution.  So, either how 
> do I make the names for the NICs permanent or what do I use fot the names of 
> the NICs?

Starting with v197, systemd/udev will automatically assign predictable,
stable network interface names for all local Ethernet devices. jessie
has udev v215. jessie-backports has v230.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#198148

FromPascal Hambourg <pascal@plouf.fr.eu.org>
Date2018-08-01 20:00 +0200
Message-ID<wi3zI-4EE-7@gated-at.bofh.it>
In reply to#198147
Le 01/08/2018 à 19:32, Brian a écrit :
> On Wed 01 Aug 2018 at 12:00:41 -0400, Mark Neidorff wrote:
>>
>> In the past,  I referred to each NIC as eth0, eth1,..... but now, these names
>> are not permanent, and the designation can change on boot.  I looked at the
>> "Network Coinfiguration" document which didn't have a solution.  So, either how
>> do I make the names for the NICs permanent or what do I use fot the names of
>> the NICs?
> 
> Starting with v197, systemd/udev will automatically assign predictable,
> stable network interface names for all local Ethernet devices. jessie
> has udev v215. jessie-backports has v230.

Jessie still has the old persistent naming scheme using
/lib/udev/rules.d/75-persistent-net-generator.rules and 
/etc/udev/rules.d/70-persistent-net.rules by default, and the new 
predictable naming scheme is disabled (net.ifnames=0). The new 
predictable naming scheme has been enabled by default only since Stretch.

So the behaviour described by the OP is a bit surprising.
Mark, could you elaborate ?

[toc] | [prev] | [next] | [standalone]


#198152

FromBrian <ad44@cityscape.co.uk>
Date2018-08-01 21:00 +0200
Message-ID<wi4vL-5ex-3@gated-at.bofh.it>
In reply to#198148
On Wed 01 Aug 2018 at 19:57:32 +0200, Pascal Hambourg wrote:

> Le 01/08/2018 à 19:32, Brian a écrit :
> > On Wed 01 Aug 2018 at 12:00:41 -0400, Mark Neidorff wrote:
> > > 
> > > In the past,  I referred to each NIC as eth0, eth1,..... but now, these names
> > > are not permanent, and the designation can change on boot.  I looked at the
> > > "Network Coinfiguration" document which didn't have a solution.  So, either how
> > > do I make the names for the NICs permanent or what do I use fot the names of
> > > the NICs?
> > 
> > Starting with v197, systemd/udev will automatically assign predictable,
> > stable network interface names for all local Ethernet devices. jessie
> > has udev v215. jessie-backports has v230.
> 
> Jessie still has the old persistent naming scheme using
> /lib/udev/rules.d/75-persistent-net-generator.rules and
> /etc/udev/rules.d/70-persistent-net.rules by default, and the new
> predictable naming scheme is disabled (net.ifnames=0). The new predictable
> naming scheme has been enabled by default only since Stretch.

Enable it, then.

Delete /etc/udev/rules.d/70-persistent-network.rules and put
net.ifnames=1 on the kernel command line when booting.

-- 
Brian.

[toc] | [prev] | [next] | [standalone]


#198336

Frommark@neidorff.com
Date2018-08-06 21:50 +0200
Message-ID<wjTFU-7yS-17@gated-at.bofh.it>
In reply to#198152
On Wednesday, August 1, 2018 2:56:55 PM EDT Brian wrote:
> On Wed 01 Aug 2018 at 19:57:32 +0200, Pascal Hambourg wrote:
> > Le 01/08/2018 à 19:32, Brian a écrit :
> > > On Wed 01 Aug 2018 at 12:00:41 -0400, Mark Neidorff wrote:
> > > > In the past,  I referred to each NIC as eth0, eth1,..... but now,
> > > > these names are not permanent, and the designation can change on
> > > > boot.  I looked at the "Network Coinfiguration" document which didn't
> > > > have a solution.  So, either how do I make the names for the NICs
> > > > permanent or what do I use fot the names of the NICs?
> > > 
> > > Starting with v197, systemd/udev will automatically assign predictable,
> > > stable network interface names for all local Ethernet devices. jessie
> > > has udev v215. jessie-backports has v230.
> > 
> > Jessie still has the old persistent naming scheme using
> > /lib/udev/rules.d/75-persistent-net-generator.rules and
> > /etc/udev/rules.d/70-persistent-net.rules by default, and the new
> > predictable naming scheme is disabled (net.ifnames=0). The new predictable
> > naming scheme has been enabled by default only since Stretch.
> 
> Enable it, then.
> 
> Delete /etc/udev/rules.d/70-persistent-network.rules and put
> net.ifnames=1 on the kernel command line when booting.


Thanks everyone for pointing me in the right direction.  This should all work 
its way out now.

Mark

[toc] | [prev] | [next] | [standalone]


#198153

FromDarac Marjal <mailinglist@darac.org.uk>
Date2018-08-01 21:00 +0200
Message-ID<wi4vL-5ex-5@gated-at.bofh.it>
In reply to#198144

[Multipart message — attachments visible in raw view] — view raw

On Wed, Aug 01, 2018 at 12:00:41PM -0400, Mark Neidorff wrote:
>I'm setting up a "just in case" replacement mailserver for my domain and my
>local network.  I'm using Debian Jessie, because the latest instructions for
>setting the mailserver (qmail) are written for Jessie.  The mailserver has 2
>NICs (one for local network, and one for Internet).
>
>In the past,  I referred to each NIC as eth0, eth1,..... but now, these names
>are not permanent, and the designation can change on boot.  I looked at the
>"Network Coinfiguration" document which didn't have a solution.  So, either how
>do I make the names for the NICs permanent or what do I use fot the names of
>the NICs?

In my opinion, the most "debian" way is to do the following in 
/etc/network/interfaces:

rename eth0=localnet
auto localnet
iface localnet inet static
	address blahblah

rename eth1=internet
iface internet inet dhcp
	and so on


>
>Thanks,
>Mark
>-- 
>If you finding the going easy, you're probably going downhill.
>


-- 
For more information, please reread.

[toc] | [prev] | [next] | [standalone]


#198159

FromBrian <ad44@cityscape.co.uk>
Date2018-08-02 00:50 +0200
Message-ID<wi86l-7vH-5@gated-at.bofh.it>
In reply to#198153
On Wed 01 Aug 2018 at 19:54:03 +0100, Darac Marjal wrote:

> On Wed, Aug 01, 2018 at 12:00:41PM -0400, Mark Neidorff wrote:
> > I'm setting up a "just in case" replacement mailserver for my domain and my
> > local network.  I'm using Debian Jessie, because the latest instructions for
> > setting the mailserver (qmail) are written for Jessie.  The mailserver has 2
> > NICs (one for local network, and one for Internet).
> > 
> > In the past,  I referred to each NIC as eth0, eth1,..... but now, these names
> > are not permanent, and the designation can change on boot.  I looked at the
> > "Network Coinfiguration" document which didn't have a solution.  So, either how
> > do I make the names for the NICs permanent or what do I use fot the names of
> > the NICs?
> 
> In my opinion, the most "debian" way is to do the following in
> /etc/network/interfaces:
> 
> rename eth0=localnet
> auto localnet
> iface localnet inet static
> 	address blahblah
> 
> rename eth1=internet
> iface internet inet dhcp
> 	and so on

Is rename part of the file format of interfaces on jessie?

-- 
Brian.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web