Re: Wireless network interface remembering join list across /etc/netstart.
On Tue, 21 Jun 2022 13:47:28 +0200 Stefan Sperling wrote: > On Mon, Jun 20, 2022 at 11:41:05PM +0100, Julian Smith wrote: > > It turned out that i needed to do `ifconfig iwn0 down -joinlist up` to > > remove > > all networks from the join list, as described in ifconfig(8). [I'm not > > actually sure that the `down` and `up` are necessary.] > > > > Would it be possible and make sense to have /etc/netstart do this > > automatically for wireless interfaces? Or am i misunderstanding what > > /etc/netstart is for? > > You could add the following as the first line of hostname.if if you > would like netstart to clear out existing networks before adding new > ones: > > -joinlist Ah, thanks! That looks like it will solve my problem very neatly. - Jules -- http://op59.net
Re: Wireless network interface remembering join list across /etc/netstart.
On Mon, Jun 20, 2022 at 11:41:05PM +0100, Julian Smith wrote: > Recently i got really confused after removing a 'join ... ' line > from /etc/hostname.iwn0, then running `sh /etc/netstart`. This resulted > in reconnection to , even though was now not mentioned > anywhere in /etc/hostname.iwn0. > > Even `ifconfig iwn0 down up` did not change this behaviour. > > It turned out that i needed to do `ifconfig iwn0 down -joinlist up` to remove > all networks from the join list, as described in ifconfig(8). [I'm not > actually sure that the `down` and `up` are necessary.] > > Would it be possible and make sense to have /etc/netstart do this > automatically for wireless interfaces? Or am i misunderstanding what > /etc/netstart is for? You could add the following as the first line of hostname.if if you would like netstart to clear out existing networks before adding new ones: -joinlist
Re: Wireless network interface remembering join list across /etc/netstart.
On 2022-06-20, Julian Smith wrote: > It turned out that i needed to do `ifconfig iwn0 down -joinlist up` to remove > all networks from the join list, as described in ifconfig(8). [I'm not > actually sure that the `down` and `up` are necessary.] > > Would it be possible and make sense to have /etc/netstart do this > automatically for wireless interfaces? Or am i misunderstanding what > /etc/netstart is for? netstart does nothing to clear existing configuration. It wouldn't make sense to do this for joinlist without also e.g. clearing IP addresses from interfaces as needed, resetting media options/MTU/rdomain/VLAN configuration, etc.
Wireless network interface remembering join list across /etc/netstart.
Recently i got really confused after removing a 'join ... ' line from /etc/hostname.iwn0, then running `sh /etc/netstart`. This resulted in reconnection to , even though was now not mentioned anywhere in /etc/hostname.iwn0. Even `ifconfig iwn0 down up` did not change this behaviour. It turned out that i needed to do `ifconfig iwn0 down -joinlist up` to remove all networks from the join list, as described in ifconfig(8). [I'm not actually sure that the `down` and `up` are necessary.] Would it be possible and make sense to have /etc/netstart do this automatically for wireless interfaces? Or am i misunderstanding what /etc/netstart is for? Thanks for any help, - Jules -- http://op59.net