Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2017 22:07:25 +0100
From:      Polytropon <freebsd@edvax.de>
To:        swjatoslaw gerus <milstar2@eml.cc>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: more etc/wpa* and rtc.conf-1
Message-ID:  <20170105220725.2022bbbd.freebsd@edvax.de>
In-Reply-To: <1483648277.1462181.838634977.0F96BE41@webmail.messagingengine.com>
References:  <1483454858.4190708.835937993.300F2713@webmail.messagingengine.com> <20170103160657.GB43153@neutralgood.org> <20170103203023.b2396c95.freebsd@edvax.de> <861swjx6mv.fsf@WorkBox.homestead.org> <1483475176.874533.836320369.7B612577@webmail.messagingengine.com> <20170103214548.1d726a06.freebsd@edvax.de> <1483564140.1178887.837521761.7D1930C8@webmail.messagingengine.com> <20170105004510.44e54ddc.freebsd@edvax.de> <1483639288.1431717.838467905.64F6B28C@webmail.messagingengine.com> <20170105193234.37780fbb.freebsd@edvax.de> <1483644016.1447892.838558553.55CAAF02@webmail.messagingengine.com> <20170105204020.73eb19f1.freebsd@edvax.de> <1483648277.1462181.838634977.0F96BE41@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170105220725.2022bbbd.freebsd>