Not able to connect to internet when both ethernet and wifi is connected in Ubuntu 16.04

I have Ubuntu 16.04 (machine 1) and Windows 10 (machine2). I have connected the ubuntu to the wifi with IP 192.168.0.110 and I can browse internet easily.

I have to do remote C++ development on ubuntu from windows using Visual studio. I have connected the Ethernet cable between ubuntu and windows. On both the side I have set the static IP i.e. ubuntu has 192.168.0.150 and windows has 192.168.0.149. I can ping windows from ubuntu and vice versa. But when I try to browse internet on Ubuntu, its not working. If I disconnect wired connection from ubuntu, I can browse the internet fine. I don’t know what I have done wrong here due to which I am not able to connect to internet on Ubuntu.

Can anyone please suggest any idea. Thanks

Ethernet port missing in Jetson TX2

I have a Connect Tech Rudi TX2 device that came with Ubuntu 16.04 installed and it had two physical Ethernet ports eth0 and eth1 (they also worked).

After upgrading the Jetson platform to a newer version and flashing Connect Tech’s BSP there’s now only one Ethernet interface visible when I run ifconfig.

Is there a config file somewhere where you can enable or disable network interfaces?

Edit: The other Ethernet port is not enabled in the sense it seems to be completely dead, not just a /etc/network/interfaces thing.

Ethernet problem, Not receiving packages

I’m having problems with the connection of my Ethernet.

Even when the interface is UP:

enp57s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 80:fa:5b:6a:a5:d4 brd ff:ff:ff:ff:ff:ff 

I’m able to send packages but I’m not able to receive them

enp57s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000     link/ether 80:fa:5b:6a:a5:d4 brd ff:ff:ff:ff:ff:ff     RX: bytes  packets  errors  dropped overrun mcast        0          0        0       0       0       0            TX: bytes  packets  errors  dropped carrier collsns      340265     1877     0       0       0       0    

The logs of the network manager usually show this:

NetworkManager[1033]: <info>  [1570450750.2616] manager: NetworkManager state is now CONNECTED_GLOBAL NetworkManager[1033]: <info>  [1570450888.9975] policy: auto-activating connection 'Wired_connection_1' NetworkManager[1033]: <info>  [1570450889.0014] device (enp57s0f1): Activation: starting connection 'Wired_connection_1' (21a7b2ee-5094-3939-9513-c138d8b2edab) NetworkManager[1033]: <info>  [1570450889.0024] device (enp57s0f1): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed') NetworkManager[1033]: <info>  [1570450889.0031] device (enp57s0f1): state change: prepare -> config (reason 'none', sys-iface-state: 'managed') NetworkManager[1033]: <info>  [1570450889.0040] device (enp57s0f1): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed') NetworkManager[1033]: <info>  [1570450889.0045] dhcp4 (enp57s0f1): activation: beginning transaction (timeout in 45 seconds) NetworkManager[1033]: <info>  [1570450889.0066] dhcp4 (enp57s0f1): dhclient started with pid 10891 dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 3 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 7 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 14 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 15 (xid=0x58746c62) dhclient[10891]: DHCPDISCOVER on enp57s0f1 to 255.255.255.255 port 67 interval 18 (xid=0x58746c62) NetworkManager[1033]: <warn>  [1570450934.0052] dhcp4 (enp57s0f1): request timed out NetworkManager[1033]: <info>  [1570450934.0054] dhcp4 (enp57s0f1): state changed unknown -> timeout NetworkManager[1033]: <info>  [1570450934.0391] dhcp4 (enp57s0f1): canceled DHCP transaction, DHCP client pid 10891 NetworkManager[1033]: <info>  [1570450934.0392] dhcp4 (enp57s0f1): state changed timeout -> done NetworkManager[1033]: <info>  [1570450934.0409] device (enp57s0f1): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed') NetworkManager[1033]: <warn>  [1570450934.0431] device (enp57s0f1): Activation: failed for connection 'Wired_connection_1' NetworkManager[1033]: <info>  [1570450934.0439] device (enp57s0f1): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed') 

If I check the status of copper cables everything looks ok

