more etc/wpa* and rtc.conf-1
Polytropon
freebsd at edvax.de
Thu Jan 5 21:07:37 UTC 2017
On Thu, 05 Jan 2017 21:31:17 +0100, swjatoslaw gerus wrote:
> power on
> msk0 -link state changed to down
That is the wired network, it is not connected. That's why
the interface is down. I wrote this in the previous message.
> login root ,passwd ...
>
> cd /etc ,more wpa*
On FreeBSD, "more" is "less" - "less /etc/wpa_supplicant.conf"
is the preferred command. ;-)
> ssid =" author ssid -correctly"
> key_mgmt=WPA-EAP
> identity= " author correctly"
> password " correctly"
> priority = 5
>
> network ={
> priority=0
> key_mgmt=NONE
>
> }
That looks wrong in many ways.
The configuration file can be kept quite simple. For the
plenty of options, see "man 5 wpa_supplicant.conf".
For the details, just "translate" the required settings
from the Linux set-up guide you got, and if you have
additional questions, ask the maintainers of the network
you're trying to connect to - they'll be able to tell
you about specific details.
please re-read what I wrote on _what_ to put into _which_
file. Or at least read what I repeat:
/etc/wpa_supplicant.conf only needs this for starters:
network={
ssid="<SSID>"
psk="<key>"
}
/etc/rc.conf needs the following additions:
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
Then, "reboot" or "service netif restart", whatever you
prefer.
On Thu, 05 Jan 2017 21:39:35 +0100, swjatoslaw gerus wrote:
> more etc/rtc.conf
> hostname="sony"
> keymap="german.iso.kbd"
Correct.
> ifconfig_msk0="DHCP"
> ifconfig_msk0="inet 0.0.0.0 network 0.f000000"
The 2nd setting overrides the first one and looks obviously
wrong.
> defaultrouter=""
That one is missing.
> ifconfig_msk0_ipv6="inet6 accept_rtadv"
You don't even use the wired network, so why configure IPv6
for it?
> create_args_wlan0="country US regdomain FCC"
No idea where this comes from.
> local_unbound_enable="YES"
> sshd_enable="YES"
> moused_enable=YES"
> dumpdev="AUTO"
That's okay.
BUT:
Why didn't you follow this part of the suggested instruction?
On Thu, 5 Jan 2017 19:32:34 +0100, Polytropon wrote:
> In /etc/wpa_supplicant.conf, set your access information:
>
> network={
> ssid="<SSID>"
> psk="<key>"
> }
>
> Replace <SSID> with the SSID you want to connect to, and
> <key> with the corresponding password.
>
> Add those to /etc/rc.conf:
>
> wlans_iwn0="wlan0" <=== THOSE ARE
> ifconfig_wlan0="WPA SYNCDHCP" <=== MISSING!
>
> Then just restart networking:
>
> # service netif restart
>
> The wireless connection should be up now.
>
> For diagnostic purposes, do the following "step by step" and
> check if (and where) problems occur:
>
> # ifconfig wlan0 create wlandev iwn0
> # wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
> # dhclient wlan0
You didn't set up your networking as required, and you didn't
do any of the diagnostic steps. I don't understand how it's
still possible to assume that the result will work... ;-)
Again, simply follow the examples here:
http://www.wonkity.com/~wblock/docs/html/wireless.html
https://www.freebsd.org/doc/handbook/network-wireless.html
https://srobb.net/fbsdquickwireless.html
Also, in case it applies: "HOWTO: Wireless WPA2-Enterprise Connection"
https://forums.freebsd.org/threads/39557/
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list