6

ifconfig -a produces:

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1812 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1812 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:209274 (209.2 KB)  TX bytes:209274 (209.2 KB)

wlan0     Link encap:Ethernet  HWaddr 28:cf:e9:1a:43:cd  
          inet addr:192.168.12.11  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::2acf:e9ff:fe1a:43cd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11512 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9240182 (9.2 MB)  TX bytes:2316647 (2.3 MB)

lspci -nn | grep Ethernet produces:

03:00.0 Ethernet controller [0200]: Broadcom Corporation Device [14e4:16a3] (rev 10)

cat /etc/network/interfaces produces:

auto lo

iface lo inet loopback

Any ideas on how I can get eth0? Thanks!

12
  • 1
    Adding the lines allow-hotplug eth0 and iface eth0 inet dhcp to the interfaces file should work, if you use DHCP and no network manager.
    – Alex
    May 4, 2014 at 4:23
  • I added those 2 lines to the file and rebooted, but still dont see eth0. I think it has to do with the drivers, but I'm not sure. May 4, 2014 at 4:34
  • After making the changes to the file (and saving) bring all interfaces down and eht0 up. To do that issue ifdown wlan0 (will disconnect from the internet, use ifup to bring it back) ifdown eth0 ifup eth0. Report back if it doesn't work. (Note all commands must be issued as root or with sudo, as well as making the changes to the interfaces file).
    – Alex
    May 4, 2014 at 4:35
  • I saved those changes. When I do ifdown wlan0, I get the error - ifdown: interface wlan0 not configured. May 4, 2014 at 4:37
  • 1
    I disabled networking for the menubar on top. Then ran sudo ifup eth0. Got the error - Cannot find device "eth0" Error getting hardware address for "eth0": No such device Failed to bring up eth0. May 4, 2014 at 4:41

1 Answer 1

10

Check whether your interface has the name eth0 by typing ifconfig -a.

Probably it is named something like p1p1 now. If it is and you want it to be eth0, add biosdevname=0 to the boot options in your /etc/default/grub.

1
  • 1
    Alternatively you can just rename the interface from eth0 to the assigned name in /etc/network/interfaces (p1p1 in your example), assuming the correct configuration information has been added already for eth0 in that file.
    – bbarker
    May 27, 2016 at 20:11

Not the answer you're looking for? Browse other questions tagged .