|
From: Heiko Z. <he...@zu...> - 2010-04-25 12:39:52
|
I took a quick look at our network init script. I'm not sure about a good place to put the nameif line, since we may required the module to be loaded first. Honestly I'd rather stick with just the udev solution for now, but I'm open to suggestions. Heiko > -----Original Message----- > From: Bruce Smith [mailto:bw...@re...] > Sent: Tuesday, April 20, 2010 10:51 AM > To: dev...@li... > Subject: Re: [Devil-linux-develop] Feature request - Enable > "nameif" to associate MAC address with correct interface name. > > Are you saying that /etc/mactab does the same thing as > /etc/udev/rules.d/70-persistent-net.rules ? > > If so, should we do the same thing two different ways? > > - BS > > > On Tue, Apr 20, 2010 at 11:30, Steve Ralph > <Ste...@sa...> wrote: > > Hi, > > > > As part of my investigations to the > > "/etc/udev/rules.d/70-persistent-net.rules" issue reported just > now, I > > discovered the "/sbin/nameif" program, which reads the file > "/etc/mactab" if > > it exists, and associates interface names with mac-address. > > > > It has to be run prior to the interface(s) starting, so I > envisage it hooked > > into "/etc/init.d/network" to be called only if the file > "/etc/mactab" > > exists. "jiim-barber" on one of the debian lists offers "[ -x > /sbin/nameif ] > > && [ -r /etc/mactab ] && /sbin/nameif " as a code-frag that could > be > > included in "/etc/init.d/network". > > > > The format of "/etc/mactab" is: > > > > #--- /etc/mactab : associate network interfaces with MAC > address > > # > > eth0 00:08:02:01:02:03 > > eth1 00:08:02:01:02:04 > > eth2 00:08:02:01:02:05 > > # > > #--- End > > > > I'd assume that the default config would *not* include > "/etc/mactab" which > > would only be created if the default udev-assignment needed to be > modified. > > > > If this feature doesn't make it into release 1.4 I'll not be > upset. > > > > Regards - Steve. > > ------------------------------------------------------------------- > ----------- > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Devil-linux-develop mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-develop |