LinuxQuestions.org
Help answer threads with 0 replies.
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 08-19-2005, 12:26 PM   #1
Vlad the E-Mailer
LQ Newbie
 
Registered: Aug 2005
Location: Sittingbourne - UK
Distribution: Mandrake LE2005
Posts: 3

Rep: Reputation: 0
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
 
Old 08-21-2005, 05:54 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
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
Code:
ifconfig
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.
 
Old 08-21-2005, 07:51 PM   #3
Vlad the E-Mailer
LQ Newbie
 
Registered: Aug 2005
Location: Sittingbourne - UK
Distribution: Mandrake LE2005
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 08-22-2005, 04:58 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
homebrew router Motown Linux - Networking 2 11-27-2005 08:59 PM
typcial wifi router....plus..... wazilian Linux - Wireless Networking 2 04-13-2005 01:06 PM
2 External Nic, 1 Internal Nic Router Problem trevanda Linux - Networking 0 10-13-2004 01:20 AM
Another Suse 9.1 + router/NIC problem neofile Linux - Networking 24 07-27-2004 09:18 AM
2 nic router problem williamc Linux - Networking 2 12-04-2003 10:32 PM


All times are GMT -5. The time now is 05:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration