| Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-19-2005, 12:26 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2005
Location: Sittingbourne - UK
Distribution: Mandrake LE2005
Posts: 3
Rep:
|
3 NIC Homebrew Router, WiFi Problem
Hi All,
I have a problem that I'm working with on a home brew router.
The machine is an 800MHz Duron PC with 512MB of RAM. I have a Realtek 8139 and a Tulip NIC installed and I have inserted a DLink DWL-G122 USB Wireless NIC into one of the USB socket. I've installed NDIS-Wrapper and the D-Link driver and gone through the commands but I can't get the machine to forward packets from the wireless NIC to the internal network or the internet. OS is Mandrake 10.1
The hardware is as follows:
eth0 - Local subnet - 192.168.3.0/255.255.255.0
eth1 - Internet via D-Link ADSL modem (DHCP IP Address)
wlan0 - Wireless subnet - 192.168.2.0/255.255.255.0
the routing table appears as follows:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0
0.0.0.0 212.159.xxx.xxx 0.0.0.0 UG 0 0 0 eth1
(my xxx's replace the real numbers)
and I have configured shorewall to allow packets to go backward and forward between the LAN and the wireless. The LAN to Internet connection works fine so IP forwarding is on but I don't want to bridge the wireless to the LAN (with brctl) for various reasons.
Is there any reason why this shouldn't work? Both the wireless cards (router and Laptop light up and the dat lights flash when I ping AND.. the laptop detects the wireless LAN displaying the ESSID but I can't ping across the NICS. Is bridging essential or can I use clever routing to pull it off?
Cheers,
Joolz
|
|
|
|
08-21-2005, 05:54 PM
|
#2
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
Is the wireless a recent addition?
What is the ping command you tried? and did it give any errors?
Is the Local subnet - 192.168.3.0 using DHCP?
How is the wireless subnet assigned its IP addresses?
Take a look at on both the router & the laptop.
You will have to hard code the IP address for at least the router end of the wireless subnet.
If the wireless subnet has not had its IP addresses assigned correctly, your ping packets could be getting to the router but not back.
If you want to trace packets, you might try tcpdump -i <interface>, tethereal, or ethereal.
|
|
|
|
08-21-2005, 07:51 PM
|
#3
|
|
LQ Newbie
Registered: Aug 2005
Location: Sittingbourne - UK
Distribution: Mandrake LE2005
Posts: 3
Original Poster
Rep:
|
Pinging
Hiya,
The internal interface, 192.168.3.1 is a static IP and is connected to an 8 port switch that leads off to the rest of the LAN. The internet interface is dynamic and is allocated by the ISP via my D-link ADSL modem and I have a staic IP on the wireless NIC of 192.168.32.1. The wireless NIC in the laptop is static on 192.168.3.2. Default gateway has been set to 192.168.3.1 and 192.168.2.1 (out of desperation  ) with no luck. BTW All have netmasks of 255.255.255.0.
If I ping a LAN address from the wireless I get destination host unreachable and the same goes for wireless to internet. Traceroute returns !H which according to the man page means "Host unreachable. The router has no route to the target system".
It seems like the NICs are alive but even with the firewalls on both set to allow open traffic from them, they don't see each other.
It's around 2 am here so I'll do some more research and post the output from commands later today.
Cheers,
Joolz
|
|
|
|
08-22-2005, 04:58 PM
|
#4
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
I hope these are just typo's:
Quote:
|
staic IP on the wireless NIC of 192.168.32.1. The wireless NIC in the laptop is static on 192.168.3.2
|
Note: let C=192.168
Your regular, wired, perhaps original, LAN is: C. 3.0
Your wireless, perhaps new, LAN is: C. 2.0
Then the wireless NIC in your router must be : C. 2.1
and the wireless NIC in your laptop must be : C. 2.2
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:21 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|