From owner-freebsd-questions@freebsd.org Fri Aug 30 10:33:42 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 95742CA5B2 for ; Fri, 30 Aug 2019 10:33:42 +0000 (UTC) (envelope-from 76nemo76@gmx.ch) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46KbRm6WZHz3y6n for ; Fri, 30 Aug 2019 10:33:40 +0000 (UTC) (envelope-from 76nemo76@gmx.ch) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1567161208; bh=mHufI419G4RJdG/hGem7EpSgkcMfLya1sbbD4wMitNI=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References; b=SxcG8NB+V8NPY/xOz7uQ0GOthmAT0EKLSWrlP38CsP8uOdsVkFg9JoRgu5oNS4Ww1 KVvoM8AMp++2S0zwxZh6nsdZBKCEbsxJU+NcfGmMdfI0N3pGp1oBV8BNJTZicKbRdY dHSUj3/JKo/AYKckJikc6icfyxOk9cYb+GA37eeA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from virtualisation ([85.195.219.254]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MJjUO-1i4kbL1qkO-0016ih; Fri, 30 Aug 2019 12:28:23 +0200 Date: Fri, 30 Aug 2019 12:28:18 +0200 From: Pierre Dupond <76nemo76@gmx.ch> To: Polytropon 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> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:kRgjnZJwO69vYUcl8ff1KI5TnWxXdiL4RzqPeY7PWBumIZ8XFCa 6jWqcCkw7fSaBCpAhjhpRJJzS4ZDhsZYSchFJzkVVLKB7LYypnXf53pkfwC7s+BNBcqW5WA w70TIPzF3JIOydvEcCwR2WFv66suMYIat4H1QRcwAWhNZIi6oxW9poFOurtlztO0Wm37p0s USSqtA/sCtiDmTO2cP0AQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zz3dwIKyk8s=:5BTsQj39JMTt49C5LHxzdR 2cmPziMT0pgTyuLRQ9syE3D3uGOeuUh2P/KmKbYUc47dL7ZKQ0kaS6utG2k5i0l3leYSpJiUq p07P+VOgulbXdm/ClomqnEwB8q12yQbmiF/zQMAuQfzIEifuuk8KCeWEDVyC8SK3ApFdWPnSL SAybcdinrWvF4iJ/97IMZ5xeVaKCFRuFYrBW9HE3CzxB3SCWQ1su2eEU9pk+mYNzr+Yk8OsLt u0D+069n2v/3p90pa3kYA2L5dGhU4DPc6RtBGsg3mme19ryWOYT9lKG3iQr/Qj3dU/vwoHD1h A55CeVN7hO2HNGyEGJmUwg6TqCBEP/Ud3jK/H+ayUEoIq33chVLQ9u+XwZQOa/0TALqixrHug 4Plp3wwX6XN1IhkAiX0hl5g/dNVcIABdvy4duzJWTR/E+n3BGrnTo2fw3YqHD95lECH9yA8yU zyvZUB48g670lPiwrBFLlsDzMlZp8ZjwJJFE5NoHQpXh7FbqPCh0o7Zkhw3wpHcNib05Cqv6n KP/46lqgnG5jsWsbzv0F12ebrgwFK4nAEr8uloBVFS8jC0MN273Pxrcj5NwttlzdOR2OXQS9S mCevu1rFQnBhqNZ2Dj9pNMYm1xFtmGJgUpusbkeSNwc2GQahZfp4ZZPodlrs6XjpOtfIHkxPR wFfGQFRM7ASUUYmg+rpyQcW51bCcqX949OFIIDkwKKG8CHHRJhLpb/A1rXo5GG6qfhir6zuvI bBYM9fy62T6fKOTkR6PI1F9pSqEtlkt0Ac0hJrb87TFPO0Sd3dgozDBxM2iB+PwCvRfoOVOfG kXKx56eFg0Lg0r9jOCFeYdeoMU8a/ZTYdYxJ1kXVEIdPRo9AqwXW+RjgHCFOGWJXXsO9Y32yD E8HrRBKXRrWWIV0KlkGtzKzRmsfbojrcXs1Ry+lJmUiLBhAwk7N+TZ5+vrcq6xlb0N97w0VY5 KgzvHyl2jYa04aIM4sTjbid7jm9AvoyaFKoQcLR29AUZ7FstY3pCozLzdd9w+9I/Ii4vhuYcY 65MF3TwiVZ2gcngYzVDGiHhqqR9ZrLwlEIhVafiERoi8u9un8IpieEukJ0DOXxt02JFXp+RVO eRE0zcSTe6sSvQ7GHhNwCw9UWeAwEQwpxU7+MnxKrboiWXz3VTrIIPuSYZNy8wYiFwx4P45lQ Z7nlal+VPXz4tSP/048OoGRu6om+fp16yR1z0jj2afldRajQ== X-Rspamd-Queue-Id: 46KbRm6WZHz3y6n X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=SxcG8NB+; dmarc=none; spf=pass (mx1.freebsd.org: domain of 76nemo76@gmx.ch designates 212.227.17.20 as permitted sender) smtp.mailfrom=76nemo76@gmx.ch X-Spamd-Result: default: False [-3.07 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.227.17.0/27]; FREEMAIL_FROM(0.00)[gmx.ch]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[gmx.net:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.969,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (-6.38), ipnet: 212.227.0.0/16(-1.38), asn: 8560(2.18), country: DE(-0.01)]; RCVD_IN_DNSWL_LOW(-0.10)[20.17.227.212.list.dnswl.org : 127.0.3.1]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmx.ch]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[gmx.ch]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Aug 2019 10:33:42 -0000 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--<>--- 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 Features2=3D0x3ed8220b AMD Features=3D0x2e500800 AMD Features2=3D0x1d4037ff Structured Extended Features=3D0x8 XSAVE Features=3D0x1 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: 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 irqs 0-23 on motherboard ioapic1 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: on motherboard cryptosoft0: on motherboard aesni0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 atrtc0: 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: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: 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: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.1 on pci0 pcib1: failed to allocate initial I/O port window: 0x1000-0x1fff pci1: on pcib1 igb0: 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: at device 2.2 on pci0 pci2: on pcib2 igb1: 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: at device 2.3 on pci0 pci3: on pcib3 igb2: 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: at device 2.4 on pci0 pci4: on pcib4 igb3: 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: at device 8.0 (no driver attached) xhci0: 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: 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: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ehci0: 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: at device 20.3 on pci0 isa0: on isab0 sdhci_pci0: mem 0xfeb25500-0xfeb255ff at device 20.7 on p= ci0 sdhci_pci0: 1 slot(s) allocated mmc0: on sdhci_pci0 amdtemp0: on hostb5 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: console (115200,n,8,1) orm0: 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: 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: at usbus1 uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 uhub1: on usbus1 mmcsd0: 64GB 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: at usbus1 uhub2 on uhub1 uhub2: on= usbus1 uhub2: 4 ports with 4 removable, self powered ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: 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: at device 20.0 on pci0 smbus0: on intsmb0 Security policy loaded: MAC/ntpd (mac_ntpd) On Fri, 30 Aug 2019 10:36:46 +0200 Polytropon 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>