Interface Speed Local pair Pair length        Remote pair Pair status --------- ----- ---------- ------------------ ----------- -------------------- Gi0/3     1000M Pair A     41   +/- 10 meters Pair B      Normal                               Pair B     41   +/- 10 meters Pair A      Normal                               Pair C     41   +/- 10 meters Pair D      Normal                               Pair D     41   +/- 10 meters Pair C      Normal    

The computer seems to be connected when I search the status of the interfaces in the swicth

Gi0/3     A02 - Workstation  connected    20         a-full a-1000 10/100/1000BaseTX 

Also the switch knows the computer’s mac address:

           Mac Address Table -------------------------------------------  Vlan    Mac Address       Type        Ports ----    -----------       --------    -----   20    80fa.5b6a.a5d4    DYNAMIC     Gi0/3 

The switch seems to send the packages to the computer but they never arrive

GigabitEthernet0/3 is up, line protocol is up (connected)    Description: A02 - Workstation   MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,       reliability 255/255, txload 1/255, rxload 1/255   Encapsulation ARPA, loopback not set   Keepalive set (10 sec)   Full-duplex, 1000Mb/s, media type is 10/100/1000BaseTX   input flow-control is off, output flow-control is unsupported    ARP type: ARPA, ARP Timeout 04:00:00   Last input never, output 00:00:07, output hang never   Last clearing of "show interface" counters 2w0d   Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 1886   Queueing strategy: fifo   Output queue: 0/40 (size/max)   5 minute input rate 1000 bits/sec, 1 packets/sec   5 minute output rate 0 bits/sec, 0 packets/sec      5369157 packets input, 905525711 bytes, 0 no buffer      Received 27215 broadcasts (20150 multicasts)      0 runts, 0 giants, 0 throttles       0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored      0 watchdog, 20150 multicast, 0 pause input      0 input packets with dribble condition detected      7547468 packets output, 3260967444 bytes, 0 underruns      0 output errors, 0 collisions, 0 interface resets      0 unknown protocol drops      0 babbles, 0 late collision, 0 deferred      0 lost carrier, 0 no carrier, 0 pause output      0 output buffer failures, 0 output buffers swapped out 

Finally, for some reason, if I boot up my machine with my Ethernet cable plugged in, my wired connection will not work: even if I replug it, even if I tell my laptop to forget the network. However, if I boot up my system with my Ethernet cable unplugged, and then plug it it after it lands on the desktop, it works just fine. The Wi-Fi works perfectly fine regardless.

Ubuntu 18.04 on Dell Lat 5591: Ethernet Card not showing

My Ethernet card is not showing on lspci. All I can do is use wireless which does not help me in my current state. Is this a dead ethernet card or something else? lspci below (only wifi showing):

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07) 00:02.0 VGA compatible controller: Intel Corporation Device 3e9b 00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07) 00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model 00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10) 00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10) 00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10) 00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10) 00:15.0 Serial bus controller [0c80]: Intel Corporation Device a368 (rev 10) 00:15.1 Serial bus controller [0c80]: Intel Corporation Device a369 (rev 10) 00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10) 00:16.3 Serial controller: Intel Corporation Device a363 (rev 10) 00:17.0 SATA controller: Intel Corporation Device a353 (rev 10) 00:1c.0 PCI bridge: Intel Corporation Device a338 (rev f0) 00:1c.5 PCI bridge: Intel Corporation Device a33d (rev f0) 00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port 9 (rev f0) 00:1f.0 ISA bridge: Intel Corporation Device a30e (rev 10) 00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10) 00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10) 00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10) 01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce MX130] (rev a2) 02:00.0 PCI bridge: Intel Corporation JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016] (rev 02) 03:00.0 PCI bridge: Intel Corporation JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016] (rev 02) 03:01.0 PCI bridge: Intel Corporation JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016] (rev 02) 03:02.0 PCI bridge: Intel Corporation JHL6340 Thunderbolt 3 Bridge (C step) [Alpine Ridge 2C 2016] (rev 02) 3a:00.0 USB controller: Intel Corporation Device 15db (rev 02) 3b:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01) 3c:00.0 Non-Volatile memory controller: Micron/Crucial Technology Device 2263 (rev 03) 

How prioritize ethernet over wifi in Ubuntu 18.04?

