2

So, I am having an issue where my Ubuntu Server (v18.04.3) no longer wants to connect to the internet. It was working fine before I took out my gpu to sell. I have googled to my hearts content and have found many people with the same or similar issues. I have tried all the remedies that have been suggested, but to no avail. Could someone give me a bite more insight as to how I might fix this?

Links I have tried:

Outputs from commonly asked commands:

  • ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
        inet 127.0.0.1 netmask 255.0.0.0
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 1000 (Local Loopback)
        RX packets 2160 bytes 154368 (154.3 KB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 2160 bytes 154368 (154.3 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions0
  • ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_left forever
    inet ::1/128 scope host
       valid_lft forever preffered_left forever
2: enp6s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d8:cb:8a:bf:3c:af brd ff:ff:ff:ff:ff:ff

EDIT: Spelling/grammar

3
  • Instead of the old /etc/network/interfaces, Ubuntu 17.10 and newer are using netplan for their network configuration storage by default. Is there a file named like /etc/netplan/*.yaml in your system? What is in it?
    – telcoM
    Oct 16, 2019 at 16:02
  • Yes, there is, and I have renamed the enpXs0 (X being a number that I changed to see if it would work). Unfortunately, that did not show any results.
    – ToastyNikk
    Oct 16, 2019 at 16:52
  • This is what was inside it 'network:' 'ethernets:' 'enp6s0:' 'dhcp4: true' 'version: 2' Pastebin: pastebin.com/jLUE0Q9f
    – ToastyNikk
    Oct 16, 2019 at 18:15

2 Answers 2

3

When you removed the GPU, the PCIe bus configuration of your system changed, causing the bus location of your NIC to change. This change is reflected in the PCI IDs in the lspci listing, and also in the "predictable network interface names".

Your NIC used to be named something like enp?s0; now it is enp6s0.

Edit the netplan YAML file to change the name of the NIC to match what it is now:

sudo nano /etc/netplan/*.yaml

Change enp?s0 (where ? is some number unknown to me) to enp6s0 and press Ctrl+X to save & exit.

(Based on your comments, perhaps you have already done this.)

Then run sudo netplan apply. (This might be the only thing you're missing.)

2
  • Yea, I kept editing and rebooting the server since it doesnt take so long. I didnt try the sudo netplan apply, so maybe that will fix it.
    – ToastyNikk
    Oct 16, 2019 at 17:03
  • I have now tried this method and it does not work, I am still unable to connect to the internet.
    – ToastyNikk
    Oct 16, 2019 at 18:12
0

When you removed the GPU, the PCIe bus configuration of your system changed, causing the bus location of your NIC to change. This change is reflected in the PCI IDs in the lspci listing, and also in the "predictable network interface names".

Your NIC used to be named something like enp?s0; now it is enp6s0.

So what if I don't have the netplan command available?

networkctl will be available on most Linux distros. The command below will give you the current link being used (ether in this case).

# networkctl list

IDX LINK             TYPE               OPERATIONAL SETUP     
  1 lo               loopback           n/a         unmanaged 
  2 enp5s0           ether              n/a         unmanaged 

The enp5s0 value in this example is the new link that will need to replace enp6s0 in the configuration below.

# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp6s0 inet manual

Note: You will want to change all instances of enp6s0 in this file.

Once that is change is written, restart your networking and the link should be online.

You must log in to answer this question.

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