[Techtalk] routing question

R. Daneel Olivaw linuxchix at r-daneel.com
Tue Oct 7 18:28:12 UTC 2008


Hi there,

Just a quick guess :

on 'local router' :
# route add -net 192.168.3.0/24 gw 192.168.2.25

on 'laptop' :
# route add default gw 192.168.2.10
# echo 1 > /proc/sys/net/ipv4/ip_forward

on 'wired PC' :
# route add default gw 192.168.3.10

that should do the job

let me know if not (but try 'traceroute' for tests) ;)

R. Daneel Olivaw,
The Human Robot Inside.


Le lundi 06 octobre 2008 à 08:02 -0700, Carla Schroder a écrit :
> I want to use a wireless laptop as a temporary router for a wired PC. But my 
> poor old brain has forgotten how. Here is the setup:
> 
> Internet
> |
> local router/WAP: 192.168.1.10, 192.168.2.10, 12.34.56.78 (Internet)
> |
> |
> laptop 192.168.2.25 (wireless), 192.168.3.10 (wired)
> |
> wired PC 192.168.3.11
> 
> I have IP forwarding turned on in the laptop. The laptop and wired PC can ping 
> each other, and the PC can ping both laptop addresses. But I can't get past 
> that- can't ping the router or get Internet. The laptop has Internet and can 
> access the rest of the LAN. I have the default gateway on the wired PC set to 
> 192.168.3.10.
> 
> So what am I doing wrong? Or better, how do I do it right?
> 
> thanks!
> Carla



More information about the Techtalk mailing list