more etc/wpa* and rtc.conf-1
Polytropon
freebsd at edvax.de
Fri Jan 6 16:58:35 UTC 2017
Allow me to summarize the various replies...
On Fri, 06 Jan 2017 16:33:03 +0100, swjatoslaw gerus wrote:
> Task performed
Good!
> > network={
> > ssid="somessid"
> > identity="someidentity"
> > password="somepassword"
> > key_mgmt=WPA-EAP
> > }
>
> performed poweroff -poweron
>
> service netif restart
You _either_ reboot _or_ run "service netif restart", it's
not needed to do _both_.
> dhclient not running ? (check /var/run/dhclient.msk0.pid).
> Stopping network :lo0 msk0
>
> text ...
>
> msk0
> status no carriier
Again: That is the wired network card, which is obviously
not connected, so just _ignore it_.
WHat about the messages for the wireless adapter (iwn0, wlan0)?
On Fri, 06 Jan 2017 16:49:27 +0100, swjatoslaw gerus wrote:
>
> > >
> > > 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!
>
> That possible step in right direction
That _is_ the right direction! :-)
> > > 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
> >
>
> wlan running channel 36 5180 mhz
See? It's not complicated when you follow the instructions.
> ... but after sony dhclient send_paket :No buffer availible
> sony last message repeated 9 times
Putting this error message into a search machine reults in
a quite interesting page:
https://forums.freebsd.org/threads/45605/
Try changing
ifconfig_wlan0="WPA SYNCDHCP"
to
ifconfig_wlan0="WPA DHCP"
in /etc/rc.conf. Or might it be possible that you're trying
to get an address via DHCP from the _not connected_ wired
network card? To make sure that isn't a problem, add
ifconfig_msk0="down"
to /etc/rc.conf
On Fri, 06 Jan 2017 16:58:59 +0100, swjatoslaw gerus wrote:
> ifconfig wlan0
>
> inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
> nd6 options=29
> media :IEEE 802.11 Wireless Ethernet autoselect
> status : no carrier
> ssid "" channel 1 (2412 mhz 11g ht/20)
> regdomain FCC country US authomode WPA1+WPA2/802.11i privacy ON
> deftxkey UNDEF txpower 30 bmiss 10 scanvalid 60 protmode CTS
> ampdulimit 8k -amsdutx amsdurx shortgi -stbc wme roaming MANUAL
> groups: wlan
>
> #####################################
>
> ssid "" - ? " author ssid would entried from start
No. The SSID is entered in /etc/wpa_supplicant.conf, as
several answers have already shown.
It _might_ be possible that "regdomain FCC country US" is
causing trouble. I have no idea how it got into your
configuration. Maybe you comment that particular line
out, for testing? (It's in /etc/rc.conf, according to
your previous post.)
On Fri, 06 Jan 2017 17:12:54 +0100, swjatoslaw gerus wrote:
> for ifconfig wlan0 copy belov ,suspect rc.conf some false ,but part
> of rc.conf was
> edited from graphics by loader downloading ( false from start )
Yes, the installer creates /etc/rc.conf and inserts the values
which you've selected during installation (_not_ download!).
> cat wpa*
>
> network = {
> ssid= " myssid"
> key_mgmt=WPA-EAP
> identity= " myiden at uni-hamburg.de"
> password=" mypasswd"
>
> }
There are spaces which probably don't belong there. Make sure
there are _no_ spaces, i. e.:
network={
ssid="myssid"
key_mgmt=WPA-EAP
identity="myiden at uni-hamburg.de"
password="mypasswd"
}
Note that spaces matter.
> cat rc.conf
>
> hostname=" sony"
> keymap ="german.iso.kbd"
> ifconfig_msk0= "DHCP"
Ha! Here we have it. Why do you try to obtain an IP from a
network card that has no cable in it? Comment that line,
or change it as mentioned above.
> defaultrouter=""
Enter the router info that you got from the WLAN maintainer.
It should be in the instructions, and the Linux version will
also name it correctly.
> ifconfig_msk0_ipv6= " inet6 accept_rtadv"
Comment it out.
> create_args_wlan0=" country US regdomain FCC"
Comment that one out, too.
> wlans_iwn0="wlan0"
> ifconfig_wlan0="WPA SYNCDHCP"
Those are correct. If SYNCDHCP doesn't work, try DHCP.
> local _unbound_enable= "YES"
Here is a space that doesn't belong there.
> sshd_enable= "YES"
> moused enable="YES"
> dumpdev=AUTO"
Okay.
> ifconfig_msk0 ?
> defaultrouter ="" ?
> wlans or wlan ?
As explained in the documentation, and in this message "thread",
several times. THe correct form is:
wlans_iwn0="wlan0"
Also read this:
http://www.daemonology.net/blog/2015-01-13-freebsd-10-iwn-problems.html
Even though the "n" problem shouldn't be there anymore (the
referenced text is from 2015), it illustrates the correct
syntax.
--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list