Problem with second interface ethernet usb

mov45

Member
Mar 29, 2022
29
1
6
Hi in my server I have got second interface ethernet on usb (linksys). Do not know why proxmox down this interface for 2-3 hours running. First interface working fine but this on usb not. I try everything what I know. Also I try usb control power for this ethernet card.
echo "0" > "/sys/bus/usb/devices/usbX/power/autosuspend"
echo "auto" > "/sys/bus/usb/devices/usbX/power/level"
Got a temporary solution
ifup -a -this woke up that card, but what to do to figure out this problem?
 
hi,

Do not know why proxmox down this interface for 2-3 hours running.
what is the interface called? if you check ip a you should see the name.

ifup -a -this woke up that card, but what to do to figure out this problem?
you can look inside dmesg to see if there are any errors related to the interface.

f.e. if your interface is called enp5s0 you can try: dmesg | grep enp5s0 -C 5
if you know which driver module it's loading you can also grep for that.

i would also check the /var/log/syslog as well

hope this helps!
 
  • Like
Reactions: mov45
Thanks for answer,
this is from dmesg
Code:
root@local:~# dmesg | grep enxc05627907104 -C 5
[    4.102216] intel_rapl_common: Found RAPL domain uncore
[    4.102217] intel_rapl_common: Found RAPL domain dram
[    4.102218] intel_rapl_common: Found RAPL domain psys
[    4.103545] i915 0000:00:02.0: vgaarb: deactivate vga console
[    4.103997] r8152 2-4:1.0 eth0: v1.12.11
[    4.109920] r8152 2-4:1.0 enxc05627907104: renamed from eth0
[    4.123557] iwlwifi 0000:01:00.0: base HW address: f8:59:71:28:27:0b
[    4.127172] Adding 8388604k swap on /dev/mapper/pve-swap.  Priority:-2 extents:1 across:8388604k SSFS
[    4.155985] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    4.157001] i915 0000:00:02.0: [drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
[    4.198445] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
--
[    4.569618] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[    4.569621] softdog:              soft_reboot_cmd=<not set> soft_active_on_boot=0
[    4.881944] vmbr0: port 1(eno1) entered blocking state
[    4.881948] vmbr0: port 1(eno1) entered disabled state
[    4.881998] device eno1 entered promiscuous mode
[    5.120888] vmbr2: port 1(enxc05627907104) entered blocking state
[    5.120891] vmbr2: port 1(enxc05627907104) entered disabled state
[    5.120958] device enxc05627907104 entered promiscuous mode
[    5.132142] vmbr2: port 1(enxc05627907104) entered blocking state
[    5.132145] vmbr2: port 1(enxc05627907104) entered forwarding state
[    5.487096] kauditd_printk_skb: 4 callbacks suppressed
[    5.487098] audit: type=1400 audit(1653417938.346:15): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/bin/lxc-start" pid=790 comm="apparmor_parser"
[    5.504608] audit: type=1400 audit(1653417938.366:16): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default" pid=801 comm="apparmor_parser"
[    5.504613] audit: type=1400 audit(1653417938.366:17): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-cgns" pid=801 comm="apparmor_parser"
[    5.504615] audit: type=1400 audit(1653417938.366:18): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-mounting" pid=801 comm="apparmor_parser"
[    5.504618] audit: type=1400 audit(1653417938.366:19): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-nesting" pid=801 comm="apparmor_parser"
[    5.907413] vmbr2: port 1(enxc05627907104) entered disabled state
[    6.650841] r8152 2-4:1.0 enxc05627907104: Promiscuous mode enabled
[    6.650961] r8152 2-4:1.0 enxc05627907104: carrier on
[    6.651203] vmbr2: port 1(enxc05627907104) entered blocking state
[    6.651206] vmbr2: port 1(enxc05627907104) entered forwarding state
[    7.186566] bpfilter: Loaded bpfilter_umh pid 987
[    7.186811] Started bpfilter
[    7.709564] e1000e 0000:00:1f.6 eno1: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
[    7.709645] vmbr0: port 1(eno1) entered blocking state
[    7.709647] vmbr0: port 1(eno1) entered forwarding state
--
[   74.638939] fwbr100i0: port 2(tap100i0) entered disabled state
[   74.639029] fwbr100i0: port 2(tap100i0) entered blocking state
[   74.639030] fwbr100i0: port 2(tap100i0) entered forwarding state
[17943.430273] usb 2-4: USB disconnect, device number 2
[17943.430594] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[17943.430697] vmbr2: port 1(enxc05627907104) entered disabled state
[17943.430945] device enxc05627907104 left promiscuous mode
[17943.430947] vmbr2: port 1(enxc05627907104) entered disabled state
[17943.770643] usb 2-4: new SuperSpeed USB device number 3 using xhci_hcd
[17943.794343] usb 2-4: New USB device found, idVendor=13b1, idProduct=0041, bcdDevice=30.00
[17943.794347] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[17943.794348] usb 2-4: Product: Linksys USB3GIGV1
[17943.794350] usb 2-4: Manufacturer: Linksys
[17943.794351] usb 2-4: SerialNumber: 000001000000
[17943.930865] usb 2-4: reset SuperSpeed USB device number 3 using xhci_hcd
[17943.982389] r8152 2-4:1.0: load rtl8153a-3 v2 02/07/20 successfully
[17944.012555] r8152 2-4:1.0 eth0: v1.12.11
[17944.020181] r8152 2-4:1.0 enxc05627907104: renamed from eth0
[54211.478388] vmbr0: the hash_elasticity option has been deprecated and is always 16
[54211.585879] vmbr1: the hash_elasticity option has been deprecated and is always 16
[54211.770205] vmbr2: the hash_elasticity option has been deprecated and is always 16
[54211.773197] vmbr2: port 1(enxc05627907104) entered blocking state
[54211.773200] vmbr2: port 1(enxc05627907104) entered disabled state
[54211.773267] device enxc05627907104 entered promiscuous mode
[54211.780775] vmbr2: port 1(enxc05627907104) entered blocking state
[54211.780778] vmbr2: port 1(enxc05627907104) entered forwarding state
[54211.780955] vmbr2: port 1(enxc05627907104) entered disabled state
[54211.808688] r8152 2-4:1.0 enxc05627907104: Promiscuous mode enabled
[54211.808807] r8152 2-4:1.0 enxc05627907104: carrier on
[54211.809049] vmbr2: port 1(enxc05627907104) entered blocking state
[54211.809051] vmbr2: port 1(enxc05627907104) entered forwarding state

this is from syslog

Code:
root@local:~# cat /var/log/syslog | grep enxc05627907104

May 25 11:49:05 local kernel: [54211.773197] vmbr2: port 1(enxc05627907104) entered blocking state
May 25 11:49:05 local kernel: [54211.773200] vmbr2: port 1(enxc05627907104) entered disabled state
May 25 11:49:05 local kernel: [54211.773267] device enxc05627907104 entered promiscuous mode
May 25 11:49:05 local kernel: [54211.780775] vmbr2: port 1(enxc05627907104) entered blocking state
May 25 11:49:05 local kernel: [54211.780778] vmbr2: port 1(enxc05627907104) entered forwarding state
May 25 11:49:05 local kernel: [54211.780955] vmbr2: port 1(enxc05627907104) entered disabled state
May 25 11:49:05 local kernel: [54211.808688] r8152 2-4:1.0 enxc05627907104: Promiscuous mode enabled
May 25 11:49:05 local kernel: [54211.808807] r8152 2-4:1.0 enxc05627907104: carrier on
May 25 11:49:05 local kernel: [54211.809049] vmbr2: port 1(enxc05627907104) entered blocking state
May 25 11:49:05 local kernel: [54211.809051] vmbr2: port 1(enxc05627907104) entered forwarding state
 
ethernet on usb (linksys)
it could be an issue with the realtek drivers (r8152) but that's just a wild guess.

what is your kernel version? pveversion or uname -r should tell you.

also what does your /etc/network/interfaces file look like?
 
kernel
5.13.19-2-pve

Code:
oot@local:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface eno1 inet manual

auto enxc05627907104
iface enxc05627907104 inet manual

auto vmbr0
iface vmbr0 inet static
        address 10.10.0.7/24
        gateway 10.10.0.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge-ports none
        bridge-stp off
        bridge-fd 0

auto vmbr2
iface vmbr2 inet static
        address 10.10.20.2/24
        bridge-ports enxc05627907104
        bridge-stp off
        bridge-fd 0
 
5.13.19-2-pve
have you tried upgrading the kernel package to see if it makes any difference?
you can try installing pve-kernel-5.15 followed by a reboot, and report back here if the issue is still there
 
Hi if you are still interested, I solved my problem -how? I throw to garbage my linksys usb3gig and installed ugreen usb new card - perfectly working
 
[17943.430273] usb 2-4: USB disconnect, device number 2
I encountered almost the same problem. It's most likely a hardware problem.
I added a udev rule file to temporarily solve this problem.
Code:
root@pve:/sys/bus/usb/devices# cat /etc/udev/rules.d/70-local-net-names.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="c8:4d:44:29:77:42", NAME="usb0", RUN+="/usr/sbin/ifup usb0"
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!