Re: Specifying multiple NICs
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
Re: Specifying multiple NICs
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.
Re: Specifying multiple NICs
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.
Re: Specifying multiple NICs
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. signature.asc Description: PGP signature
Re: Specifying multiple NICs
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 ?
Re: Specifying multiple NICs
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.
RE: Specifying multiple NICs
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 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.
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.