Date: Fri, 30 Aug 2019 12:28:18 +0200 From: Pierre Dupond <76nemo76@gmx.ch> To: Polytropon <freebsd@edvax.de> Cc: freebsd-questions@freebsd.org Subject: Re: Lost net connection Message-ID: <20190830122818.d6d0b9f572a2afef1accd487@gmx.ch> In-Reply-To: <20190830103646.77c8d199.freebsd@edvax.de> References: <20190830090009.552198444e8f4d432be42c4a@gmx.ch> <20190830103646.77c8d199.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the answer. Here are some more detail about the hardware (it's an Intel card). I have done this modification in the file "/boot/loader.conf" # #Increase the memory allocated for the network card #driver. Useful/necessary to take in account #the 4 network card (instead of one). #See this link: # https://docs.netgate.com/pfsense/en/latest/hardware/tuning-and-trou= bleshooting-network-cards.html #for some explanations. # kern.ipc.nmbclusters=3D"131072" This message is displayed continuously on console when the network is unre= achable: Jul 29 14:56:42 oche kernel: igb0: TX(0) desc avail =3D 1024, pidx =3D 0 Jul 29 14:57:13 oche syslogd: last message repeated 18 times Jul 29 14:57:48 oche syslogd: last message repeated 20 times =2D-----------------------------dmesg output------------------------------= -------------------------------- =2D--<<BOOT>>--- Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-RELEASE-p7 GENERIC amd64 FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM= 6.0.1) VT(vga): resolution 640x480 CPU: AMD GX-412TC SOC (998.15-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0x730f01 Family=3D0x16 Model=3D0x30 Ste= pping=3D1 Features=3D0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P= GE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=3D0x3ed8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE= ,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C> AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=3D0x1d4037ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefet= ch,OSVW,IBS,SKINIT,WDT,Topology,PNXC,DBE,PTSC,PL2I> Structured Extended Features=3D0x8<BMI1> XSAVE Features=3D0x1<XSAVEOPT> SVM: NP,NRIP,AFlush,DAssist,NAsids=3D8 TSC: P-state invariant, performance statistics real memory =3D 4294967296 (4096 MB) avail memory =3D 4092137472 (3902 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: <CORE COREBOOT> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) random: unblocking device. ioapic1: Changing APIC ID to 5 ioapic0 <Version 2.1> irqs 0-23 on motherboard ioapic1 <Version 2.1> irqs 24-55 on motherboard Launching APs: 1 2 3 Timecounter "TSC" frequency 998147250 Hz quality 1000 random: entropy device external interface netmap: loaded module [ath_hal] loaded module_register_init: MOD_LOAD (vesa, 0xffffffff810f9a00, 0) error 19 kbd0 at kbdmux0 nexus0 vtvga0: <VT VGA driver> on motherboard cryptosoft0: <software crypto> on motherboard aesni0: <AES-CBC,AES-XTS,AES-GCM,AES-ICM> on motherboard acpi0: <CORE COREBOOT> on motherboard acpi0: Power Button (fixed) cpu0: <ACPI CPU> on acpi0 atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0 atrtc0: registered as a time-of-day clock, resolution 1.000000s Event timer "RTC" frequency 32768 Hz quality 0 attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x818-0x81b on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pci0: <ACPI PCI bus> on pcib0 pcib1: <ACPI PCI-PCI bridge> at device 2.1 on pci0 pcib1: failed to allocate initial I/O port window: 0x1000-0x1fff pci1: <ACPI PCI bus> on pcib1 igb0: <Intel(R) PRO/1000 PCI-Express Network Driver> mem 0xfe500000-0xfe51= ffff,0xfe520000-0xfe523fff at device 0.0 on pci1 igb0: attach_pre capping queues at 2 igb0: using 1024 tx descriptors and 1024 rx descriptors igb0: msix_init qsets capped at 2 igb0: pxm cpus: 4 queue msgs: 4 admincnt: 1 igb0: using 2 rx queues 2 tx queues igb0: Using MSIX interrupts with 3 vectors igb0: allocated for 2 tx_queues igb0: allocated for 2 rx_queues igb0: Ethernet address: 00:0d:b9:4e:88:10 igb0: netmap queues/slots: TX 2/1024, RX 2/1024 pcib2: <ACPI PCI-PCI bridge> at device 2.2 on pci0 pci2: <ACPI PCI bus> on pcib2 igb1: <Intel(R) PRO/1000 PCI-Express Network Driver> port 0x2000-0x201f me= m 0xfe600000-0xfe61ffff,0xfe620000-0xfe623fff at device 0.0 on pci2 igb1: attach_pre capping queues at 2 igb1: using 1024 tx descriptors and 1024 rx descriptors igb1: msix_init qsets capped at 2 igb1: pxm cpus: 4 queue msgs: 4 admincnt: 1 igb1: using 2 rx queues 2 tx queues igb1: Using MSIX interrupts with 3 vectors igb1: allocated for 2 tx_queues igb1: allocated for 2 rx_queues igb1: Ethernet address: 00:0d:b9:4e:88:11 igb1: netmap queues/slots: TX 2/1024, RX 2/1024 pcib3: <ACPI PCI-PCI bridge> at device 2.3 on pci0 pci3: <ACPI PCI bus> on pcib3 igb2: <Intel(R) PRO/1000 PCI-Express Network Driver> port 0x3000-0x301f me= m 0xfe700000-0xfe71ffff,0xfe720000-0xfe723fff at device 0.0 on pci3 igb2: attach_pre capping queues at 2 igb2: using 1024 tx descriptors and 1024 rx descriptors igb2: msix_init qsets capped at 2 igb2: pxm cpus: 4 queue msgs: 4 admincnt: 1 igb2: using 2 rx queues 2 tx queues igb2: Using MSIX interrupts with 3 vectors igb2: allocated for 2 tx_queues igb2: allocated for 2 rx_queues igb2: Ethernet address: 00:0d:b9:4e:88:12 igb2: netmap queues/slots: TX 2/1024, RX 2/1024 pcib4: <ACPI PCI-PCI bridge> at device 2.4 on pci0 pci4: <ACPI PCI bus> on pcib4 igb3: <Intel(R) PRO/1000 PCI-Express Network Driver> port 0x4000-0x401f me= m 0xfe800000-0xfe81ffff,0xfe820000-0xfe823fff at device 0.0 on pci4 igb3: attach_pre capping queues at 2 igb3: using 1024 tx descriptors and 1024 rx descriptors igb3: msix_init qsets capped at 2 igb3: pxm cpus: 4 queue msgs: 4 admincnt: 1 igb3: using 2 rx queues 2 tx queues igb3: Using MSIX interrupts with 3 vectors igb3: allocated for 2 tx_queues igb3: allocated for 2 rx_queues igb3: Ethernet address: 00:0d:b9:4e:88:13 igb3: netmap queues/slots: TX 2/1024, RX 2/1024 pci0: <encrypt/decrypt> at device 8.0 (no driver attached) xhci0: <AMD FCH USB 3.0 controller> mem 0xfeb22000-0xfeb23fff at device 16= .0 on pci0 xhci0: 32 bytes context size, 64-bit DMA xhci0: Unable to map MSI-X table usbus0 on xhci0 usbus0: 5.0Gbps Super Speed USB v3.0 ahci0: <AMD Hudson-2 AHCI SATA controller> port 0x5010-0x5017,0x5020-0x502= 3,0x5018-0x501f,0x5024-0x5027,0x5000-0x500f mem 0xfeb25000-0xfeb253ff at d= evice 17.0 on pci0 ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier supported with FBS ahcich0: <AHCI channel> at channel 0 on ahci0 ahcich1: <AHCI channel> at channel 1 on ahci0 ehci0: <AMD FCH USB 2.0 controller> mem 0xfeb25400-0xfeb254ff at device 19= .0 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 usbus1: 480Mbps High Speed USB v2.0 isab0: <PCI-ISA bridge> at device 20.3 on pci0 isa0: <ISA bus> on isab0 sdhci_pci0: <Generic SD HCI> mem 0xfeb25500-0xfeb255ff at device 20.7 on p= ci0 sdhci_pci0: 1 slot(s) allocated mmc0: <MMC/SD bus> on sdhci_pci0 amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb5 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: console (115200,n,8,1) orm0: <ISA Option ROM> at iomem 0xef000-0xeffff pnpid ORM0000 on isa0 uart1: <16550 or compatible> at port 0x2f8 irq 3 on isa0 uart1: non-PNP ISA device will be removed from GENERIC in FreeBSD 12. hwpstate0: <Cool`n'Quiet 2.0> on cpu0 fuse-freebsd: version 0.4.4, FUSE ABI 7.8 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is pre= sent; to enable, add "vfs.zfs.prefetch_disable=3D0" to /boot/loader.= conf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec ugen0.1: <0x1022 XHCI root HUB> at usbus0 ugen1.1: <AMD EHCI root HUB> at usbus1 uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 mmcsd0: 64GB <SDHC EC2QT 3.0 SN C54F610D MFG 12/2017 by 27 SM> at mmc0 50.= 0MHz/4bit/65535-block uhub0: 4 ports with 4 removable, self powered uhub1: 2 ports with 2 removable, self powered ugen1.2: <vendor 0x0438 product 0x7900> at usbus1 uhub2 on uhub1 uhub2: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on= usbus1 uhub2: 4 ports with 4 removable, self powered ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <Samsung SSD 860 EVO mSATA 500GB RVT41B6Q> ACS-4 ATA SATA 3.x device ada0: Serial Number S41NNB0K101594V ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes) ada0: Command Queueing enabled ada0: 476940MB (976773168 512 byte sectors) Trying to mount root from zfs:zroot/ROOT/default []... GEOM_ELI: Device ada0.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: hardware GEOM_ELI: Device mmcsd0p3.eli created. GEOM_ELI: Encryption: AES-XTS 128 GEOM_ELI: Crypto: hardware bridge0: Ethernet address: 02:91:bc:80:6d:00 lo0: link state changed to UP igb0: promiscuous mode enabled bridge0: link state changed to UP igb1: promiscuous mode enabled igb2: promiscuous mode enabled igb3: promiscuous mode enabled igb3: link state changed to UP intsmb0: <AMD FCH SMBus Controller> at device 20.0 on pci0 smbus0: <System Management Bus> on intsmb0 Security policy loaded: MAC/ntpd (mac_ntpd) On Fri, 30 Aug 2019 10:36:46 +0200 Polytropon <freebsd@edvax.de> wrote: > On Fri, 30 Aug 2019 09:00:09 +0200, 76nemo76 wrote: > > Hi All, > > I have a freebsd 12 machine connected to a network switch. > > The network switch is sometime switched off and on again > > (but not the FreeBSD machine) and > > then the network is lost on the freebsd machine. > > > > I have tried a lot of commands (ifconfig for instance) to restart the = network > > without any success. Only a reboot makes the network working again. > > > > I should mention that the machine has 4 ethernet ports > > used in a bridge (all the ethernet ports are in the bridge) > > > > Do you have any idea? > > It sounds like faulty networking equipment, maybe the FreeBSD > machine's internal NIC? If the switch is off, does "ifconfig" > output still say "status: active", or "status: no carrier"? > > However, you should be able to restart the network without a > reboot, using the following command (as root): > > # service netif restart > > What manufacturer is the NIC? Maybe Realtek? I once had a > similar problem with a Realtek NIC: After re-connecting, it > did still insist on "no carrier", but after "service netif > restart", it worked again... :-) > > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" =2D- Gmail <76nemo76@gmx.ch>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190830122818.d6d0b9f572a2afef1accd487>