LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-06-2008, 10:58 AM   #1
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Rep: Reputation: 15
Question Wireless network setup


I've been using linux for a couple of years now but unfortunatelyknow nothing about connectivity. I've been trying to get wireless working on my linux machine for a few days now and eventually got it to work with ndiswrapper, but I can only see the wireless network when the mode is set to Ad-hoc. What i actually wanna do is connect my windows machine with the linux machine and i want the windows machine to be able to access the web server on my linux machine.(No I don't have internet, i just wanna use the web server on the linux machine)
Where can I get this info or can somebody provide the info on how to set this up (exact instructions please, I'm an idiot) I need instructions on how to setup the wireless card properly and instructions on how to setup the networking side as well so I can access the web server from my windows machine...

Thanks

Last edited by Speed_Demon_X; 06-06-2008 at 10:59 AM.
 
Old 06-06-2008, 11:53 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The wireless setup will be the same--regardless of what else is on the network. Since you say that you got it working with Ndiswrapper, I assume that you have a wireless router or equivalent.

The wireless settings in the computer have to match the setup of the router. To configure the router, you would typically access it at 192.168.1.1 (from any brower).

In Linux, there are a variety of GUI front-ends, but I prefer the terminal commands:
ifconfig (to show you what is up and running---and to bring up specific interfaces)
iwconfig (to set the wireless parameters)
dhcpcd or dhclient (to connect)
iwlist ... scan (to look for networks)
However you do it, you have to set the essid (name of the access point), and the WEP or WPA keys. Again, the settings have to match what is set in the router.

You also should consider finding a native driver for your card. Please post the make and model. (Use lspci, if necessary, to find it)
 
Old 06-06-2008, 01:41 PM   #3
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
The wireless setup will be the same--regardless of what else is on the network. Since you say that you got it working with Ndiswrapper, I assume that you have a wireless router or equivalent.

The wireless settings in the computer have to match the setup of the router. To configure the router, you would typically access it at 192.168.1.1 (from any brower).

In Linux, there are a variety of GUI front-ends, but I prefer the terminal commands:
ifconfig (to show you what is up and running---and to bring up specific interfaces)
iwconfig (to set the wireless parameters)
dhcpcd or dhclient (to connect)
iwlist ... scan (to look for networks)
However you do it, you have to set the essid (name of the access point), and the WEP or WPA keys. Again, the settings have to match what is set in the router.

You also should consider finding a native driver for your card. Please post the make and model. (Use lspci, if necessary, to find it)
Ok first things first, what is a router? or what do u mean by equivalent?
I've read the man pages for ifconfig, iwconfig etc.... but what im actually asking is how do i do it? how do I setup the wireless network between the 2? Linux machine settings & windows machine settings, I mean the real nitty gritty.... or where do i get this info?

unfortunately there is no linux driver for the 'card' im using thats why i had to use the windows driver with ndiswrapper. I'm using the D-link DWL-G132 Airplus extreme G USB Adapter


Thanks for reply....
 
Old 06-06-2008, 05:26 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK--you said that you got wireless working. What was it connecting to? The other end of the connection is sometimes called an "access point", but the more common thing in home systems is a "wireless router".

A router is a device that allows several computers to interconnect and to communicate using individual IP addresses. Assuming that it is connected to the internet, it has an external IP address, and then assigns "internal" IP addresses for use on the local network. A "wireless router" simply adds the access point function to a router.

The first command to play with might be "iwlist". Assuming that your wireless is on wlan0 (ifconfig will tell you) enter "iwlist wlan0 scan" and see what access points are detected. Hopefully, one of them will be yours.

The more detail you can supply on your configuration, the faster we'll get this solved.
 
Old 06-07-2008, 01:38 AM   #5
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
OK--you said that you got wireless working. What was it connecting to? The other end of the connection is sometimes called an "access point", but the more common thing in home systems is a "wireless router".
It didnt connect to anything. I can use 'iwlist wlan0 scan' and see other networks. With my windows machine I can connect to the linux machine no problem. I think u misunderstanding my problem so im gonna explain it again. I have 2 machines (one linux, one windows), the linux machine has a web server on it (already setup and working) and i want to be able to access the web server from my windows machine because my linux machine specs are crap and its really slow, I only have one monitor and a small desk not big enough to have 2 keyboards on it.
So the linux machine must act as an access point or router or whatever its called. I dont have an internet connection at all, i dont need it at this time.


Quote:
Originally Posted by pixellany View Post
A router is a device that allows several computers to interconnect and to communicate using individual IP addresses. Assuming that it is connected to the internet, it has an external IP address, and then assigns "internal" IP addresses for use on the local network. A "wireless router" simply adds the access point function to a router.
So what is it actually? Ok, nevermind I just googled it. So a wireless router is actually the access point which assigns IPs to machines on the inner network allowing them to access the internet. I'm assuming this access point also acts as a node allowing other wireless machines to connect to each other. yes/no?


Quote:
Originally Posted by pixellany View Post
The first command to play with might be "iwlist". Assuming that your wireless is on wlan0 (ifconfig will tell you) enter "iwlist wlan0 scan" and see what access points are detected. Hopefully, one of them will be yours.
yeah I've played with all the commands, iwlist, iwconfig, ifconfig, etc...


Quote:
Originally Posted by pixellany View Post
The more detail you can supply on your configuration, the faster we'll get this solved.
I dont have a configuration thats why I'm asking....how do i set this up...


thanks for reply....really appreciated
 
Old 06-07-2008, 07:13 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
First, keep this in one thread. I've reported your duplicate for closure.

You are well on your way to understanding how all this works. If it were me, I would simply go buy a wireless router. The typical unit gives you 4 regular ethernet connections + the wireless.
 
Old 06-08-2008, 02:42 AM   #7
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Original Poster
Rep: Reputation: 15
A few stupid questions related to my problem

What is the 'route' command used for?
Does the 'ifconfig' command assign an ip to dev wlan0? if so what netmask should be used and what gateway ip should be used? what is a gateway actually? whats its purpose? and what is DNS? I know it stands for Domain Name Server but what purpose does it serve and do i need it?

what is DHCP? and what is used for? when i set my windows machine to auto obtain IP, I get assign an ip like 169.258.25.49 or sumthing similar.


I've setup a Samba server and have a directory shared but my windows machine cant communicate with my linux box. It connects via wireless but there is no communication. If I view wireless properties, packets sent = 10000+ and keep increasing (which is normal i'm assuming) and packets received = 0. So obviously sumthing is not right.

My linux machine must act like a router...
 
Old 06-08-2008, 03:18 AM   #8
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Original Poster
Rep: Reputation: 15
I got this solution from another forum, gonna give it a bash and I'll post result

http://pacadi.blogspot.com/2007/04/n...op-ad-hoc.html
 
Old 06-08-2008, 04:04 AM   #9
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Moved: This thread is more suitable in Wireless Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-09-2008, 06:28 AM   #10
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Original Poster
Rep: Reputation: 15
ok, solution posted earlier did not work.....but i've had encouraging results

I'm now able to view the samba server on my linux machine using windows after playing with the ifconfig command. I can see the server and see the shared directory but i cant access it even though I've set full read/write access for the shared directory. any thoughts/ideas?
I've also played with the route command but of course i have no idea what im doing. does browsing the workgroup require IP address? or is tcp/ip not needed? what is tcpd?

I've also tried to access the web server on my linux machine from my windows machine. i get this error. HTTP 404: .......invalid request or sumthing like that. I'm assuming its connecting to the webserver but sumthing is not right.

Would appreciate sum more ideas/thoughts.... I am getting closer to solving my problem but I think I still have a long way to go....

Thanks in advance

I'll post route table and system config settings for dev wlan0 later as soon as i get a chance

Last edited by Speed_Demon_X; 06-09-2008 at 06:35 AM.
 
Old 06-09-2008, 03:27 PM   #11
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Original Poster
Rep: Reputation: 15
I've stuffed it all up. I cant connect anymore and ndiswrapper keeps crashing
 
Old 06-11-2008, 06:21 AM   #12
Speed_Demon_X
LQ Newbie
 
Registered: Jun 2008
Location: on my PC
Distribution: Fedora 8
Posts: 23

Original Poster
Rep: Reputation: 15
anyone?????? i feel like im having a conversation with myself here...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cant setup wireless network:'( lunar-blue Linux - Wireless Networking 2 08-03-2005 01:28 PM
Wireless Network Setup Magsol General 1 06-15-2005 07:56 PM
Wireless Network Setup slackware1299 Slackware 5 05-27-2005 04:58 PM
Wireless Network Setup shaival Linux - Wireless Networking 3 11-01-2004 07:10 PM
Wireless network setup ws2030 Linux - Wireless Networking 1 05-23-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration