понедельник, 24 февраля 2014 г.

Ubuntu Server: fix network adapter when wifi bridged

When you has laptop with ubuntu-server based virtual box, and its connection represented as bridged wi-fi connection, than you can often get this error when change your physical location:

$ ping google.com
ping: unknown host google.com
The problem is in `/etc/udev/rules.d/70-persistent-net.rules` file, you can mv/rm it and then do system restart. If the problem still exist you can also check `ifconfig` command and `/etc/network/interfaces`, to correct interfaces - sometimes for no reason they can be auto renamed to ethN+1.