help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: internet connection freezes


From: Wojtek Kosior
Subject: Re: internet connection freezes
Date: Wed, 12 Apr 2023 16:22:33 +0200

Hi Gottfried,

Sorry, this command I suggested (`sudo herd restart network-manager`)
was incorrect. The one given by Paren, `sudo herd restart networking`,
is the right one. Try it.

> I connect my laptop via ethernet cable, LAN, to a router

And I assume you already tried re-plugging it?

> gfp@Tuxedo ~$ `nmcli connection down <connection name> \
>         && nmcli connection up <connection name>`
> 
> -bash: command substitution: line 1: syntax error near unexpected
> token `newline'
> -bash: command substitution: line 1: `nmcli connection down
> <connection 
> name>   '  
> 
> ....................................................................
> 9.
> gfp@Tuxedo ~$ `nmcli connection down <connection name> \
>       && nmcli connection up <connection name>`.
> 
> -bash: command substitution: line 1: syntax error near unexpected
> token `&&' -bash: command substitution: line 1: `nmcli connection
> down <connection 
> name>     && nmcli connection up <connection name>'  
> -bash: .: filename argument required
> .: usage: . filename [arguments]
> 
> I am not sure how the command should look like.

Arnaud surely wanted you to replace the "<connection name>" part with
the name of an actual connection on your system.

It seems a bridge (aka a virtual connection) under the name "virbr0"
somehow got created on your system. You could try running

    nmcli connection down virbr0 &&
      nmcli connection up enp53s0

Alternatively, you could even try

    sudo ip link del virbr0

to remove this mysterious virtual bridge instead of disabling it

> There is no possibility shown to enable networking again, no button
> to click....

Not even a button to turn it off? Perhaps there's at least some helpful
context menu available when right-clicking?

> 5.
> nmcli g
> STATE                   CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN
> connected (local only)  limited       missing  enabled  missing  enabled
> 
> 
> Does this mean WIFI is on my lapttop enabled?
> If yes, how can I switch it off?

I guess it tells you that WiFi is enabled in software but also that no
WiFi hardware is available to Network Manager. Which means it's not
going to use WiFi anyway. If you want to also disable WiFi in software
(only practically useful when Network Manager has access to some WiFi
hardware), you can run

    nmcli radio wifi off

as per nmcli's manpage.

Wojtek

-- (sig_start)
website: https://koszko.org/koszko.html
PGP: https://koszko.org/key.gpg
fingerprint: E972 7060 E3C5 637C 8A4F  4B42 4BC5 221C 5A79 FD1A

♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
✝ YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)


On Wed, 12 Apr 2023 10:54:20 +0000
Gottfried <gottfried@posteo.de> wrote:

