I have a FreeBSD machine that I'm trying to configure with a static IP address, so I added the following lines to the /etc/rc.conf file
ifconfig_wlan0="inet 192.168.0.20 netmask 255.255.255.0" defaultrouter="192.168.0.10"
after restarting the network service I can no longer connect to the router. If I ping it I get the message host is down. If I set wlan0 to use DHCP in /etc/rc.conf, I can connect to the router fine, but if I try to set a static IP I can't connect. Any idea what I might be doing wrong here?