LINUX.ORG.RU

<NO-CARRIER,BROADCAST,MULTICAST,UP>

 ,


0

1

Дебиан 10. Иногда после загрузки нет сети. После перезагрузки появляется. Сейчас можно что либо узнать из логов, уже после того как небыло сети?

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:1d:7d:c7:be:43 brd ff:ff:ff:ff:ff:ff
root@debian:/var/log# dmesg | grep enp3s0
[    1.729977] r8169 0000:03:00.0 enp3s0: renamed from eth0
[   27.306132] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   27.406084] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   30.218085] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
[   30.218099] IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
root@debian:/var/log# lspci -k | grep Ethernet
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)
	Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet
root@debian:/var/log# systemctl list-units --type service --all | grep -i net
  networking.service                                loaded    active   exited  Raise network interfaces                                                        
  NetworkManager-wait-online.service                loaded    inactive dead    Network Manager Wait Online                                                     
  NetworkManager.service                            loaded    active   running Network Manager                                                                 
  systemd-networkd.service                          loaded    inactive dead    Network Service                                                                 
  systemd-timesyncd.service                         loaded    active   running Network Time Synchronization                                                    
root@debian:/var/log# 


Ответ на: комментарий от anonymous
# modinfo r8169
filename:       /lib/modules/4.19.0-16-amd64/kernel/drivers/net/ethernet/realtek/r8169.ko
firmware:       rtl_nic/rtl8107e-2.fw
firmware:       rtl_nic/rtl8107e-1.fw
firmware:       rtl_nic/rtl8168h-2.fw
firmware:       rtl_nic/rtl8168h-1.fw
firmware:       rtl_nic/rtl8168g-3.fw
firmware:       rtl_nic/rtl8168g-2.fw
firmware:       rtl_nic/rtl8106e-2.fw
firmware:       rtl_nic/rtl8106e-1.fw
firmware:       rtl_nic/rtl8411-2.fw
firmware:       rtl_nic/rtl8411-1.fw
firmware:       rtl_nic/rtl8402-1.fw
firmware:       rtl_nic/rtl8168f-2.fw
firmware:       rtl_nic/rtl8168f-1.fw
firmware:       rtl_nic/rtl8105e-1.fw
firmware:       rtl_nic/rtl8168e-3.fw
firmware:       rtl_nic/rtl8168e-2.fw
firmware:       rtl_nic/rtl8168e-1.fw
firmware:       rtl_nic/rtl8168d-2.fw
firmware:       rtl_nic/rtl8168d-1.fw
license:        GPL
softdep:        pre: realtek
description:    RealTek RTL-8169 Gigabit Ethernet driver
author:         Realtek and the Linux r8169 crew <netdev@vger.kernel.org>
alias:          pci:v00000001d00008168sv*sd00002410bc*sc*i*
alias:          pci:v00001737d00001032sv*sd00000024bc*sc*i*
alias:          pci:v000016ECd00000116sv*sd*bc*sc*i*
alias:          pci:v00001259d0000C107sv*sd*bc*sc*i*
alias:          pci:v00001186d00004302sv*sd*bc*sc*i*
alias:          pci:v00001186d00004300sv*sd*bc*sc*i*
alias:          pci:v00001186d00004300sv00001186sd00004B10bc*sc*i*
alias:          pci:v000010ECd00008169sv*sd*bc*sc*i*
alias:          pci:v000010FFd00008168sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008168sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008167sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008161sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008136sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008129sv*sd*bc*sc*i*
alias:          pci:v000010ECd00002600sv*sd*bc*sc*i*
alias:          pci:v000010ECd00002502sv*sd*bc*sc*i*
depends:        libphy
retpoline:      Y
intree:         Y
name:           r8169
vermagic:       4.19.0-16-amd64 SMP mod_unload modversions 
sig_id:         PKCS#7
signer:         Debian Secure Boot CA
sig_key:        4B:6E:F5:AB:CA:66:98:25:17:8E:05:2C:84:66:7C:CB:C0:53:1F:8C
sig_hashalgo:   sha256
signature:      12:48:AD:DE:7C:AC:04:90:A6:8E:9C:03:33:C0:0B:5B:69:0F:68:72:
		31:AA:87:C9:13:ED:A8:34:9D:90:92:7E:F5:D4:33:F3:1D:E7:E9:F1:
		CB:52:73:C3:F5:B8:84:CB:0D:8D:24:97:44:20:50:B6:6F:03:81:44:
		46:06:13:B5:26:BD:BA:5F:47:DC:86:76:EA:1C:A5:78:7C:6F:57:29:
		40:EB:28:49:55:DE:42:02:DB:A5:10:28:AF:DB:64:2C:13:E0:EA:91:
		9D:0B:8F:12:4D:9A:91:D8:84:DB:8B:92:89:78:BC:F3:33:88:1A:5D:
		5A:68:BD:28:4B:49:F7:29:74:85:68:B8:57:0B:61:EE:65:0D:47:D0:
		9F:49:16:C6:38:FB:BC:CF:D9:C9:44:3E:6E:70:DD:17:0E:2D:28:E1:
		D1:84:70:AA:07:63:06:E0:4B:97:9D:30:8A:10:3C:CD:3D:AA:DE:CE:
		20:64:6E:A6:FA:DE:00:80:39:6A:11:10:F3:3A:7C:F0:32:68:6A:82:
		74:D3:64:C7:78:12:D6:07:D5:88:08:66:C0:58:32:F3:07:0D:DB:BB:
		DD:36:B7:E3:09:5B:D9:57:07:BA:FE:88:8C:82:6B:1C:65:7D:04:80:
		95:4E:50:08:9D:F2:39:CE:6C:99:3E:48:8E:3B:27:93
