Skip to content

Instantly share code, notes, and snippets.

@hmidani-abdelilah
Forked from hernad/recreate_udev_net.txt
Created July 30, 2020 00:25
Show Gist options
  • Save hmidani-abdelilah/a6b7ac047b612de6ad8a7e847ecd3d98 to your computer and use it in GitHub Desktop.
Save hmidani-abdelilah/a6b7ac047b612de6ad8a7e847ecd3d98 to your computer and use it in GitHub Desktop.
recreate ubuntu udev persistent network rules - udevadm trigger
vagrant@lucid64:~$ sudo rm /etc/udev/rules.d/70-persistent-net.rules
vagrant@lucid64:~$ sudo udevadm trigger
vagrant@lucid64:~$ sudo ls /etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/70-persistent-net.rules
vagrant@lucid64:~$ sudo cat /etc/udev/rules.d/70-persistent-net.rules
# This file was 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.
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:62:0c:31", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:d7:61:6d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment