MLUG: Re: [MLUG] linux routing question
Re: [MLUG] linux routing question
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does 192.168.4.1 have a route to 192.168.0.x?

--
Nimrod

On 9/18/07, Mark Rages <EMAIL:PROTECTED> wrote:
> I need help configuring a Linux box as a simple router on our LAN.
>
> There are three subjects here, the target device, the gateway
> computer, and my computer.
>
> The gateway computer has two interfaces:
>
> 192.168.4.2 usb0, connected to a device 192.168.4.1 through IP-over-USB
> 192.168.0.101 eth1, connected to our LAN.
>
> I want to be able to connect to 192.168.4.1 from other computers on
> the LAN (with appropriate routes set).
>
> I have tried this:
>
> on the gateway
> echo "1" > /proc/sys/net/ipv4/ip_forward
>
> on my computer:
> route add -net 192.168.4.0/24  gw 192.168.0.101
>
> Then I try ping 192.168.4.1 and get nothing.  ping 192.168.4.2 works however.
>
> What am I doing wrong?  Clearly I have some misapprehension about how
> routing is supposed to work.
>
> There are plenty of guides on the Internet about IP masquerade for a
> "share-the-internet-from-the-neighbors-open-access-point" type of
> application, but they don't seem to apply to this more basic task.
>
> Regards,
> Mark
> EMAIL:PROTECTED
> --
> Mark Rages, Engineer
> Midwest Telecine LLC
> EMAIL:PROTECTED
>
> _______________________________________________
> members mailing list
> EMAIL:PROTECTED
> http://mlug.missouri.edu/mailman/listinfo/members
>

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members