parm:           use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)

MiST ()

вот опять не было сети после загрузки. помогло если снять и поставить галочку на enable networking в NetworkManager. Почему так?

@debian:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether 00:1d:7d:c7:be:43 brd ff:ff:ff:ff:ff:ff
@debian:~$ 

root@debian:/home/grovekeeper# dmesg | grep enp3s0
[    1.752900] r8169 0000:03:00.0 enp3s0: renamed from eth0
[   26.681310] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   26.783114] IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
[   26.783765] r8169 0000:03:00.0 enp3s0: Link is Down
root@debian:/home/grovekeeper# 

root@debian:/home/grovekeeper# lspci -k | grep Ethernet
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 01)
	Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet

root@debian:/home/grovekeeper# systemctl list-units --type service --all | grep -i net
  networking.service                    loaded    active   exited  Raise network interfaces                                                        
  NetworkManager-wait-online.service    loaded    inactive dead    Network Manager Wait Online                                                     
  NetworkManager.service                loaded    active   running Network Manager                                                                 
  systemd-networkd.service              loaded    inactive dead    Network Service                                                                 
  systemd-timesyncd.service             loaded    active   running Network Time Synchronization                                                    
root@debian:/home/grovekeeper# 
MiST ()
Ответ на: комментарий от anonymous

Это ничего не показывает. Фирмварь должна загрузиться, чем раньше - тем лучше.

# dmesg | grep r8169
[    1.708146] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.714751] libphy: r8169: probed
[    1.715317] r8169 0000:03:00.0 eth0: RTL8168b/8111b, 00:1d:7d:c7:be:43, XID 38000000, IRQ 19
[    1.715319] r8169 0000:03:00.0 eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko]
[    1.752900] r8169 0000:03:00.0 enp3s0: renamed from eth0
[   26.681886] RTL8211B Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[   26.783765] r8169 0000:03:00.0 enp3s0: Link is Down
[  499.824938] RTL8211B Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[  501.441636] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
[  511.813270] RTL8211B Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[  514.824580] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx


MiST ()
Последнее исправление: MiST (всего исправлений: 2)
Ответ на: комментарий от anonymous

в загрузчике через «с» прописал set debug=all

в загрузчике через «е» прописал debug

так?

# dmesg | grep r8169
[    1.746933] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.761943] libphy: r8169: probed
[    1.762933] r8169 0000:03:00.0 eth0: RTL8168b/8111b, 00:1d:7d:c7:be:43, XID 38000000, IRQ 19
[    1.763007] r8169 0000:03:00.0 eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko]
[    1.792093] r8169 0000:03:00.0 enp3s0: renamed from eth0
[   28.119170] RTL8211B Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[   28.222461] r8169 0000:03:00.0 enp3s0: Link is Down
[   31.109525] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
root@debian:/home/grovekeeper# 
MiST ()
Ответ на: комментарий от anonymous

Да хоть по direct-load грепни

И что мне это даст если найдется? Почему случайно после загрузи сеть отсутствует?

Ну нельзя же быть настолько тупым

еще и срать за тебя прикажешь?

Зато ты умный, сразу видно!) Пишешь под онанимузом и толком объяснить не можешь.

MiST ()
Последнее исправление: MiST (всего исправлений: 2)
Ответ на: комментарий от Bootmen

У меня не гном, а мате. Переодически после загрузки нет сети, а так все работает. Подозреваю nm, вот и спрашиваю почему его пихают во все де, когда есть рабочие альтернативы?

MiST ()