Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  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:
|     Internet   |
|                |
 |  | router |---[other devices]  |
 |  +--------+                    |
 |     |    |
 |     |                          |
 |     |[wifi]      +-------------+--------------------+
 |     +------------|  laptop     |     |
 +------------------+-------------+                    |
                    |   |    +-----------------+       |
                    |   +----| 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 subnet and all these routes are configured automatically. Shabang, internet ahoy! The problem comes from when someone on the subnet (i.e. any wifi clients) wants to access the ...0.0 side. If a route to 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 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
One thing I am looking at with interest is how routers (e.g. my laptop) are meant to add themselves to the 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 to 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,
Old 04-21-2010, 11:06 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Is your phone configured to use router discovery ? ... probably not likely
Old 04-26-2010, 04:23 PM   #3
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.

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.


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 > Forums > Linux Forums > Linux - Networking

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

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