Translate

miércoles, 4 de febrero de 2015

Delete Ubuntu Network interfaces cache


Hi newbies.

Sometimes after trying everything to init a network interface on Ubuntu without success, what we need is to delete our network interfaces cache

/etc/udev/rules.d/70-persistent-net.rules contains the MAC address to eth device mappings. Delete the lines like below, noting the module name on the "# PCI device" line:




1. PCI device xxxxxxxxxxx (module)

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="xxxxxxx", NAME="eth0"

This removes the MAC to eth device mapping info. Now we need to restart udev to allow the change to take effect:

/etc/init.d/udev restart

Next step is to "bounce" the kernel module for the ethernet device. Use the module name from the 70-persistent-net.rules file noted above:

modprobe -r module
modprobe module

"ifconfig" should now show the eth0 interface is up and running.

Luxant

About Luxant

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.