Interface Naming inside nfsroot

Dennis Steinmann dsteinmann at cardtech.de
Tue Mar 14 11:21:27 CET 2017


Hi there,

I'm using FAI 5.0.3 on an Ubuntu 16.04 machine with a Debian 8 nfsroot.
My problem is to setup the interface for the installed system correctly.

When I boot the nfsroot, all interfaces named eth[0-9]*. The variable
"$NIC1" is also set to eth0. The script "30-interface" is doing this:

[ -n "$IPADDR" ] && cat > $target/etc/network/interfaces <<-EOF
	# generated by FAI
	auto lo $NIC1
	iface lo inet loopback
	iface $NIC1 inet static
	  address $IPADDR
	  netmask $NETMASK
	  gateway $GATEWAYS
EOF

When I boot the installed systems (CentOS 7 or Ubuntu 16.04), I have
eno16777984 (CentOS 7) or ens160 (Ubuntu) instead of eth0.

What is the best solution to handle different interface names?
I want to keep the "OS-default" names, like eno[0-9]* in CentOS 7 and
ens[0-9]* in Ubuntu.

Thanks & best regards,
Dennis

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20170314/78a68cba/attachment.asc>


More information about the linux-fai mailing list