Connect Linux box to the Internet via Linksys WRT54G router
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Thu Mar 24 16:16:44 UTC 2005
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
--
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