When I am on wifi and then plug in the Ethernet cable the internet connection switches to the latter (three-box symbol), but after pause it is back to wifi and I do not know how to return to Ethernet (which I want since much faster). Unplugging and reconnecting the cable doesn’t affect the selection of wifi. I only found older (pre-18.04) recipes that do not work.

how do I set up a trunked ethernet interface?

My 01-netcfg.yaml looks like this:

# This file describes the network interfaces available on your system # For more information, see netplan(5). network:   version: 2   renderer: networkd   ethernets:     ens1f0np0:       dhcp4: no       addresses: [ 10.200.127.50/24 ]       gateway4: 10.200.127.254       nameservers:           search: [ schonfeld.com ]           addresses:               # - "10.200.4.240"               - "10.200.56.51"     ens2f0np0:       dhcp4: no       addresses: [ 10.200.101.50/24 ]       #      gateway4: 10.200.101.254       nameservers:           search: [ schonfeld.com ]           addresses:            # - "10.200.4.240"               - "10.200.56.51" 

I’d like to add a vlan to ens1f0np0, how is this done? OS Details:

DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS" 

Ethernet Adapter Detected but the ethernet cable isn’t

I recently bought a usb ethernet adapter as my laptop has no ethernet ports. The laptop detects the adapter, the driver is installed, but the ethenet cable isn’t detected. The cable works fine for other laptops. the results of ethtool enx00e001103008 shows:

Settings for enx00e001103008:     Supported ports: [ TP MII ]     Supported link modes:   10baseT/Half 10baseT/Full                              100baseT/Half 100baseT/Full      Supported pause frame use: No     Supports auto-negotiation: Yes     Supported FEC modes: Not reported     Advertised link modes:  Not reported     Advertised pause frame use: No     Advertised auto-negotiation: No     Advertised FEC modes: Not reported     Speed: 100Mb/s     Duplex: Half     Port: MII     PHYAD: 0     Transceiver: internal     Auto-negotiation: off     Current message level: 0x00000007 (7)                    drv probe link     Link detected: no 

The link detected always shows ‘no’.

The output for lshw -c network is:

*-network:0        description: Ethernet interface        physical id: 2        logical name: enx00e001103008        serial: 00:e0:01:10:30:08        size: 100Mbit/s        capacity: 100Mbit/s        capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=off broadcast=yes driver=dm9601 driverversion=22-Aug-2005 duplex=half firmware=Davicom DM96xx USB 10/100 Ether link=no multicast=yes port=MII speed=100Mbit/s 

Stop ethernet from automatically reconnecting

I have a dual Ethernet connection setup on my computer running Ubuntu 18 in a VM from virtual box. I need to disconnect one or the other occasionally because of lack of routing in some applications. Problem is that whenever I disconnect Eth0, the OS will automatically create a connection, “eth0.” If I delete or disconnect from “eth0,” the OS will reconnect.

I am thinking this is part of autoethernet but not sure how to stop it.

Ubuntu 19.04 won’t connect via Ethernet

I just built a custom PC with Windows 10 installed on one SSD, and Ubuntu 19.04 on another SSD. My Windows OS connects to the internet just fine via Ethernet, but Ubuntu absolutely refuses to connect. This is a fresh install of 19.04.

I’ve read a ton of forums online, both on this site and others, and tried many solutions, including editing the /etc/network/interfaces file, the /etc/NetworkManager/NetworkManager.conf file, messing around with the resolv.conf and related files, changing ifupdown settings, and absolutely nothing works. I installed the r8168driver using a flash drive in the hopes it would work, but nothing happens. I bypassed my router and connected Ethernet cable directly from modem to computer: nothing. For some reason, Ubuntu will not receive any DNS information. It’s not a faulty Ethernet cable since Windows works just fine. I’m at my wit’s end about what to do.

For information, I’m using:

  • Ubuntu 19.04
  • AMD Ryzen 9 processor
  • Asus ROG Crosshair VIII Hero (Wi-Fi) motherboard

I’m no stranger to Linux/Ubuntu, having used it for years. Also, my Ubuntu install is separate from my Windows install, and I’m very comfortable in the command line, so I don’t mind messing around with files or settings that might have adverse effects, as I have another OS to fall back on if something gets corrupted. Could anyone provide any insight?