(E-Mail Removed) wrote:
>Hi,
>
>I have two machines, both running 2.6.{8,9} kernels
>
> +-----left------+ +-----right-----+
> | | | |
> | 192.168.1.23 +-ppp0---+ 192.168.1.10 |
> | 192.168.1.49 | | |
> | 192.168.1.75 | | iptables masq |
> | . . . . . . . | | to/from ppp0 |
> | | | |
> | 192.168.0.23 +-eth0---+ 192.168.0.10 |
> | | | |
> +---------------+ +---------------+
>
>The 192.168.1.xxx are bound to the ppp0 connection (xxx.23 by the usual
>pppd option, the 49/75 by using "ifconfig ppp0:0 ...49" and "ifconfig
>ppp0:1 ...75"
>
>What I want (for testing purposes) is when I
> nick@left $ ping 192.168.1.49
That is pinging a IP address assigned to an interface on
that host. The actual path is *guaranteed* not to go anywhere
near either of the two interfaces shown! It will be routed
to the lo interface! (On an idle system, run ifconfig then
ping an interface, and run ifconfig again to compare the
packet counts on various interfaces, and you'll see that the
lo device is the one which was incremented.)
>I want the ping packets to travel to eth0, to 'right', and 'right' will
>forward over ppp0 back to 'left'. Similar for ...23 and ...75
Can't be done for an IP address assigned to a NIC on the same
host.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)
(E-Mail Removed)