[Linux] Ubuntu Initializing/Reinitializing network

Checking ethernet ports on Ubuntu.

Step-by-step guide

Two things. <that apply to Ubuntu only>

1)      Do “ip link show” to show the ethernet ports name

  • note port names

2)      nano /etc/network/interfaces

  • edit interfaces file
  • add network port names to interfaces file as shown below


# The loopback network interface

auto lo

iface lo inet loopback

auto eth0

iface eth0 inet dhcp   

auto eth1

iface eth1 inet dhcp


3)   Restart computer