coolsnowwolf / lede

Lean's LEDE source
Other
29.53k stars 19.5k forks source link

偶尔会出现LAN口失去连接的情况,几秒钟后恢复 #8590

Closed tallman1989 closed 2 years ago

tallman1989 commented 2 years ago

反馈bug/问题模板,提建议请删除

1.关于你要提交的问题

Q:是否搜索了issue (使用 "x" 选择)

2. 详细叙述

(1) 具体问题

A:在低负载时,一般是在看视频或玩游戏时,突然会出现LAN口失去连接的情况,约几秒钟后恢复。事后查看WAN口没断网,只是LAN口掉了。

(2) 路由器型号和固件版本

A:X86的小主机,内核5.4和5.10都出现问题。目前打开了端口转发,没有编译docker。

(3) 详细日志

A: Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.617143] ------------[ cut here ]------------ Mon Jan 3 12:47:39 2022 kern.info kernel: [ 3150.617254] NETDEV WATCHDOG: eth0 (r8168): transmit queue 0 timed out Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.617403] WARNING: CPU: 1 PID: 0 at dev_watchdog+0x221/0x230 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.617515] Modules linked in: rtl8821ae rtl8192se rtl8192de rtl8192cu rtl8192ce rtl8192c_common rtl_usb rtl_pci rt2800usb rt2800lib pppoe ppp_async iwlmvm iwldvm cdc_mbim btcoexist ueagle_atm sr9700 speedtch smsc95xx smsc75xx sierra_net rtlwifi rtl8xxxu rtl8821cu rtl8812au rtl8187 rt73usb rt61pci rt2x00usb rt2x00pci rt2x00mmio rt2x00lib rndis_host r8723bs qmi_wwan pppox ppp_mppe ppp_generic plusb mcs7830 mac80211 kalmia iwlwifi ipt_REJECT huawei_cdc_ncm dm9601 cxacru cfg80211 cdc_subset cdc_ncm cdc_ether cdc_eem ax88179_178a asix aqc111 amdgpu zstd yealink xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_socket xt_recent xt_quota xt_policy xt_pkttype xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_iprange xt_hl xt_helper xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_cgroup xt_addrtype xt_TPROXY xt_TCPMSS xt_REDIRECT xt_NETMAP xt_MASQUERADE xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY via_velocity via_rhine vhci_hcd Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.617672] usbnet usbmon usblp usbip_host usbip_core usbatm ums_usbat ums_sddr55 ums_sddr09 ums_karma ums_jumpshot ums_isd200 ums_freecom ums_datafab ums_cypress ums_alauda tulip ts_fsm ts_bm tcp_bbr slhc sky2 skge sis900 sis190 sfc_falcon sfc sch_cake rtl8150 r8168 r8152 r8125 r6040 qlcnic pegasus pcnet32 ntfs3 niu nft_reject_ipv6 nft_reject_ipv4 nft_reject_inet nft_reject_bridge nft_reject nft_redir nft_quota nft_objref nft_numgen nft_nat nft_meta_bridge nft_masq nft_log nft_limit nft_hash nft_fwd_netdev nft_dup_netdev nft_ct nft_counter nft_chain_nat nf_tproxy_ipv6 nf_tproxy_ipv4 nf_tables nf_socket_ipv6 nf_socket_ipv4 nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_pptp nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_log_ipv4 nf_flow_table nf_dup_netdev nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_pptp nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conncount ne2k_pci Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.619399] mmc_spi mlx5_core mlx4_en mlx4_core mdio_gpio mdio_bitbang macvlan lzo kvm_intel kvm kaweth irqbypass ipvlan iptable_raw iptable_nat iptable_mangle iptable_filter ipt_ah ipt_ECN ipheth ip_tables igc iavf i40e hso hid_cp2112 gpu_sched forcedeth ethoc et131x e1000e e100 crc7 crc_itu_t crc_ccitt compat cm109 chaoskey cdc_wdm cdc_acm bnxt_en bnx2x bnx2 be2net atl2 atl1e atl1c atl1 alx 8390 8139too 8139cp fuse act_connmark sch_tbf sch_ingress sch_htb sch_hfsc em_u32 cls_u32 cls_tcindex cls_route cls_matchall cls_fw cls_flow cls_basic act_skbedit act_mirred act_gact evdev lp i2c_dev ledtrig_usbport spi_ks8995 siit ppdev parport cryptodev xt_set ip_set_list_set ip_set_hash_netportnet ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink rtl8366s rtl8366rb rtl8306 ip6table_nat Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.621146] nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip6t_NPT ip17xx b53_mdio b53_common nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6 nfsv4 nfsv3 nfsd nfs nfs_ssc bonding 3c59x ip_gre gre ixgbevf ixgbe igbvf e1000 amd_xgbe mdio_devres ifb dummy sit mdio ipcomp6 xfrm6_tunnel esp6 ah6 xfrm4_tunnel ipcomp esp4 ah4 tunnel6 tunnel4 ip_tunnel hfcpci hfcmulti rpcsec_gss_krb5 auth_rpcgss oid_registry tun snd_rawmidi snd_seq_device snd_pcm_oss snd_mixer_oss snd_hwdep snd_compress snd_pcm snd_timer snd soundcore mISDN_dsp l1oip mISDN_core xfrm_user xfrm_ipcomp af_key xfrm_algo vfat fat lockd sunrpc grace cifs dns_resolver dm_mirror dm_region_hash dm_log dm_crypt br2684 atm raid456 async_raid6_recov async_pq async_xor async_memcpy async_tx raid10 raid1 raid0 md_mod nls_utf8 nls_iso8859_1 nls_cp437 natsemi eeprom_93cx6 ena wp512 twofish_avx_x86_64 twofish_x86_64_3way twofish_x86_64 twofish_common tgr192 tea serpent_avx2 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.622896] serpent_avx_x86_64 serpent_generic khazad cast6_avx_x86_64 cast6_generic cast5_avx_x86_64 cast5_generic cast_common camellia_generic camellia_aesni_avx2 camellia_aesni_avx_x86_64 camellia_x86_64 blowfish_x86_64 blowfish_common anubis ecdh_generic ecc xcbc crypto_user algif_skcipher algif_rng algif_hash algif_aead af_alg sha512_ssse3 sha512_generic sha256_ssse3 sha1_ssse3 seqiv jitterentropy_rng drbg rmd160 pcbc michael_mic md5 md4 kpp rsa_generic mpi asn1_decoder akcipher ccp sha256_generic sha1_generic libsha256 hmac fcrypt echainiv des_generic libdes deflate cts cmac cbc authenc arc4 crypto_acompress dm_mod dax uas sdhci_pltfm xhci_plat_hcd dwc3 dwc2 roles rtl8367b swconfig rtl8366_smi fsl_mph_dr_of ehci_platform ehci_fsl igb exfat btrfs zstd_decompress zstd_compress xxhash xor raid6_pq lzo_decompress lzo_compress libcrc32c antfs tg3 b44 ssb ptp realtek broadcom bcm_phy_lib bcm84881 pps_core mii libphy Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.626108] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.88 #0 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.626224] Hardware name: To be filled by O.E.M. To be filled by O.E.M./CRESCENTBAY, BIOS 5.6.5 08/29/2015 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.626411] RIP: 0010:dev_watchdog+0x221/0x230 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.626501] Code: 00 49 63 4d 28 eb 90 4c 89 e7 c6 05 19 b6 ad 00 01 e8 33 03 fc ff 89 d9 4c 89 e6 48 c7 c7 f8 25 0c 82 48 89 c2 e8 f4 8a 13 00 <0f> 0b eb be 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 49 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.626851] RSP: 0018:ffffc90000016ea8 EFLAGS: 00010296 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.626955] RAX: 0000000000000039 RBX: 0000000000000000 RCX: 0000000000000027 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.627109] RDX: 0000000000000027 RSI: ffffc90000016ce0 RDI: ffff88810029ca28 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.627246] RBP: ffffc90000016ed8 R08: 0000000000000000 R09: c0000000ffffefff Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.627382] R10: 0000000000000001 R11: ffffc90000016c88 R12: ffff888008598000 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.627519] R13: ffff888008598480 R14: 0000000000000001 R15: 0000000000000001 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.627657] FS: 0000000000000000(0000) GS:ffff888100280000(0000) knlGS:0000000000000000 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.627811] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.627923] CR2: 00007f64eb9e76c8 CR3: 000000000220a006 CR4: 00000000001706e0 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628059] Call Trace: Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628111] Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628158] ? pfifo_fast_enqueue+0x150/0x150 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628249] call_timer_fn.isra.40+0x16/0x80 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628336] run_timer_softirq+0x270/0x290 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628419] ? tick_program_event+0x3f/0x70 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628509] __do_softirq+0xc9/0x20e Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628584] asm_call_irq_on_stack+0x12/0x20 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628668] Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628718] do_softirq_own_stack+0x38/0x50 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628807] irq_exit_rcu+0x6a/0x70 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628882] sysvec_apic_timer_interrupt+0x3a/0x90 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.628979] asm_sysvec_apic_timer_interrupt+0x12/0x20 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.629087] RIP: 0010:cpuidle_enter_state+0xca/0x2e0 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.629185] Code: c3 e8 6a 21 96 ff 80 7d d7 00 74 17 9c 58 0f 1f 44 00 00 f6 c4 02 0f 85 c3 01 00 00 31 ff e8 1d 68 9a ff fb 66 0f 1f 44 00 00 <45> 85 ff 0f 88 c4 00 00 00 49 63 d7 48 2b 5d c8 48 8d 04 52 48 8d Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.629534] RSP: 0018:ffffc9000009be70 EFLAGS: 00000246 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.629637] RAX: ffff8881002a50c0 RBX: 000002dd8f69f273 RCX: 000000000000001f Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.629774] RDX: 000002dd8f69f273 RSI: 000000004025ed2b RDI: 0000000000000000 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.629910] RBP: ffffc9000009bea8 R08: 0000000000000002 R09: 0000000000024940 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630046] R10: 000005bb50843350 R11: 0000000000000000 R12: ffff88807ae1a800 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630182] R13: 0000000000000003 R14: ffffffff822c9fe0 R15: 0000000000000003 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630323] cpuidle_enter+0x2f/0x40 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630401] call_cpuidle+0x1e/0x40 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630474] do_idle+0xe7/0x190 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630541] cpu_startup_entry+0x18/0x20 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630624] start_secondary+0xf0/0x100 Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630702] secondary_startup_64_no_verify+0xb0/0xbb Mon Jan 3 12:47:39 2022 kern.warn kernel: [ 3150.630803] ---[ end trace be2457318641dabc ]--- Mon Jan 3 12:47:39 2022 daemon.notice netifd: Network device 'eth0' link is down Mon Jan 3 12:47:39 2022 kern.info kernel: [ 3150.641261] br-lan: port 1(eth0) entered disabled state Mon Jan 3 12:47:40 2022 daemon.notice netifd: bridge 'br-lan' link is down Mon Jan 3 12:47:40 2022 daemon.notice netifd: Interface 'lan' has link connectivity loss Mon Jan 3 12:47:43 2022 kern.info kernel: [ 3154.552447] r8168: eth0: link up Mon Jan 3 12:47:43 2022 daemon.notice netifd: Network device 'eth0' link is up Mon Jan 3 12:47:43 2022 daemon.notice netifd: bridge 'br-lan' link is up Mon Jan 3 12:47:43 2022 daemon.notice netifd: Interface 'lan' has link connectivity Mon Jan 3 12:47:43 2022 kern.info kernel: [ 3154.553374] br-lan: port 1(eth0) entered blocking state Mon Jan 3 12:47:43 2022 kern.info kernel: [ 3154.553477] br-lan: port 1(eth0) entered forwarding state

tallman1989 commented 2 years ago

经这几天自己排查,发现原因了: 原来是DHCP问题。原来设定的是DHCP分配静态地址,应该是每隔6h,台式机或是其他设备更新IP地址租约时出错。把静态地址分配全部去掉就没事了。 发在这方便有同样问题的小伙伴搜索吧。