c0r Posted February 28, 2010 Share Posted February 28, 2010 Hi, is there a way to connect to a wireless ap just using the terminal for example iwconfig wlan0 essid iwconfig wlan0 apmac iwconfig wlan0 essid key xxxxxxxx is there a command to connect? c Quote Link to comment Share on other sites More sharing options...
Sparda Posted February 28, 2010 Share Posted February 28, 2010 yes... iwconfig wlan0 essid <name of network> will attempt to associate the adapter with that network. If the network is secured in any way this will fail. Quote Link to comment Share on other sites More sharing options...
c0r Posted February 28, 2010 Author Share Posted February 28, 2010 Tried it and it won't work. I'm connected to a wireless network with networkmanager wicd. But when i try to connect to the other network it's a no go. Maybe i'll try using an other networkmanager.. c Quote Link to comment Share on other sites More sharing options...
Sl45h3R Posted February 28, 2010 Share Posted February 28, 2010 After you've done that, don't you call dhclient To associate? Quote Link to comment Share on other sites More sharing options...
H@L0_F00 Posted February 28, 2010 Share Posted February 28, 2010 (edited) Maybe you're too far from it? Maybe your MAC is blacklisted? There could be many reasons for the association to not complete successfully. EDIT: dhclient <NIC> will obtain and set your IP, Gateway, DNS, etc. from a DHCP server. So, c0r might think he's not connected to the AP because he wasn't using dhclient and didn't get an IP address, and therefore, has no internet access. Edited February 28, 2010 by H@L0_F00 Quote Link to comment Share on other sites More sharing options...
c0r Posted February 28, 2010 Author Share Posted February 28, 2010 No i'm not to far from it,when i'm using my ubuntu machine i can connect perfectly using the iwconfig commands. But when using my backtrack machine it fails. @Sl45h3R : To use dhclient i need to be connected first..i think thx for the help so far.. c Quote Link to comment Share on other sites More sharing options...
c0r Posted March 2, 2010 Author Share Posted March 2, 2010 I got it done... this is how i did it.. ifconfig wlan0 down ifconfig wlan0 hw ether 00:01:02:03:04:05 ifconfig wlan0 up iwconfig wlan0 essid blah key thewepkey ifconfig wlan0 192.168.1.5 netmask 255.255.255.0 route add default gateway 192.168.1.1 echo nameserver free dnsserver > /etc/resolv.conf c Quote Link to comment Share on other sites More sharing options...
ParMan Posted March 4, 2010 Share Posted March 4, 2010 (edited) Google is your friend info on iwconfig for future http://gd.tuwien.ac.at/linuxcommand.org/man_pages/iwconfig8.html glad you got it figured out. Edited March 4, 2010 by ParMan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.