Prevent Ubuntu from choosing WiFi over Ethernet

My machine tends to arbitrarily switch to wifi when my laptop is connected to Ethernet. I wonder how I can prevent that.

macbook – Is it possible to use an Ethernet connection on a Mac without draining the battery?

I'm using a model Macbook Pro 15 "2018. I want to use a wired internet connection.I have tried using 2 different USB-C hubs to achieve it.Both are USB-C type to Ethernet, as well as some USB-A 3.0 ports (SD card slot connectors on one of them) .They have considerably depleted the battery life of my Mac, for example by having it almost halved, when I only used the Ethernet port.

Today, I also have a USB-C to pure Ethernet adapter (not a hub). This does not seem to drain the battery as much as the hubs, but the same problem persists. I hoped it would be better and I will test it a bit more tomorrow.

The fact is that without the Internet connection via USB-C to Ethernet, the battery life is perfect. It seems as good as advertised, actually, about 10 hours or so. I did not do a real test to see how long it really took before stopping, but it is still noticeably better. Even Wi-Fi seems to use less power than USB-C over Ethernet.

Does anyone know a solution to this? Should USB-C to Ethernet connections on Mac drain the battery? Or could it be a software problem? I have often tried to look for a solution on the internet, but it seems that many people do not even encounter this problem with this type of adapter.

Thank you very much for any help, and best regards.

How can I install an Ethernet driver?

hey I've changed my windows OS to Ubuntu and I do not have internet because I do not have ethernet driver, how can i install it?

How to use Ethernet to access the Internet under Phoenix OS?

I use broadband (ethernet on my laptop, no router). On Windows, I have to use remote access and give my username and password to login. But I do not see such an option in Phoenix OS.

Is there a way to use my broadband (Ethernet, no router) in Phoenix OS?

ethernet – How to know if there is a bridge in the network?

I have 2 RJ-45 sockets in the apartments, which should be directly connected by the Ethernet cable. Although the cable coming out of one of them is not exactly the same as that of another.

Is there a way to know if they are actually connected by a bridge (rather than a physical connection)? They are not so close to measure the impedance between the respective wires.

Sharing the wireless Internet connection via Ethernet on 18.04 LTS

Some of your past responses have not been well received and you may be stuck.

Please pay close attention to the following tips:

  • Please make sure to respond to the question. Provide details and share your research!

But to avoid

  • Ask for help, clarification, or answer other answers.
  • Make statements based on opinions; save them with references or personal experience.

To learn more, read our tips for writing good answers.

Wifi to Ethernet bridge does not work (Windows 10)

I am trying to share a WiFi-Internet connection with an Ethernet port.
Wifi is secured with 802.1X corporate authentication (so there is no password pre-shared as in the home Wifi).

Whenever I connect the WiFi adapter to the ethernet adapter, the internet connection is interrupted (right click -> bridge in the Windows 10 system control panel).

As soon as I remove the bridge, the WiFi adapter restores Internet connectivity.
The configuration of static IP addresses does not work.

It seems to me that the bridge destroys the wireless configuration.
How to configure a Windows 10 bridge that leaves the wireless configuration unchanged? (note that the Ethernet configuration does not interest me as long as I have a working Internet gateway)

linux – Setting up a direct Ethernet connection

I have two desktop systems, one with Windows 10 and the other with Debian 9. All my data is stored on the Linux system, which is mounted as a Windows network drive to the # 39; samba help.

I want to set up a direct Ethernet connection between the two computers using a dedicated Gigabit Ethernet network card to avoid overloading the network. I've therefore configured both computers for them to use static IP addressing:

/ etc / network / interfaces:

auto enp6s0
iface enp6s0 static inet
address 192.168.253.1
network mask 255.255.0.0
192.168.253.0 network
broadcast 192.168.253.255

Windows adapter:
Screen capture of the Windows configuration

But the two hosts can not ping one to the other. I also have these problems in the Linux computer log:

