Solving Ubuntu Internet Connection Problems

For some industrial PCs which have more than one internet adaptors inside, the internet connection problems always happen if the settings in ifconfig is incorrect.

Here is a quick solution on this problem.

Run the following command to obtain the root permission

sudo -s

Shut down the internet card which you are not willing to use. Replace XXXXX by the name of this internet card.

ifconfig XXXXX down

Done! You may use ifconfig once again to test if your settings are successful.

ifconfig

Ping something to test.

ping 1.1.1.1