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

Re: how to change wifi setting



On Tue 26 Nov 2019 at 03:51:24 (+0000), Long Wind wrote:
>  haven't i made it  clear enough?

No, not really. You're not specific about what software you're using
to run your networking interface.

> i rewrite below:
> 
> i often change wifi setting this way: 
> i open /etc/network/interfaces and change ssid and passwordthen save and  reboot to make /etc/network/interfaces to take effect
> any command that i can use so that i needn't reboot?

As you mention /etc/network/interfaces, perhaps you're using ifupdown
to manage it. In which case, the sequence of commands to change settings is:

# ifdown eth0
# edit /etc/network/interfaces
# ifup eth0

(Substitute the name of your interface for eth0.)

The mistake many people make is to edit /etc/network/interfaces *before*
they down the network, which causes the ifdown command to fail.
ifdown needs the old configuration in /etc/network/interfaces to down
the network just as much as ifup needs the new configuration to
restart it.

> i've tried your command:
> 
> 
>  service network-manager restart service network-manager restartFailed to restart network-manager.service: Unit network-manager.service failed to load: No such file or directory
> 
>     On Tuesday, November 26, 2019, 11:12:21 AM GMT+8, Jonas Smedegaard <jonas@jones.dk> wrote:  
>  
>  Quoting Long Wind (2019-11-26 04:00:13)
> > i often change wifi setting: ssid and passwordi edit 
> > /etc/network/interfaces and reboot to make it take effectany command 
> > that i can use so that i needn't reboot?Thanks!
> 
> You don't tell what is the reason you need to reboot.
> 
> If your wifi device driver crashes then possibly there is no other way 
> (with that device) than rebooting.  But if it is Network Manager getting 
> confused then maybe try restart it:
> 
>   sudo service network-manager restart
> 
> Or maybe install a newer linux kernel.
> 
> But it really is shooting in the dark - please provide more info about 
> what fails.
> 
> 
>  - Jonas
> 
> -- 
>  * Jonas Smedegaard - idealist & Internet-arkitekt
>  * Tlf.: +45 40843136  Website: http://dr.jones.dk/
> 
>  [x] quote me freely  [ ] ask before reusing  [ ] keep private  

Cheers,
David.


Reply to: