Em 12-06-2014 07:04, Pravin Pawar escreveu:
> How can i change eno16777736 Ethernet port to eth0 port in lfs
>
> Thanks and regards
> Pravin Pawar
Please, if you can, reply below previous post (do not top post).
I have never done it. I just use whatever is given by (e)udev.
The following probably will do what you want.
In a physical machine, there is a rule that names the device:
/etc/udev/rules.d/70-persistent-net.rules
If you have that file, just replace eno16777736 by eth0:
... NAME="eth0"
If you do not have it, probably the following will solve. If not, I will
be corrected by others and learn. Create that file (as root):
cat > /etc/udev/rules.d/70-persistent-net.rules << "EOF"
# This file was not automatically generated by the
# /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<*your
mac address*>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*",
NAME="eno16777736"
EOF
chmod -v 0644 /etc/udev/rules.d/70-persistent-net.rules
Notice that it is just a single line, from SUBSYSTEM up to "eno16777736".
Inspect the file, because the email program may break lines above.
The ATTR{address} can be obtained with
ip address show | grep -A3 eno16777736 | grep ether | cut -d" " -f6
or just
ip address show
and inspect link/ether for eno16777736.
--
[]s,
Fernando
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page