Just updated to udev-200 and figured it was time to read the news item and deal with the Predictable Network Interface Names. I only have one network card and connect with a static ip address. It looked to me like more trouble to keep net.eth0 then to just go with the flow and paddle downstream and not fight it so here is what I did.
First I read the news item :) then found out what my new name would be.
eselect news read udevadm test-builtin net_id /sys/class/net/eth0 2> /dev/null
That returned enp0s25 ...
Next remove the old symlink and create the new one.
cd /etc/init.d/ rm net.eth0 ln -s net.lo net.enp0s25
I removed all the files from /etc/udev/rules.d/
Next set up /etc/conf.d/net for my static address.
# Static config_enp0s25="192.168.1.68/24" routes_enp0s25="default via 192.168.1.254" dns_servers_enp0s25="192.168.1.254 220.127.116.11"
That was it, rebooted, held my breath, and everything seems just fine, YES!
ifconfig enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.68 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::21c:c0ff:fe91:5798 prefixlen 64 scopeid 0x20<link> ether 00:1c:c0:91:57:98 txqueuelen 1000 (Ethernet) RX packets 3604 bytes 1310220 (1.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 2229 bytes 406258 (396.7 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 20 memory 0xd3400000-d3420000 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I had to edit /etc/vnstat.conf and change eth0 to enp0s25. I use vnstat with conky.
rm /var/lib/vnstat/* vnstat -u -i enp0s25