configure wifi throught console problem, GUI is OK
Hi gurus,
I am trying to connect to wifi access point with terminal, I set up my own access point (no encryption or MAC filters) I ran followings commands Code:
$ sudo iwlist eth1 scanning Code:
$ sudo iwconfig eth1 mode managed essid esus channel 6 Code:
$ iwconfig Code:
$ iwconfig Code:
$ lspci | grep -i wireless Code:
$ uname -a Code:
dpkg -l | grep wireless-tools Also I have another question, lets say I am connected to an AP but DHCP is disabled, also there is running web interface on AP throught I can set up DHCP and obtain IP address. How do I know what is IP of the AP which I am connected, is there a solution or I have to reset AP ? I had idea to scann whole network with Code:
$ echo -ne {0..255}.{0..255}.{0..255}.{0..255}"\n" > addresses What I am doing wrong ? Thanks a lot. |
In my opinion you can discover the ip of your router by connecting your pc directly to the router and sending a ping to the broadcast.
Code:
ping -b 255.255.255.255 |
Quote:
Code:
sudo ifup eth1 If not, you'll have to ask your AP for a LAN IP address: Code:
sudo dhclient eth1 ############################################# I find these things are easiest to set up by manually editing the /etc/network/interfaces file. This might work for you: Code:
# This is the file /etc/network/interfaces Code:
sudo /etc/init.d/networking restart The LAN IP of the AP you are connected to is the same IP you type into your web browser to access your AP's web-page setup. If you have not changed it, it will be the same as it says in the manual. If you have changed it, and cannot remember it, simplest is to follow the instructions to "Factory Reset" your AP. Usually by pushing a tiny button with a paperclip as it boots up. The WAN IP of your AP can be found by looking at its web admin pages (Login to your AP with your browser), or by going to http://whatismyip.com |
Quote:
Code:
sudo ifup eth1 Code:
sudo ifup eth1 Code:
auto lo Quote:
Code:
$ iwconfig PS sorry for late |
Please do
sudo iwconfig eth1 mode managed essid esus channel 6 sudo ifup eth1 And when"dmesg | tail -n 50" Post it here directly or through http://pastebin.com/ Thanks. |
Hi I did
Code:
sudo iwconfig eth1 mode managed essid "JAKLANET" channel 4 log is here: http://pastebin.com/m69740856 Also I thought if is possible to turn off gnome manager and try again, but dont know how. Thank you |
I think, I have to post it here
[21937.105370] ADDRCONF(NETDEV_UP): eth1: link is not ready [22360.254376] ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [22370.884024] eth1: no IPv6 routers present [25598.361886] ipw2200 0000:06:05.0: firmware: requesting ipw2200-sniffer.fw [25610.212058] ipw2200 0000:06:05.0: firmware: requesting ipw2200-bss.fw [25754.959630] tcpdump uses obsolete (PF_INET,SOCK_PACKET) [25760.233323] device eth1 entered promiscuous mode [25789.668539] device eth1 left promiscuous mode [25792.087681] device eth1 entered promiscuous mode [25798.196543] device eth1 left promiscuous mode [25876.649347] device eth1 entered promiscuous mode [25884.696548] device eth1 left promiscuous mode [25941.514288] device eth0 entered promiscuous mode [25941.515740] device eth0 left promiscuous mode [26034.219745] device eth1 entered promiscuous mode [26045.428583] device eth1 left promiscuous mode [26120.164856] device eth1 entered promiscuous mode [26121.708444] device eth1 left promiscuous mode This is happened after ifup eht1. What could it means? |
TO: wakatana
Can you please do: ifup wlan0, then ifdown wlan0, then ifup wlan1, then ifdown wlan1 And again post, please the output for "dmesg | tail -n 50" Thanks. |
nothing, I was experimentg previous with promiscous mode.
|
What do you mean nothing, nothing new in log file? Or nothing happened.
Because when you do ifup eth1, looks like Ubuntu turning on etherner port, but not wireless. That is why I asked you to do: ifup wlan0, then ifdown wlan0, then ifup wlan1, then ifdown wlan1 And again post, please the output for "dmesg | tail -n 50" |
OK we made it.
I tried to exit gnome network manager that may causing problems, and everything just leave on console. So I issued: Code:
cepi@cepi-laptop:~/Downloads$ ps aux | grep -i network I checked if I have eth1 down ? Code:
cepi@cepi-laptop:~/Downloads$ ifconfig Then I wanted to know if iwconfig finaly preserves his configuration after configuring values (that did not work if NetworkManager was running) Code:
cepi@cepi-laptop:~/Downloads$ sudo iwconfig eth1 mode managed essid "JAKLANET7" channel 4 Setting correct values Code:
cepi@cepi-laptop:~/Downloads$ sudo iwconfig eth1 mode managed essid "JAKLANET" channel 4 Code:
cepi@cepi-laptop:~/Downloads$ sudo ifup eth1 Code:
cepi@cepi-laptop:~/Downloads$ iwconfig interfaces looks like Code:
cat /etc/network/interfaces Finaly if NetowrkManager Is not running anymore I can issue commands "on the fly" without ifup, ifdown Code:
cepi@cepi-laptop:~/Downloads$ sudo iwconfig eth1 mode managed essid "JAKLANET6" channel 4 PS please explain somebody why NetworkManager have always different PID |
NetworkManager is a service and it's restarting automatically when you kill it (hence the new PID). You need to stop the service or not load it at boot time.
|
Quote:
But I am not understand how can be service started again if I kill it, who start it again ?. I understand that can be started after reboot, but immediately after kill ? Last time I killed because I wanted configure wifi throught console. Code:
root 10702 0.0 0.0 2140 960 ? S 22:07 0:00 /sbin/dhclient -d -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/dhclient-eth1.pid -lf /var/lib/dhcp3/dhclient-7a11bb13-8f30-451b-b607-f7c87c49f47c-eth1.lease -cf /var/run/nm-dhclient-eth1.conf eth1 Code:
cepi@cepi-laptop:~$ ps aux | grep -i "network" PS In gnome network manager last reboot (before kill) I have wireless networks, now there is only VPN. |
Where is the truth ? - "ps -A |grep Network" under root
Read in GNOME documentation how to switch NM off. |
Quote:
Code:
cepi@cepi-laptop:~$ ps -A | grep -i network and how is possible that damenon is restarted automaticaly after kill ? PS I dont want to turn off, want see wireless networks |
All times are GMT -5. The time now is 03:12 AM. |