Connect Linux box to the Internet via Linksys WRT54G router
Allen Taylor
agtnews-PeCUgM4zDv73fQ9qLvQP4Q at public.gmane.org
Thu Mar 24 14:39:09 UTC 2005
On Thu, Mar 24, 2005 at 11:45:43AM +0530, Akshay Lamba wrote:
> Your routing table has a small error. Run the following 2 commands:
>
> $ route del 192.168.1.0
> $ route add 192.168.0.0 mask 255.255.255.0 gw 192.168.1.1
>
> Regards,
> Akshay
>
> ----- Original Message -----
> From: Michael Yang
> [snip]
> [root at localhost michael]# ifconfig
> eth0 Link encap:Ethernet HWaddr 00:20:AF:CC:45:50
> inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
> [snip]
> [root at localhost michael]# route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
Hi Akshay (And Michael)
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)
Confusingly yours,
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