LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-19-2010, 06:14 PM   #1
Akdor 1154
LQ Newbie
 
Registered: Mar 2008
Distribution: Xubuntu, Sidux, Debian
Posts: 10

Rep: Reputation: 0
Question Automatic Route Table Entries


Hi all,

I've got the following setup working nicely, with my linux laptop working as a brilliant wireless bridge while keeping my subnetwork with its own dhcp and dns separate from the rest of the network:
Code:
+----------------+
|     Internet   |
|                |
+----------------+
     |
 +--+--------+--------------------+
 |  | router |---[other devices]  |
 |  +--------+                    |
 |     |        192.168.1.0/24    |
 |     |                          |
 |     |[wifi]      +-------------+--------------------+
 |     +------------|  laptop     | 192.168.0.1/24     |
 +------------------+-------------+                    |
                    |   |    +-----------------+       |
                    |   +----| ethernet switch |       |
                    |        +-----------------+       |
                    |          |          |            |
                    | +-------------+   +--------+     |
                    | |    Debian   |   | Gaming |     |
                    | |    Server   |   |   PC   |     |
                    | +-------------+   +--------+     |
                    +----------------------------------+
The laptop is routing using iptables. Each side, given a routing table entry to the other subnet via the laptop, can see the other subnet no worries. Now, thanks to my control over dhcp on the .0.0 side via my server, I can pass the laptop's IP as the default gateway to everything in my (the 192.168.0.0) subnet and all these routes are configured automatically. Shabang, internet ahoy! The problem comes from when someone on the 192.168.1.0 subnet (i.e. any wifi clients) wants to access the ...0.0 side. If a route to 192.168.0.0 via the laptop is added, it works fine - however this is a pain in the arse. I have friends with macbooks where it's tedious at best, and at worst my symbian wifi phone doesn't even ALLOW me to configure the routing table, leaving it isolated from all my servery goodness.
Scoping around the internets, I came across http://en.wikipedia.org/wiki/ICMP_Ro...overy_Protocol which seems to do what I've wanted - however I can't get it to work. I'm using icmpush on the laptop to create packets for prototyping my configuration, but nothing seems to actually change how e.g. my symbian phone can absolutely not see 192.168.0.0.
One thing I am looking at with interest is how routers (e.g. my laptop) are meant to add themselves to the 240.0.0.2 multicast group - do I need to configure this before things will start to route through it automatically?

Other than that I'm out of ideas, so alternate plans for automatic routes from 192.168.1.0 to 192.168.0.0 are welcome.

I should also mention that I have no access to the wifi router so I can't add static routes there.
The above setup is at the limits of my ability at the moment - obviously expanding these limits is OK but just keep in mind I'm no network engineer.

Thanks kindly,
Jarrad
 
Old 04-21-2010, 11:06 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Is your phone configured to use router discovery ? ... probably not likely
 
Old 04-26-2010, 04:23 PM   #3
TimothyEBaldwin
Member
 
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
Just configure the default router with the route, as well as sending the traffic to your laptop it will use ICMP redirect to inform the hosts to use the laptop.

Quote:
Originally Posted by Akdor 1154 View Post
The laptop is routing using iptables.
Iptables does not do routing, and nothing in your question requires the use of iptables on the laptop.

On a point of terminology, your laptop is not a wireless bridge, it is a router.
 
  


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
deleting entries in routing table mwagz Linux - Networking 1 01-30-2007 02:13 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
Adding entries to route table in C? kuronai Programming 2 04-04-2005 03:42 PM
Route table loses entries filth Linux - Networking 3 05-05-2003 06:27 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 01:14 PM


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

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