Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-02-08 17:57:46

ninos
Member
From: Athens, GREECE
Registered: 2013-05-05
Posts: 11
Website

when internet disconnects, it won't reconnect until restart

I'm using GhostBSD with Xfce 4.18 on a Lenovo Thinkpad 240.
I'm very satisfied with its stability and speed.
But when the internet is disconnected,
it won't reconnect automatically,
I need to shut down and restart the system.

(I had exactly the same problem with Xubuntu Xfce on a Toshiba Satellite
a few years ago, which I could never solve)


retired teacher

Offline

#2 2023-02-08 18:42:50

CwF
Member
Registered: 2018-01-28
Posts: 305

Re: when internet disconnects, it won't reconnect until restart

You should state how the original connection is made.

I had a few issues with dhcp leases expire and not renewing.

# dhclient

Offline

#3 2023-02-08 21:47:42

ninos
Member
From: Athens, GREECE
Registered: 2013-05-05
Posts: 11
Website

Re: when internet disconnects, it won't reconnect until restart

I don't understand...

when I ran the command on the terminal

dhclient
usage: dhclient [-bdqu] [-c conffile] [-l leasefile] interface


retired teacher

Offline

#4 2023-02-09 07:53:29

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: when internet disconnects, it won't reconnect until restart

ninos wrote:

I don't understand...

when I ran the command on the terminal

dhclient
usage: dhclient [-bdqu] [-c conffile] [-l leasefile] interface

Do you have more than one interface that use dhcp? if you supply it, based on the terminal output

dhclient eth0

or the interface that's exists in the BSD

ifconfig

probably?

Offline

#5 2023-02-09 19:52:41

ninos
Member
From: Athens, GREECE
Registered: 2013-05-05
Posts: 11
Website

Re: when internet disconnects, it won't reconnect until restart

~> dhclient eth0
Cannot open or create pidfile: Permission denied
ifconfig: interface eth0 does not exist
eth0: not found
exiting.

> ifconfig
em0: flags=8863<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=481249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,NOMAP>
    ether 28:d2:44:79:8b:b5
    media: Ethernet autoselect
    status: no carrier
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    inet 127.0.0.1 netmask 0xff000000
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether 7c:7a:91:cd:05:5a
    inet 192.168.1.113 netmask 0xffffff00 broadcast 192.168.1.255
    groups: wlan
    ssid Nova-66C58B channel 11 (2462 MHz 11g) bssid a4:91:b1:66:c5:8b
    regdomain FCC country US authmode WPA2/802.11i privacy ON
    deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 30 bmiss 10
    scanvalid 60 protmode CTS wme roaming MANUAL
    parent interface: iwm0
    media: IEEE 802.11 Wireless Ethernet DS/5.5Mbps mode 11g
    status: associated
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


retired teacher

Offline

#6 2023-02-11 03:16:27

BenyaminL
Member
Registered: 2019-10-11
Posts: 70
Website

Re: when internet disconnects, it won't reconnect until restart

@ninos? Is it the connection of wireless card or the ethernet card? Based on the output, it seems to be wireless and it has IP, should able to connect at least to local network. When the connection failed, have you tried to ping to 1.1.1.1 or 8.8.8.8? What is the output of route -n?

Also, when you run dhclient, you need

$ sudo dhclient wlan0

or

$ sudo dhclient em0

if you has the ethernet port, or you must run it as root user by

$ sudo su
# dhclient wlan0

... because it touch system config.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 538.48 KiB (Peak: 539.39 KiB) ]