Re: Network interface names

2018-11-23 Diskussionsfäden Markus Köberl
On Friday, 23 November 2018 10:06:30 CET Rémy Dernat wrote: > Hi Steffen, > > That is weird; this should work even for pure debian. > > However, reading my message, I saw that some parts of my scripts are > useless. Maybe you can try the following instead (just replacing $NIC1 by > $iface which i

Re: Network interface names

2018-11-23 Diskussionsfäden Rémy Dernat
Hi Steffen, That is weird; this should work even for pure debian. However, reading my message, I saw that some parts of my scripts are useless. Maybe you can try the following instead (just replacing $NIC1 by $iface which is not used) : ``` #! /bin/bash iface=`ip -o -f inet addr show |awk '$2 !

Re: Network interface names

2018-11-22 Diskussionsfäden Steffen Grunewald
On Thu, 2018-11-22 at 12:18:52 +0100, Rémy Dernat wrote: > Ok; replying to myself. I found the solution. > > I just created a script for my BIONIC64 class (using the debian script) : > > ``` > #! /bin/bash > > iface=`ip -o -f inet addr show |awk '$2 !~ "lo|docker" {print $2;exit;}'` > mac=`ip -o

Re: Network interface names

2018-11-22 Diskussionsfäden Rémy Dernat
Ok; replying to myself. I found the solution. I just created a script for my BIONIC64 class (using the debian script) : ``` #! /bin/bash iface=`ip -o -f inet addr show |awk '$2 !~ "lo|docker" {print $2;exit;}'` mac=`ip -o -f link addr |awk -v iface=$iface '{ if ( $2 == iface":" ) {print;} }' |cu

Re: Network interface names

2018-11-22 Diskussionsfäden Rémy Dernat
Hi, I am facing the same issue. However, I would like to adopt the new naming style, and so, retrieving the interface name dynamically. The Debian script previously cited seems to do the job at the FAI nfsroot step, during installation. However, when it reboots, it looses the ability to get this

Re: Network interface names

2018-10-15 Diskussionsfäden Steffen Grunewald
Hi, thanks for the responses which may turn out to be helpful in some way (if it's already too late to get hold of the old-style if names) - during a half-hearted test, the grub cmdline trick did not work for me. What still makes me curious is > > What I still haven't found is which magic FAI us

Re: Network interface names

2018-10-14 Diskussionsfäden Andreas Heinlein
Am 12.10.2018 um 17:09 schrieb Steffen Grunewald: > Hi, > > I've learned that I may "fix" the device interface names using a rules file > in /etc/udev/rules.d, to avoid susprises after the installation. > While adding some special parameters to the kernel command line didn't work, > udev does its j

Re: Network interface names

2018-10-13 Diskussionsfäden Thomas Lange
Have a look at this script https://github.com/faiproject/fai-config/blob/master/scripts/DEBIAN/30-interface Does this help you? -- regards Thomas

Re: Network interface names

2018-10-12 Diskussionsfäden Carsten Aulbert
Hi Steffen, On 10/12/18 17:09, Steffen Grunewald wrote: > I've learned that I may "fix" the device interface names using a rules file > in /etc/udev/rules.d, to avoid susprises after the installation. > While adding some special parameters to the kernel command line didn't work, > udev does its jo