Connect Linux box to the Internet via Linksys WRT54G router

Allen Taylor agtnews-PeCUgM4zDv73fQ9qLvQP4Q at public.gmane.org
Thu Mar 24 16:31:16 UTC 2005


On Thu, Mar 24, 2005 at 11:16:44AM -0500, Lennart Sorensen wrote:
> On Thu, Mar 24, 2005 at 09:39:09AM -0500, Allen Taylor wrote:
> > Perhaps I'm confused, but shouldn't the second command be:
> > 
> > $ route add 192.168.1.0 mask 255.255.255.0 gw 192.168.1.1
> >        (was 192.168.0.0)
> 
> That too would be wrong.  You have a route for the local subnet
> (192.168.1.0/24 in this case) and you have a default route (0.0.0.0)
> which sets the gateway address for going anywhere else.  Traffic for the
> local subnet should never be routed through a gateway (since the gateway
> is for getting to subnets other than the local ones).
> 
> Lennart Sorensen

OOPS! You are correct. I didn't look a the whole picture - just noticed
the typo in the sub-net address. 

I'll go back to sleep now.

Allen
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list