> Hi,
> thanks for help,
> 
> sorry , I forgot to say that:
> 
> I connect my laptop via ethernet cable, LAN, to a router
> ---------------------------------------------------------------------
> 1.
> gfp@Tuxedo ~$ nmcli
> virbr0: connected (externally) to virbr0
>           "virbr0"
>           bridge, 52:54:00:16:E9:74, sw, mtu 1500
>           inet4 192.168.100.1/24
>           route4 192.168.100.0/24 metric 0
> 
> enp53s0: unavailable
>           "Realtek RTL8111/8168/8411"
>           ethernet (r8169), D4:93:90:07:A2:AD, hw, mtu 1500
> 
> ----------------------------------------------------------------------
> 
> 2.
> Use "nmcli device show" to get complete information about known devices and
> "nmcli connection show" to get an overview on active connection profiles.
> 
> Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage 
> details.
> 
> ...........................................................................
> 3.
> gfp@Tuxedo ~$ nmcli device show
> GENERAL.DEVICE:                         virbr0
> GENERAL.TYPE:                           bridge
> GENERAL.HWADDR:                         52:54:00:16:E9:74
> GENERAL.MTU:                            1500
> GENERAL.STATE:                          100 (connected (externally))
> GENERAL.CONNECTION:                     virbr0
> GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/3
> IP4.ADDRESS[1]:                         192.168.100.1/24
> IP4.GATEWAY:                            --
> IP4.ROUTE[1]:                           dst = 192.168.100.0/24, nh = 
> 0.0.0.0, mt = 0
> IP6.GATEWAY:                            --
> 
> GENERAL.DEVICE:                         enp53s0
> GENERAL.TYPE:                           ethernet
> GENERAL.HWADDR:                         D4:93:90:07:A2:AD
> GENERAL.MTU:                            1500
> GENERAL.STATE:                          20 (unavailable)
> GENERAL.CONNECTION:                     --
> GENERAL.CON-PATH:                       --
> WIRED-PROPERTIES.CARRIER:               off
> IP4.GATEWAY:                            --
> IP6.GATEWAY:                            --
> 
> ......................................................................
> 
> 
> 4.
> gfp@Tuxedo ~$ nmcli connection down <connection name> \
>       && nmcli connection up <connection name>
> -bash: syntax error near unexpected token `&&'
> -----------------------------------------------------------------------
> gfp@Tuxedo ~$ nmcli --version
> nmcli tool, version 1.41.2
> ........................................................................
> 
> 5.
> nmcli g
> STATE                   CONNECTIVITY  WIFI-HW  WIFI     WWAN-HW  WWAN
> connected (local only)  limited       missing  enabled  missing  enabled
> 
> 
> Does this mean WIFI is on my lapttop enabled?
> If yes, how can I switch it off?
> 
> ............................................................................
>    6.
> `nmcli connection down <connection name> \
>       && nmcli connection up <connection name>`.
> 
> Do I have to include the "dot" at the end?
> I guess it shows the end of the sentence.
> 
> ........................................................................
> 7.
> gfp@Tuxedo ~$ nmcli c
> NAME                UUID                                  TYPE      DEVICE
> lo                  7a147fe2-d819-4316-8fc3-5048760b8449  loopback  --
> virbr0              3806cfd9-88d8-4640-b159-171587357668  bridge    virbr0
> Wired connection 1  84733337-c8dc-3c39-8b73-c05ae193c799  ethernet  --
> 
> ..............................................................................
> 
> 8.
> gfp@Tuxedo ~$ `nmcli connection down <connection name> \
>         && nmcli connection up <connection name>`
> 
> -bash: command substitution: line 1: syntax error near unexpected token 
> `newline'
> -bash: command substitution: line 1: `nmcli connection down <connection 
> name>   '  
> 
> ....................................................................
> 9.
> gfp@Tuxedo ~$ `nmcli connection down <connection name> \
>       && nmcli connection up <connection name>`.
> 
> -bash: command substitution: line 1: syntax error near unexpected token `&&'
> -bash: command substitution: line 1: `nmcli connection down <connection 
> name>     && nmcli connection up <connection name>'  
> -bash: .: filename argument required
> .: usage: . filename [arguments]
> 
> I am not sure how the command should look like.
> .......................................................................
> 
> gfp@Tuxedo ~$ sudo herd restart network-manager
> Password:
> herd: service 'network-manager' could not be found
> 
> I am using MATE desktop
> 
> clicking the icon network in the menu line
> shows
> 
> ethernet:
> device: enp53s0
> MTU: automatic
> 
> There is no possibility shown to enable networking again, no button to 
> click....
> 
> 
> 
> Kind regards
> 
> Gottfried
> 
> 
> 
> 
> Am 11.04.23 um 17:48 schrieb Arnaud:
> > Hi,
> > 
> > It depends on how you connect to the Internet.
> > 
> > On a laptop and with the default configuration, you are probably using 
> > Network Manager (which you can check by running `nmcli`).
> > 
> > If you use Network Manager, you can probably use the following instead
> > of rebooting:
> >   `nmcli connection down <connection name> \
> >     && nmcli connection up <connection name>`.
> > 
> > 
> > Hope that helps,
> > 
> > -- 
> > Arnaud  
> 
> 


Attachment: pgpJujsBnl3Ll.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]