Need help creating a network bridge

My Motherboard has two ethernet ports; a 2.5g and a 1000mb one. I only have one ethernet cable to my room, so if I want two devices in my room to have ethernet, I need something to act as a network switch.

I used to be able to create a “Wired Ethernet (shared)” and the nintendo would get internet just fine, but this is no longer working, or there is something set up in a way that prevents it from working properly.

I would much prefer to create a virtual bridge connection, but both for this and the shared wired ethernet it just hangs on “setting network access” in the connections menu after I select the slave and then turn it on. Eventually it times out and I get the notification "IP configuration was unavailable " for the bridge.

$ inxi --admin --verbosity=7 --filter --no-host --width 
System:
  Kernel: 5.14.10-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.14-x86_64 
  root=UUID=ab97410d-219d-4b6b-a11e-ecd4e63ac169 rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: ASUSTeK model: ROG CROSSHAIR VIII HERO (WI-FI) 
  v: Rev X.0x serial: <filter> UEFI: American Megatrends v: 2103 
  date: 06/19/2020 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 62.72 GiB used: 3.94 GiB (6.3%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 12-Core model: AMD Ryzen 9 3900X bits: 64 type: MT MCP arch: Zen 2 
  family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701021 cache: 
  L2: 6 MiB bogomips: 182125 
  Speed: 2381 MHz min/max: 2200/3800 MHz boost: enabled Core speeds (MHz): 
  1: 2381 2: 2051 3: 2194 4: 2199 5: 3580 6: 2050 7: 2053 8: 2191 9: 2195 
  10: 2196 11: 2144 12: 3673 13: 2055 14: 2166 15: 2194 16: 3018 17: 2082 
  18: 2049 19: 3597 20: 2052 21: 2162 22: 4122 23: 2132 24: 2195 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibs irperf lahf_lm lbrv lm 
  mba mca mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc 
  nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq 
  pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse 
  pse36 rapl rdpid rdpru rdrand rdseed rdt_a rdtscp rep_good sep sev sev_es 
  sha_ni skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 
  stibp succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_spec_ctrl 
  v_vmsave_vmload vgif vmcb_clean vme vmmcall wbnoinvd wdt xgetbv1 xsave 
  xsavec xsaveerptr xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3070] 
  vendor: PC Partner Limited / Sapphire driver: nvidia v: 470.63.01 
  alternate: nouveau,nvidia_drm bus-ID: 0b:00.0 chip-ID: 10de:2484 
  class-ID: 0300 
  Device-2: ARC Camera type: USB driver: snd-usb-audio,uvcvideo 
  bus-ID: 3-2.1:4 chip-ID: 05a3:9331 class-ID: 0102 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: 
  loaded: nvidia display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 5120x1440 s-dpi: 121 s-size: 1073x302mm (42.2x11.9") 
  s-diag: 1115mm (43.9") 
  Monitor-1: DP-2 res: 2560x1440 dpi: 123 size: 527x296mm (20.7x11.7") 
  diag: 604mm (23.8") 
  Monitor-2: DP-4 res: 2560x1440 dpi: 123 size: 527x296mm (20.7x11.7") 
  diag: 604mm (23.8") 
  OpenGL: renderer: NVIDIA GeForce RTX 3070/PCIe/SSE2 
  v: 4.6.0 NVIDIA 470.63.01 direct render: Yes 
Audio:
  Device-1: NVIDIA GA104 High Definition Audio 
  vendor: PC Partner Limited / Sapphire driver: snd_hda_intel v: kernel 
  bus-ID: 0b:00.1 chip-ID: 10de:228b class-ID: 0403 
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus-ID: 0d:00.4 chip-ID: 1022:1487 
  class-ID: 0403 
  Device-3: ARC Camera type: USB driver: snd-usb-audio,uvcvideo 
  bus-ID: 3-2.1:4 chip-ID: 05a3:9331 class-ID: 0102 serial: <filter> 
  Sound Server-1: ALSA v: k5.14.10-1-MANJARO running: yes 
  Sound Server-2: sndio v: N/A running: no 
  Sound Server-3: JACK v: 1.9.19 running: no 
  Sound Server-4: PulseAudio v: 15.0 running: no 
  Sound Server-5: PipeWire v: 0.3.38 running: yes 
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel 
  port: e000 bus-ID: 05:00.0 chip-ID: 10ec:8125 class-ID: 0200 
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel 
  port: d000 bus-ID: 06:00.0 chip-ID: 8086:1539 class-ID: 0200 
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  Device-3: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: d000 
  bus-ID: 07:00.0 chip-ID: 8086:2723 class-ID: 0280 
  IF: wlp7s0 state: down mac: <filter> 
  IF-ID-1: bridge0 state: up speed: 1000 Mbps duplex: unknown mac: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-6:5 
  chip-ID: 8087:0029 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 6.6 TiB used: 56.79 GiB (0.8%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:5 model: PCIe SSD size: 238.47 GiB 
  block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
  type: SSD serial: <filter> rev: ECFM22.6 temp: 27.9 C scheme: GPT 
  ID-2: /dev/nvme1n1 maj-min: 259:0 model: PCIe SSD size: 931.51 GiB 
  block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 
  type: SSD serial: <filter> rev: EGFM11.0 temp: 38.9 C scheme: GPT 
  ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DM001-1ER164 
  size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 7200 serial: <filter> rev: CC25 scheme: GPT 
  ID-4: /dev/sdb maj-min: 8:16 vendor: Hitachi model: HUS724040ALE641 
  size: 3.64 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  type: HDD rpm: 7200 serial: <filter> rev: A5F0 scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 166.25 GiB size: 162.64 GiB (97.83%) 
  used: 56.79 GiB (34.9%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:7 
  label: N/A uuid: ab97410d-219d-4b6b-a11e-ecd4e63ac169 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 280 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:6 label: N/A 
  uuid: F49E-8144 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 71.92 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p3 maj-min: 259:8 label: N/A 
  uuid: fe86311b-6721-4cfd-b9bc-6676c056c68c 
Unmounted:
  ID-1: /dev/nvme1n1p1 maj-min: 259:1 size: 529 MiB fs: ntfs label: Recovery 
  uuid: A0CEC91DCEC8ED1A 
  ID-2: /dev/nvme1n1p2 maj-min: 259:2 size: 100 MiB fs: vfat label: N/A 
  uuid: 10C9-47BA 
  ID-3: /dev/nvme1n1p3 maj-min: 259:3 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-4: /dev/nvme1n1p4 maj-min: 259:4 size: 930.88 GiB fs: ntfs label: N/A 
  uuid: 084EC9E74EC9CE1E 
  ID-5: /dev/sda1 maj-min: 8:1 size: 1.82 TiB fs: ntfs label: externalData 
  uuid: 2652FC3C52FC11F3 
  ID-6: /dev/sdb1 maj-min: 8:17 size: 3.64 TiB fs: ext4 label: external2 
  uuid: 5f9f058d-11b9-43c9-af07-0c8a1688b5b4 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-2: 1-1:2 info: Realtek RTS5411 Hub ports: 3 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 0bda:5411 class-ID: 0900 
  Device-1: 1-1.3:4 info: Realtek BillBoard Device type: Billboard driver: N/A 
  interfaces: 1 rev: 2.0 speed: 480 Mb/s chip-ID: 0bda:5418 class-ID: 1100 
  serial: <filter> 
  Hub-3: 1-5:3 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0610 class-ID: 0900 
  Device-1: 1-5.3:6 info: ASUSTek AURA LED Controller type: HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 16mA 
  chip-ID: 0b05:18f3 class-ID: 0300 serial: <filter> 
  Device-2: 1-6:5 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029 
  class-ID: e001 
  Hub-4: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-5: 2-3:2 info: Realtek Hub ports: 2 rev: 3.1 speed: 5 Gb/s 
  chip-ID: 0bda:0411 class-ID: 0900 
  Hub-6: 3-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-7: 3-2:2 info: ASMedia ASM1074 High-Speed hub ports: 4 rev: 2.1 
  speed: 480 Mb/s power: 100mA chip-ID: 174c:2074 class-ID: 0900 
  Device-1: 3-2.1:4 info: ARC Camera type: Video,Audio 
  driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s 
  power: 200mA chip-ID: 05a3:9331 class-ID: 0102 serial: <filter> 
  Device-2: 3-5:3 info: Cooler Master AMD SR4 lamplight Control 
  type: Keyboard,HID driver: hid-generic,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 2516:0051 class-ID: 0300 
  Hub-8: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-9: 4-2:2 info: ASMedia ASM1074 SuperSpeed hub ports: 4 rev: 3.0 
  speed: 5 Gb/s power: 8mA chip-ID: 174c:3074 class-ID: 0900 
  Hub-10: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-11: 5-1:2 info: Texas Instruments TUSB8041 4-Port Hub ports: 4 rev: 2.1 
  speed: 480 Mb/s chip-ID: 0451:8142 class-ID: 0900 
  Hub-12: 5-2:3 info: Texas Instruments TUSB8041 4-Port Hub ports: 4 rev: 2.1 
  speed: 480 Mb/s chip-ID: 0451:8142 class-ID: 0900 
  Hub-13: 5-4:7 info: Realtek RTS5411 Hub ports: 4 rev: 2.1 speed: 480 Mb/s 
  chip-ID: 0bda:5411 class-ID: 0900 
  Device-1: 5-4.1:8 info: SINOWEALTH Game Mouse type: Mouse,Keyboard 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 12 Mb/s 
  power: 256mA chip-ID: 258a:1007 class-ID: 0301 
  Device-2: 5-4.4:9 info: Microdia Redragon Mitra RGB Keyboard 
  type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 2.0 
  speed: 12 Mb/s power: 400mA chip-ID: 0c45:5004 class-ID: 0301 
  Hub-14: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 
  speed: 10 Gb/s chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-15: 6-1:2 info: Texas Instruments TUSB8041 4-Port Hub ports: 4 rev: 3.0 
  speed: 5 Gb/s chip-ID: 0451:8140 class-ID: 0900 
  Hub-16: 6-2:3 info: Texas Instruments TUSB8041 4-Port Hub ports: 4 rev: 3.0 
  speed: 5 Gb/s chip-ID: 0451:8140 class-ID: 0900 
  Hub-17: 6-4:5 info: Realtek Hub ports: 4 rev: 3.1 speed: 5 Gb/s 
  chip-ID: 0bda:0411 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 63.6 C mobo: N/A gpu: nvidia temp: 37 C 
  Fan Speeds (RPM): N/A gpu: nvidia fan: 37% 
Info:
  Processes: 454 Uptime: 22m wakeups: 0 Init: systemd v: 249 tool: systemctl 
  Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1356 lib: 394 
  flatpak: 0 Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.06 

Can you try this?
Up
#!/usr/bin/env bash
nmcli con add ifname br10 type bridge con-name br10
nmcli con add type bridge-slave ifname enp3s0 master br10
nmcli con modify br10 bridge.stp no
nmcli con down “Conexión cableada 1”
nmcli con up br10
ip a s br10

Down
!/usr/bin/env bash
nmcli con down br10
nmcli con delete nmcli -f NAME,UUID con | grep -i bridge-slave-enp3s0 | awk '{print $2 }'
nmcli con delete nmcli -f NAME,UUID con | grep -i br10 | awk '{print $2 }'
nmcli con up enp3s0
ip a s

I normally hate these responses but wouldn’t it be better and more efficient to buy a small switch?

  nmcli con down “Conexión cableada 1”
Error: '“Conexión' is not an active connection.
Error: 'cableada' is not an active connection.
Error: '1”' is not an active connection.
Error: no active connection provided.

was that autocorrect?

Edit: nevermind, you meant my active ethernet connection to the internet

two things, did you mean enp5s0 or enp6so when you said enp3s0, because I have no enp3s0 connection. (the 5s0 is the internet, 6s0 is to the other device)

also,

# ip a s br10
Device "br10" does not exist.

#  nmcli con show

NAME                           UUID         TYPE      DEVICE 
localinternetname              uuidwashere  ethernet  enp5s0 
br10                           uuidwashere  bridge    --     
bridge-slave-enp3s0            uuidwashere  ethernet  --     
localinternetname              uuidwashere  wifi      --     
localinternetname              uuidwashere  wifi      --     

#  ip a s br10
Device "br10" does not exist.

Actually yeah can you just make the entire message codeblocks, it seems the latter half is entirely broken by it

Both of these devices are actually on my desk; so it would just add clutter to the setup. I don’t quite see how it would be more efficient.

I think the first thing you should understand is that enp3s0 the name of “my” device on my computer. On your pc it will be with another name.

Regarding the shutdown of the bridge, it is not broken. I have raised it as br10, but you can raise it as br ??? (1000), for example.
For more questions we will always have Network bridge - ArchWiki and NetworkManager - ArchWiki

The best thing about this system is that it is on demand. But, hey, there’s no accounting for taste

All the best. Thx

Yup, I have no idea why; but when I set it up with ip rather than nmcli or networkmanager, it works. it seems that they’re identical otherwise from what I could see in the connections system settings module. Thanks! Sorry for the confusion there

Alright, nevermind. It seems whenever I have the bridge properly set up in a way that my nintendo gets internet via ethernet, I can no longer get internet on my desktop PC. Is this working as usual? Do I have no way to get internet to both devices at the same time? I’m about willing to let someone do this for me or go out and buy a physical network switch to get internet to both devices, this is getting kind of ridiculous. Why was this so much easier on windows?..

https://askubuntu.com/questions/843344/share-ethernet-connection-with-second-nic-smarttv according to this it should literally be that simple. But when I click connect after setting this up, these notifications get vomited at me and it immediately disconnects

You didn’t mention that you set up a firewall.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.