Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2019 10:36:46 +0200
From:      Polytropon <freebsd@edvax.de>
To:        76nemo76 <76nemo76@gmx.ch>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Lost net connection
Message-ID:  <20190830103646.77c8d199.freebsd@edvax.de>
In-Reply-To: <20190830090009.552198444e8f4d432be42c4a@gmx.ch>
References:  <20190830090009.552198444e8f4d432be42c4a@gmx.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190830103646.77c8d199.freebsd>