when internet disconnects, it won't reconnect until restart

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
User avatar
ninos
Posts: 14
Joined: Sun Nov 06, 2022 7:31 am
Contact:

when internet disconnects, it won't reconnect until restart

Post by ninos »

I'm using GhostBSD with Xfce 4.18 on a 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.
Their forum
https://askubuntu.com/questions/215632/ ... -from-tty1
suggests restarting XFCE4 from the command line,
but I don't know how to do this
on GhostBSD.)

Any ideas to solve this annoying problem?
Emmanuel Ninos
retired teacher
GNU/Linux, GhostBSD & Haiku user
nevets
Posts: 149
Joined: Tue Jun 23, 2020 3:54 am

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

Post by nevets »

sudo /etc/netstart

I have a pc I start off-line and need to do this to connect later on...
Wait till the gateway is up then enter the command in a terminal.
I've used this on MATE flavour.
Steve
User avatar
ninos
Posts: 14
Joined: Sun Nov 06, 2022 7:31 am
Contact:

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

Post by ninos »

yes, but this is for Ubuntu, Debian, etc.
https://askubuntu.com/questions/230698/ ... ng-service

what is the command in GhostBSD ????
Emmanuel Ninos
retired teacher
GNU/Linux, GhostBSD & Haiku user
User avatar
ninos
Posts: 14
Joined: Sun Nov 06, 2022 7:31 am
Contact:

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

Post by ninos »

I also found this
restart network & routing services on FreeBSD
https://www.cyberciti.biz/tips/freebsd- ... rvice.html

service netif restart

Other options are:
service netif stop
service netif start
Emmanuel Ninos
retired teacher
GNU/Linux, GhostBSD & Haiku user
nevets
Posts: 149
Joined: Tue Jun 23, 2020 3:54 am

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

Post by nevets »

ninos wrote: Wed Feb 08, 2023 5:37 pm yes, but this is for Ubuntu, Debian, etc.
https://askubuntu.com/questions/230698/ ... ng-service

what is the command in GhostBSD ????
This [sudo /etc/netstart] is for FreeBSD, GhostBSD. :-)
If you're having issues with this command working you might need to stop "networkmgr" from running first (icon in panel > right-select > disable) - it may conflict.
wb7odyfred
Posts: 206
Joined: Sat Nov 12, 2016 5:44 pm

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

Post by wb7odyfred »

Yes service netif restart should work by itself. If not working
service routing restart . You may have to use 'sudo' in front of service routing restart

ifconfig wlan0 down
ifconfig wlan0 up might also restart networking

Also for Ethernet interface, use the network interface name for your pc system
ifconfig
ifconfig eth0 down
ifconfig eth0 up
User avatar
ninos
Posts: 14
Joined: Sun Nov 06, 2022 7:31 am
Contact:

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

Post by ninos »

I don't know dear friends, but since I installed the Wavelan xfce plugin, a few days ago,
I have NOT had any problems with the internet !?!?
So , I guess, problem solved
Emmanuel Ninos
retired teacher
GNU/Linux, GhostBSD & Haiku user
LibreQuest
Posts: 21
Joined: Thu May 18, 2023 6:07 am

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

Post by LibreQuest »

I just do "sudo sh /etc/netstart". It has failed before and I've taken the interface down with ifconfig and then brought it back up and run it again, "sudo sh /etc/netstart.
wb7odyfred
Posts: 206
Joined: Sat Nov 12, 2016 5:44 pm

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

Post by wb7odyfred »

I think the command for resetting the internet connection is this: Open a Terminal Window. ctrl-alt-F2 or use XFCE4 Terminal Window

Code: Select all

sudo service netif restart 
and maybe

Code: Select all

sudo service routing restart
Share what works for you. Best of luck and enjoy GhostBSD.
Post Reply