Wifi turns on regardless of rc.conf

Hi @ all :)

haven't been using FreeBSD for quite some years now. Long story short. Got hands on a laptop and am trying to set up FreeBSD as OS. Now I have some kind of an odd problem. I don't want the network interfaces to turn on on boot, but rather start them when needed by myself.

my config in rc.conf is:
Code:
ifconfig_re0="down"
wlans_iwn0="wlan0"
ifconfig_wlan0="down"

but still, the wlan0 link state changes to UP

It is a fresh installation. I haven't even configured wpa_supplicant right now. So I am bit lost here, because I just don't know what in the world could be responsible for this odd behaviour.

thx in advance
 
ifconfig_re0="down"
wlans_iwn0="wlan0"
ifconfig_wlan0="down"

This is not the way I would ever configure an interface.
Simply add a pound sign in front of an config you want to eliminate from starting.
Are you sure "down" is even valid syntax?

In our prototype /etc/defaults/rc.conf I see nothing like that:
Code:
network_interfaces="auto"    # List of network interfaces (or "auto").
cloned_interfaces=""        # List of cloned network interfaces to create.
#cloned_interfaces="gif0 gif1 gif2 gif3" # Pre-cloning GENERIC config.
#ifconfig_lo0="inet 127.0.0.1"    # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry.
#ifconfig_em0_ipv6="inet6 2001:db8:1::1 prefixlen 64" # Sample IPv6 addr entry
#ifconfig_em0_alias0="inet6 2001:db8:2::1 prefixlen 64" # Sample IPv6 alias
#ifconfig_em0_name="net0"    # Change interface name from em0 to net0.
#vlans_em0="101 vlan0"        # vlan(4) interfaces for em0 device
#create_args_vlan0="vlan 102"    # vlan tag for vlan0 device
#wlans_ath0="wlan0"        # wlan(4) interfaces for ath0 device
#wlandebug_wlan0="scan+auth+assoc"    # Set debug flags with wlandebug(8)

So try it like this:

Code:
#ifconfig_re0="Your IP or DHCP"
wlans_iwn0="wlan0"
#ifconfig_wlan0="Your IP or DHCP"

That is how I preserve a setting while turning it off. For example my messy rc.conf:
Code:
### NETWORKING ###
#
ifconfig_em0="DHCP"
#ifconfig_em0="inet 192.168.0.1 netmask 255.255.255.0"
#wlans_ath0="wlan0"
#ifconfig_wlan0="WPA DHCP"
#ifconfig_wlan0="WPA inet 192.168.1.100 netmask 255.255.255.0"
#inetd_enable="YES"
#ifconfig_em0="inet 192.168.1.148 netmask 255.255.255.0"


#ifconfig_em0="inet 192.168.2.25 netmask 255.255.255.252"
#defaultrouter="192.168.1.1"
#wlans_run0="wlan1"
#
#### LAGG ####
 
Sry, for my late reply, had some mean shifts this weekend...

Yes, when scrolling through dmesg -a it says:
re0: link state changed to DOWN
but for wlan0 it is link state changed to UP

For syntax I am not sure. But ifconfig(8) states, that down is a viable parameter for an interface, so I thought... It may work... Also, when changing down to uppercase DOWN I am getting a "ifconfig: DOWN: bad value" message on service netif restart. So lowercase down seems to be accepted.

But changing those lines to comments has a reverse effect. Now the wlan0 interface seems to be kept down, but the system is starting network on re0 which is disconnected so it's kinda useless...

Forgot to much, gotta read a lot more than I thought I would've to... ^^
 
Why do you set wlans_iwn while it's supposed to be down anyway? This doesn't pull it up again?
 
Back
Top