Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #178115
| From | Stephen Powell <zlinuxman@fastmail.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: how to compute predictable network interface names? |
| Date | 2017-02-23 18:10 +0100 |
| Message-ID | <te53Y-4eJ-17@gated-at.bofh.it> (permalink) |
| References | <tbsq5-5wK-13@gated-at.bofh.it> <tbsJs-5E4-27@gated-at.bofh.it> <te3lw-323-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Feb 23, 2017, at 10:16, Harald Dunkel wrote:
> On 02/16/2017 12:47 PM, Christian Seiler wrote:
> >
> > On a system with predictable names running? Or on a system
> > pre-upgrade?
> >
>
> Its more "pre-installation". I boot a USB stick and run
> my own installer (using debootstrap or creating a clone).
> The NIC name is needed to setup /etc/network/interfaces.
> I know how the interfaces are named using the old scheme,
> but the predictable names are hard to guess.
>
Debian used to assign network devices based on MAC address.
If you want to continue doing something like that, use the
kernel boot parameter
net.ifnames=0
and create your own udev rule. For example:
/etc/udev/rules.d/76-netnames.rules:
# Create custom network interface names based on MAC address.
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:11:25:86:61:87", NAME="net0"
This rule will assign the Ethernet adapter with MAC address 00:11:25:86:61:87
the interface name net0. Reference the interface by this name in
/etc/network/interfaces.
I hope this helps.
--
.''`. Stephen Powell <zlinuxman@fastmail.com>
: :' :
`. `'`
`-
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
how to compute predictable network interface names? Harald Dunkel <harald.dunkel@aixigo.de> - 2017-02-16 12:30 +0100
Re: how to compute predictable network interface names? Christian Seiler <christian@iwakd.de> - 2017-02-16 12:50 +0100
Re: how to compute predictable network interface names? Greg Wooledge <wooledg@eeg.ccf.org> - 2017-02-16 14:40 +0100
Re: how to compute predictable network interface names? Harald Dunkel <harald.dunkel@aixigo.de> - 2017-02-23 16:20 +0100
Re: how to compute predictable network interface names? Christian Seiler <christian@iwakd.de> - 2017-02-23 16:30 +0100
Re: how to compute predictable network interface names? Harald Dunkel <harald.dunkel@aixigo.de> - 2017-02-24 10:20 +0100
Re: how to compute predictable network interface names? Harald Dunkel <harald.dunkel@aixigo.de> - 2017-02-24 11:00 +0100
Re: how to compute predictable network interface names? Christian Seiler <christian@iwakd.de> - 2017-02-24 12:50 +0100
Re: how to compute predictable network interface names? Harald Dunkel <harald.dunkel@aixigo.de> - 2017-03-09 12:10 +0100
Re: how to compute predictable network interface names? Stephen Powell <zlinuxman@fastmail.com> - 2017-02-23 18:10 +0100
csiph-web