How to change the order of the network cards on Ubuntu


My brand new Ubuntu 12.04 install assigned PCI network card as "eth0" and motherboards integrated network device as "eth1" by default. The problem is I want to use the integrated device as default (eth0) network interface.

I already edited :

Step 1  : Vi /etc/udev/rules.d/70-persistent-net.rules
Step 2  : delete old  PCI network card Name
Step 3  : Changed Eth1 to Eth0

To swap the names and everything seems to be ok and network is working but programs are still trying to use the PCI network card (which is now "eth1") as the default in terface. For example iftop now tries to use "eth1" as default device as it used "eth0" before the swap.

留言

這個網誌中的熱門文章

error message : configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: "%)']/following::android.widget.EditText"

OSError: [Errno 22] Invalid argument: