[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Naming of network devices - how to improve it in buster



On Sun, 2017-07-16 at 13:54 +0200, Guus Sliepen wrote:
> On Sat, Jul 15, 2017 at 10:25:22PM -0300, Henrique de Moraes Holschuh wrote:
> 
> > > > This will match any interface that has MAC address 01:23:45:67:89:ab,
> > > > and will use the "foo" stanzas to configure it.
> > > 
> > > Awesome!  This sounds like the best solution so far.
> 
> As Adam discovered, there was still a bug preventing this from actually
> working for allow-* interfaces, but a fix has just been uploaded.
> 
> > It is indeed Very Cool, but it might not solve one little thing:
> > iptables firewalling.
> > 
> > Is that a way to trigger an ifrename using this, so that the network
> > device ends up being named "foo" ?
> 
> That's indeed an interesting issue. Currently, ifupdown doesn't rename
> interfaces. You could add a line like:
> 
> 	post-up ip link set $IFACE name $LOGICAL
> 
> Which will do what you want, except ifupdown doesn't track interface
> renames this way and will get very confused.
[...]

Linux doesn't allow renaming an interface while it's up.

Ben.

-- 
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: