1c58e new install on open wifi network that isn't mine - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old December 9th, 2012, 01:12
antiprop antiprop is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 9
Thanked 0 Times in 0 Posts
Default new install on open wifi network that isn't mine

newbie here,
did a new install of FreeBSD 9 on older dell inspiron, I need to use an open wifi connection to get networking up and running, I connect to it all the time but I don't know the person. It's an open network daily on my available networks list. Install said it completed fine but networking spit out
Code:
DHCP failed!
unable to start wpa_supplicant
How can I use this open wifi network to get my network up and running via DHCP et al?

# ifconfig
gives me all the interfaces,


# dhclient iwi0
gives "no link"...


# dhclient xl0
gives "no link"...


# vi /etc/wpa_supplicant.conf
gives:
Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=2
ap_scan=1
fast_reauth=1
# vi /etc/rc.d.conf
gives "new file" and is empty

I did other things as well looking around(trying to) from re: freebsd handbook and installation guide(s) but those things all seem to assume I have my own initial connection which I don't (this is the same for posts I find in forums).

I don't think and hope I haven't screwed anything up. Please note I am posting this from another box so can't paste from command line and will have to get messages here and try them on the FreeBSD box.

Any help is greatly appreciated as is your patience with my ignorance.

\anti/

Last edited by SirDice; December 10th, 2012 at 11:21. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #2  
Old December 9th, 2012, 06:29
ChalkBored ChalkBored is offline
Junior Member
 
Join Date: Dec 2008
Posts: 90
Thanks: 1
Thanked 27 Times in 17 Posts
Default

From the iwi man page:

Code:
ifconfig wlan0 create wlandev iwi0 ssid my_net up
With my_net being the name of the network you're trying to connect to.

then:

Code:
dhclient wlan0
to get an ip assignment.

Last edited by ChalkBored; December 10th, 2012 at 21:58. Reason: Changed wlan to wlan0, it doesn't solve your current problem, but will solve dhclient not working right when you do get a connection.
Reply With Quote
The Following User Says Thank You to ChalkBored For This Useful Post:
antiprop (December 9th, 2012)
  #3  
Old December 9th, 2012, 17:29
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 826
Thanks: 77
Thanked 119 Times in 79 Posts
Default

I have an "accidentally" open WiFi network that is also "accidentally" sslstripping those who need free internet.
Just saying.
Reply With Quote
The Following 3 Users Say Thank You to bbzz For This Useful Post:
antiprop (December 9th, 2012), ChalkBored (December 9th, 2012), throAU (December 9th, 2012)
  #4  
Old December 10th, 2012, 02:49
antiprop antiprop is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Code:
ifconfig wlan create wlandev iwi0 ssid my_net up
gives:
Code:
Unmatched'.
therefore,
Code:
dhclient wlan
gives:
Code:
ifconfig: interface wlan does not exist
Code:
ls /usr/sbin
wlandebug
wlconfig
wpa_cli
wpa_passphrase
wpa_supplicant
none of which are any help

I am going back to man iwi(4) to see if I can find something to slap my dumbass upside the head and solve...

I know the wireless and networking work(ed) on the boolder dell inspiron laptop) because I had various linux distros installed on it and they all went online fine...

thanks for any additional help and knowledge

\antiprop/
Reply With Quote
  #5  
Old December 10th, 2012, 11:22
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Quote:
Originally Posted by antiprop View Post
# vi /etc/rc.d.conf
gives "new file" and is empty
That's because it's /etc/rc.conf.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
antiprop (December 10th, 2012)
  #6  
Old December 10th, 2012, 11:24
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Quote:
Originally Posted by antiprop View Post
Code:
ifconfig wlan create wlandev iwi0 ssid my_net up
gives:
Code:
Unmatched'.
You made a typo and added a ' somewhere.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
antiprop (December 10th, 2012)
  #7  
Old December 10th, 2012, 22:05
antiprop antiprop is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 9
Thanked 0 Times in 0 Posts
Default

I double/triple checked it and retyped as well. Will do it(try it) again.
Thanks for your patience and responses.
Reply With Quote
  #8  
Old December 10th, 2012, 22:08
kpa kpa is offline
Senior Member
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 1,980
Thanks: 44
Thanked 460 Times in 390 Posts
Default

I think you need to use wlan0 instead of just wlan.

Code:
ifconfig wlan0 create wlandev iwi0 ssid my_net up
Reply With Quote
The Following User Says Thank You to kpa For This Useful Post:
antiprop (December 11th, 2012)
  #9  
Old December 11th, 2012, 01:10
antiprop antiprop is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 9
Thanked 0 Times in 0 Posts
Default

That's what it is in most linux distros. When I had it (FreeBSD 9) installed before (before I did a re(fresh)-install) it didn't like it and I have learned FreeBSD boots into csh until you load bash, zsh, others into it. I will try on this install again thanks.

\antiprop/
Reply With Quote
  #10  
Old December 11th, 2012, 02:36
ChalkBored ChalkBored is offline
Junior Member
 
Join Date: Dec 2008
Posts: 90
Thanks: 1
Thanked 27 Times in 17 Posts
Default

Quote:
Originally Posted by kpa View Post
I think you need to use wlan0 instead of just wlan.

Code:
ifconfig wlan0 create wlandev iwi0 ssid my_net up
ifconfig will add a number to the interface name automatically.

I changed wlan to wlan0 in my previous post, since the part with dhclient is wrong because of that.


There isn't an apostrophe in the SSID name, is there? You might have to quote the whole name or escape the apostrophe with a backslash \ .

Also, try:
Code:
ifconfig wlan0 create wlandev iwi0
It won't join any networks, but it should at least create wlan0.
then you can try joining the network with:

Code:
ifconfig wlan0 ssid my_net up
If that first part works.

This will at least narrow down the problem to either creating wlan0 or joining the network.
Reply With Quote
The Following User Says Thank You to ChalkBored For This Useful Post:
antiprop (December 11th, 2012)
  #11  
Old December 11th, 2012, 21:49
antiprop antiprop is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 9
Thanked 0 Times in 0 Posts
Default

Ok I will try to respond to posts in order and thanks...

Quoting dice:
Quote:
Code:
Unmatched'.
You made a typo and added a ' somewhere.
I added as possessive e.g. name of network = Joe Blow's Network and it shows up like that in software and on network list, taking it out didn't make a difference...

# vi /etc/rc.conf
gives:
Code:
sendmail_enable="NONE"
hostid_enable="NO"
# ifconfig wlan create wlandev iwi0 ssid my_net up
gives:
Code:
iwi_bss[/FILE]: could not load firmware image, error 17
iwi0[/FILE]: could not load firmware
ifconfig[/FILE]: SI0CIFCREATE2: Input/output error
quoting bored:
# ifconfig wlan0(wlan) create wlandev iwi0
gives:
Code:
iwi_bss: could not load firmware image, error 17
iwi0: could not load firmware
ifconfig: SI0CIFCREATE2: Input/output error
# view /usr/share/doc/legal/intel_iwi/.iwi_bss
gives:
Code:
empty new file read only
I tried it without the . before iwi_bss even though that's the way it was reported and said same...

Thanks for the patience and help no idea what's making this so difficult? Though likely me being a dumbass about some little thing...

Last edited by SirDice; December 12th, 2012 at 09:15. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #12  
Old December 12th, 2012, 02:41
ChalkBored ChalkBored is offline
Junior Member
 
Join Date: Dec 2008
Posts: 90
Thanks: 1
Thanked 27 Times in 17 Posts
Default

iwi needs
Code:
if_iwi_load="YES"
legal.intel_iwi.license_ack=1
Added to /boot/loader.conf in order to load the firmware.
Reply With Quote
The Following User Says Thank You to ChalkBored For This Useful Post:
antiprop (December 12th, 2012)
  #13  
Old December 12th, 2012, 04:34
antiprop antiprop is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 9
Thanked 0 Times in 0 Posts
Default

no loader.conf in /boot

# vi /boot/loader.conf
gives:
Code:
new file and is empty
I don't think I should be starting a loader.confnew...
that doesn't sound right at all???
/boot
has:
Code:
loader
loader.4th
loader.help
loader.rc
I am guilty of not working on this today thanks for staying with me...
Reply With Quote
  #14  
Old December 12th, 2012, 09:16
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,694
Thanks: 47
Thanked 2,020 Times in 1,859 Posts
Default

Quote:
Originally Posted by antiprop View Post
no loader.conf in /boot

# vi /boot/loader.conf
gives:
Code:
new file and is empty
I don't think I should be starting a loader.confnew...
that doesn't sound right at all???
Nope, it's correct. The file doesn't exist by default. Just create it.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
antiprop (December 12th, 2012)
  #15  
Old December 13th, 2012, 00:41
antiprop antiprop is offline
Junior Member
 
Join Date: Dec 2012
Posts: 7
Thanks: 9
Thanked 0 Times in 0 Posts
Default

ok...
#
Code:
vi /boot/loader.conf
gives Read-only file system. once i added in the above...
i found a page recommending to do this to another that had the same problem...
mount -rw /
vi /boot/loader.conf

hit 'i' to enter interactive or insert mode

make any desired changes, hit 'esc' to get out of interactive mode and then :wq to write and quit vi

then reboot

i did this both
Code:
mount -rw/
and
Code:
mount -rw /
with space and without. with space went straight to another prompt so i feel this was correct but don't know...
neither of them changed the Read-only nor did wq! and i'm root...

then i saw this from someone:
"Error : /boot/loader.conf: Read-only file system."

how to make it writeable ?
after edit via
Code:
 vi /boot/loader.conf
, and then insert '
Code:
vfs.zfs.prefetch_disable="0"
' then type :wq!

i did this with the single quotes and without to be sure and nothing it is still only readable ! does nothing...

thanks...

\antiprop/
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-connecting WiFi network AJ-BSD Networking 9 December 9th, 2012 20:12
WiFi network without WPA inject Networking 6 May 3rd, 2011 15:48
Broadcom open-sources its WiFi drivers everypot Networking 1 September 9th, 2010 22:38
Best way to automate connecting to a wifi network kpedersen Networking 5 October 20th, 2009 12:11
Forward map FAILED: Has an A record but no DHCID, not mine. Dryanta Web & Network Services 1 May 7th, 2009 19:32


All times are GMT +1. The time now is 11:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0