Network Manager[466]:   [1544785487.5682]    device (enp6s0): activation: connection establishment & # 39; enp6s0 & # 39; (0169b53d-570D-477c-b45a-5edd8f1e57a3)
Network Manager[466]:   [1544785487.5685]    device (enp6s0): state change: disconnected -> prepare (reason 'no') [30 40 0]
Network Manager[466]:   [1544785487.5687]    device (enp6s0): state change: prepare -> config (reason 'no') [40 50 0]
Network Manager[466]:   [1544785487.5688]    device (enp6s0): state change: config -> ip-config (reason & # 39; no) [50 70 0]
Network Manager[466]:   [1544785487.5688]    device (enp6s0): the interface enp6s0 is not ready for IP configuration
avahi-daemon[462]: Join an mDNS multicast group on the enp6s0.IPv4 interface with the address 192.168.253.1.
avahi-daemon[462]: New relevant interface enp6s0.IPv4 for mDNS.
avahi-daemon[462]: Registering a new address record for 192.168.253.1 on enp6s0.IPv4.
core: [ 4090.228869] r8169 0000: 06: 00.0 enp6s0: link down
core: [ 4090.228917] r8169 0000: 06: 00.0 enp6s0: link down
core: [ 4090.228943] IPv6: ADDRCONF (NETDEV_UP): enp6s0: the link is not ready
Network Manager[466]:   [1544785487.7322]    device (enp6s0): state change: ip-config -> ip-check (reason "none") [70 80 0]
Network Manager[466]:   [1544785487.7328]    device (enp6s0): state change: ip-check -> secondaries (reason & # 39; no) [80 90 0]
Network Manager[466]:   [1544785487.7330]    device (enp6s0): state change: secondary -> enabled (reason & # 39; no) [90 100 0]
Network Manager[466]:   [1544785487.7387]    device (enp6s0): Activation: successful, device enabled.

So, what could be missing in my configuration?

routing – Single router with two Ethernet interfaces, no static route required?

Normally, for subnets connected with a router, I have always used two routes created

for example:

subnet 1: 192.168.1.0/24
subnet 2: 192.168.2.0/24

router interface 1: 192.168.1.99
router interface 2: 192.168.2.99

route 1: dst-address 192.168.2.0/24 gateway: 192.168.1.99
route 2: dst-address 192.168.1.0/24 gateway: 192.168.2.99

Up to now everything is fine, I can ping subnet 1 of subnet 2 and vice versa

I'm using Microtik's routerOS and I just realized that routing also works without any static road. Is it an automation of routerOS or is it normal with a router that only has two network interfaces?

I'm confused,
Thank you

network – Ethernet – Windows works, but not under Ubuntu 18.04

On my Ubuntu 18.04 laptop, the ethernet does not work my home network (The wifi, hotspot and USB connections do not work either). But my Windows laptop works to my home network. Plus, Ethernet runs on my Ubuntu 18.04 laptop when I have it on my work network.

On the portal of administration of my router, it is indicated that my Ubuntu 18.04 laptop is correctly connected (via Ethernet or wifi). When I try to load a page on the browser, it does not load immediately, but after 5 to 10 minutes, but extremely slowly. Sometimes it expires.

The ethernet icon at the top right seems normal. These are the Ethernet settings –

IPv4 address:
IPv6 address:
Physical address:
Defualt Road: 192.168.2.1
DNS: 192.168.2.1

MTU: automatic

IPv4: all automatic settings
IPv6: all automatic settings

Here are the outputs of the current diagnostic commands.

lspci
##########################################
00: 00.0 Host Bridge: Host / Bridge Host / Skylake DRAM Registries from Intel Corporation (Rev 07)
00: 01.0 PCI Bridge: Intel Corporation Skylake PCIe Controller (x16) (Rev 07)
00: 02.0 VGA Compatible Controller: Intel Corporation HD Graphics P530 (rev 06)
00: 04.0 Signal Processing Controller: Intel Corporation's Skylake Processor Thermal Subsystem (Rev 07)
00: 14.0 USB Controller: Intel Corporation's Sunrise Point-H USB 3.0 xHCI Controller (Rev 31)
00: 14.2 Signal Processing Controller: Sunrise Point-H Thermal Subsystem from Intel Corporation (Rev 31)
00: 15.0 Signal Processing Controller: Sunrise Point-H Sunrise Intel Corporation Controller # 0 (Rev 31)
00: 15.1 Signal Processing Controller: Sunrise Point-H Sunrise Intel Corporation Controller # 1 (Rev 31)
00: 16.0 Communication Controller: Intel Corporation Sunrise H-Point CSME HECI # 1 (Rev 31)
00: 17.0 SATA Controller: Sunrise Point-H SATA Controller from Intel Corporation [AHCI mode] (Rev 31)
PCI Bridge 00: 1c.0: Intel Corporation Sunrise Point-H PCI Express Root Port # 1 (Rev F1)
PCI Bridge 00: 1c.1: Intel Corporation Sunrise Point-H PCI Express Root Port # 2 (Rev F1)
PCI Bridge 00: 1d.0: Intel Corporation Sunrise Point-H PCI Express Root Port # 9 (Rev F1)
PCI Bridge 00: 1d.4: Intel Corporation Sunrise Point-H PCI Express Root Port # 13 (Rev F1)
PCI Bridge 00: 1d.6: Intel Corporation Sunrise Point-H PCI Express Root Port # 15 (Rev F1)
00: 1f.0 ISA Bridge: Intel Corporation Sunrise Point-H LPC Controller (Rev 31)
00: 1f.2 Memory Controller: Intel Corp. Sunrise Point-H PMC (Rev 31)
00: 1f.3 Audio Device: Sunrise Point-H HD Audio Corporation (Rev 31)
00: 1f.4 SMBus: Sunrise Point-H SMBus Corporation (Rev 31)
01: 00.0 3D Controller: NVIDIA Corporation GM107GLM [Quadro M1000M] (rev a2)
02: 00.0 Network Controller: Intel Corporation Wireless 8260 (rev 3a)
03: 00.0 Class not assigned [ff00]: RTS525A PCI Express Card Reader from Realtek Semiconductor Co., Ltd. (Rev. 01)
04: 00.0 Non-Volatile Memory Controller: Toshiba America Info Systems Device 0115 (Rev 01)
06: 00.0 PCI Bridge: Intel Corporation Bridge DSL6340 Thunderbolt 3 [Alpine Ridge 2C 2015]
07: 00.0 PCI Bridge: Intel Corporation Bridge DSL6340 Thunderbolt 3 [Alpine Ridge 2C 2015]
07: 01.0 PCI Bridge: DSL6340 Thunderbolt Bridge 3 from Intel Corporation [Alpine Ridge 2C 2015]
07: 02.0 PCI Bridge: DSL6340 Thunderbolt Bridge 3 by Intel Corporation [Alpine Ridge 2C 2015]
3rd: 00.0 USB Controller: Intel Corporation DSL6340 USB 3.1 Controller [Alpine Ridge]

rfkill
##############################################
TYPE OF IDENTITY HARD SOFT DEVICE
1 WLAN Dell-wifi blocked unlocked
2 bluetooth dell-bluetooth unlocked unlocked
3 phy0 wlan blocked unlocked

cat / etc / network / interfaces
##########################################
# interface file (5) used by ifup (8) and ifdown (8)
auto lo
iface lo inet loopback

ifconfig
#########################################
docker0: flags = 4099  1500 mtu
inet network mask 172.17.0.1 255.255.0.0 released 172.17.255.255
ether 02: 42: 4b: 96: 1e: b5 txqueuelen 0 (Ethernet)
Packets RX 0 bytes 0 (0.0 B)
RX Errors 0 Aborted 0 exceed 0 image 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 missed 0 exceedances 0 carrier 0 collisions 0

enxd481d72f6de3: flags = 4163  1500 mtu
inet 192.168.2.106 netmask 255.255.255.0 broadcast 192.168.2.255
inet6 2003: e3: bf1: fe3f: c4d0: c2ce: 83de: prefixlen 6cff 64 scopeid 0x0
        inet6 fe80 :: 6c7b: cb8d: a686: 813b prefixlen 64 scopeid 0x20
        inet6 2003: e3: bf1: fe3f: 3cf5: 137d: 588e: prefixlen 7f14 64 scopeid 0x0
        ether d4: 81: d7: 2f: 6d: e3 txqueuelen 1000 (Ethernet)
RX Packages 24381 bytes 25698606 (25.6 MB)
RX Errors 0 Aborted 0 exceed 0 image 0
TX packets 11939 bytes 1708630 (1.7 MB)
TX errors 0 missed 0 exceedances 0 carrier 0 collisions 0

lo: flags = 73  Mtu 65536
inet network mask 127.0.0.1 255.0.0.0
inet6 :: 1 prefixlen 128 scopeid 0x10
        loop txqueuelen 1000 (local loop)
RX Packets of 6442 bytes 414119 (414.1 KB)
RX Errors 0 Aborted 0 exceed 0 image 0
TX Packets 6442 bytes 414119 (414.1 KB)
TX errors 0 missed 0 exceedances 0 carrier 0 collisions 0

iwconfig
##########################################
wlp2s0 ESSIE IEEE 802.11: off / any
Mode: Managed access point: Tx-Power not associated = disabled
Short throws limit: 7 RTS thr: off Fragment thr: off
Food Management: on

cat /etc/resolv.conf
(This is a file with a symlink to /run/systemd/resolve/stub-resolv.conf)
#########################################
# This file is managed by man: systemd-resol (8). Not modified.
#
# This is a dynamic resolv.conf file to connect local clients to
# systemd internal resolver DNS resolver resolved. This file lists all
# configured search domains.
#
# Run "systemd-resolution --status" to view details about the uplink DNS servers.
# currently in use.
#
# Third-party programs should not access this file directly, but only through the
# symlink at /etc/resolv.conf. To handle man: resolv.conf (5) in a different way,
# replace this symbolic link with a static file or another symbolic link.
#
# See man: systemd-resol.service (8) for details on the supported modes of
# operation for /etc/resolv.conf.

name server 127.0.0.53
search speedport.ip

Nmcli device show
#####################################
GENERAL.DEVICE: enxd481d72f6de3
GENERAL.TYPE: ethernet
GENERAL.HWADDR: D4: 81: D7: 2F: 6D: E3
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: wired_sandkaulbach
GENERAL.CON-PATH: / org / freedesktop / NetworkManager / ActiveConnection / 1
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]192.168.2.106/24
IP4.GATEWAY: 192.168.2.1
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.2.1, mt = 100
IP4.ROUTE[2]: dst = 192.168.2.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[3]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]192.168.2.1
IP4.DOMAIN[1]: speedport.ip
IP6.ADRESSE[1]: 2003: e3: bf1: fe3f: c4d0: c2ce: 83de: 6cff / 64
IP6.ADRESSE[2]: 2003: e3: bf1: fe3f: 3cf5: 137d: 588e: 7f14 / 64
IP6.ADRESSE[3]: fe80 :: 6c7b: cb8d: a686: 813b / 64
IP6.GATEWAY: fe80 :: 1
IP6.ROUTE[1]: dst = 2003: e3: bf1: fe3f :: / 64, nh = ::, mt = 100
IP6.ROUTE[2]: dst = :: / 0, nh = fe80 :: 1, mt = 100
IP6.ROUTE[3]: dst = ff00 :: / 8, nh = ::, mt = 256, table = 255
IP6.ROUTE[4]: dst = fe80 :: / 64, nh = ::, mt = 256
IP6.ROUTE[5]: dst = fe80 :: / 64, nh = ::, mt = 100
IP6.DNS[1]: fe80 :: 1

GENERAL.DEVICE: docker0
GENERAL.TYPE: bridge
GENERAL.HWADDR: 02: 42: 4B: 96: 1E: B5
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: docker0
GENERAL.CON-PATH: / org / freedesktop / NetworkManager / ActiveConnection / 2
IP4.ADDRESS[1]172.17.0.1/16
IP4.GATEWAY: -
IP4.ROUTE[1]: dst = 172.17.0.0/16, nh = 0.0.0.0, mt = 0
IP6.GATEWAY: -

GENERAL.DEVICE: wlp2s0
GENERAL.TYPE: wifi
GENERAL.HWADDR: 14: AB: C5: D0: E8: E1
GENERAL.MTU: 1500
GENERAL.STATE: 20 (unavailable)
GENERAL.CONNECTION: -
GENERAL.CON-PATH: -

GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00: 00: 00: 00: 00: 00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (not managed)
GENERAL.CONNECTION: -
GENERAL.CON-PATH: -
IP4.ADDRESS[1]127.0.0.1/8
IP4.GATEWAY: -
IP6.ADRESSE[1]: :: 1/128
IP6.GATEWAY: -

iptables
#############################################
INPUT string (ACCEPT policy)
target target target

Chain FORWARD (DROP policy)
target target target
DOCKER-USER all - anywhere from anywhere
DOCKER-INSULATION-STAGE-1 all - no matter where
ACCEPT everything - no matter where anywhere ctstate RELATED, ESTABLISHED
DOCKER all - anywhere - anywhere
ACCEPT everything - no matter where
ACCEPT everything - no matter where

OUTPUT string (ACCEPT policy)
target target target

Chain DOCKER (1 references)
target target target

Chain DOCKER-INSULATION-STAGE-1 (1 references)
target target target
DOCKER-INSULATION-STAGE-2 all - no matter where
RETURN everything - no matter where

Chain DOCKER-INSULATION-STAGE-2 (1 references)
target target target
DROP all-n 'anywhere where any where
RETURN everything - no matter where

Chain DOCKER-USER (1 references)
target target target
RETURN everything - no matter where

nslookup www.google.com
#############################################
Server: 127.0.0.53
Address: 127.0.0.53 # 53

Unauthorized response:
Name: www.google.com
Address: 216.58.212.228
Name: www.google.com
Address: 2a00: 1450: 400e: 803 :: 2004

ping www.google.com
##########################################

ping www.google.com
PING www.google.com (ams16s29-in-x04.1e100.net (2a00: 1450: 400e: 804 :: 2004)) 56 bytes of data
64 bytes of ams16s29-in-x04.1e100.net (2a00: 1450: 400e: 804 :: 2004): icmp_seq = 1 ttl = 57 times = 17.0 ms
64 bytes of ams16s29-in-x04.1e100.net (2a00: 1450: 400e: 804 :: 2004): icmp_seq = 2 ttl = 57 times = 17.7 ms
64 bytes of ams16s29-in-x04.1e100.net (2a00: 1450: 400e: 804 :: 2004): icmp_seq = 3 ttl = 57 times = 17.8 ms
64 bytes of ams16s29-in-x04.1e100.net (2a00: 1450: 400e: 804 :: 2004): icmp_seq = 4 ttl = 57 times = 16.9 ms
ping gooogle dns ##############################################
PING 8.8.8.8 (8.8.8.8) 56 (84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq = 1 ttl = 124 times = 10.4 ms
64 bytes from 8.8.8.8: icmp_seq = 2 ttl = 124 times = 10.9 ms
64 bytes from 8.8.8.8: icmp_seq = 3 ttl = 124 times = 9.73 ms
64 bytes from 8.8.8.8: icmp_seq = 4 ttl = 124 times = 9.85 ms
64 bytes from 8.8.8.8: icmp_seq = 5 ttl = 124 times = 10.1 ms
wget google ###########################################
--2018-12-09 01: 39: 17-- http://www.google.com/
Resolution on www.google.com (www.google.com) ... 2a00: 1450: 400e: 804 :: 2004, 172.217.17.36
Login to www.google.com (www.google.com) | 2a00: 1450: 400e: 804 :: 2004 |: 80 ... connected.
HTTP request sent, waiting for reply ... 200 OK
Length: unspecified [text/html]
Registration in: 'index.html.3'

index.html.3[[[[<=>                                                                                                             ]10.84K --.- KB / s in 0.003s

2018-12-09 01:39:17 (3.20 MB / s) - "index.html.3" saved [11097]

to dig www.google.com
##########################################


; << >> DiG 9.11.3-1ubuntu1.2-Ubuntu << >> www.google.com
;; global options: + cmd
;; Do you have the answer:
;; - >> HEADER << - opcode: QUERY, status: NOERROR, id: 23981
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; PSEUDOSECTION OPT:
; EDNS: version: 0, flags:; PNU: 65494
;; SECTION QUESTION:
www.google.com. IN ONE

;; SECTION RESPONSE:
www.google.com. 0 IN A 216.58.212.228

;; Query time: 0 msec
;; SERVER: 127.0.0.53 # 53 (127.0.0.53)
;; WHEN: Sun Dec. 09 01:40:40 CET 2018
;; MSG SIZE rcvd: 59

netstat -nr
##############################################
Kernel IP routing table
MSS window destination gateway mask flags for irace
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 enxd481d72f6de3
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 enxd481d72f6de3
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enxd481d72f6de3

route -n
###############################################
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref. Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 100 0 0 enxd481d72f6de3
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enxd481d72f6de3
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 enxd481d72f6de3

sudo tracepath www.google.com
(FAILED - stopped with Ctrl-C)
#######################################
1 ?: [LOCALHOST]                        0.036ms pmtu 1492
1: p200300E30BF1FE3FBE30D9FFFE857D72.dip0.t-ipconnect.de 1.101ms
1: p200300E30BF1FE3FBE30D9FFFE857D72.dip0.t-ipconnect.de 1.027ms
2: ^ C

Please let me know if you need more information.