brent timothy saner on 18 Oct 2009 23:11:03 -0700

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] unique "virtual" IPs for hosts when using multipleinterfaces?

Check out the route utility- you can define which interface to use. Easiest would probably to create a virtual interface (say, and bridge it to ppp1? 
Then you could create a virtual network on that bridge, and map it to the corresponding 192... Ip's

(lack of GPG due to message sent via blackberry device)

-----Original Message-----
From: Christian Betz <>
Date: Sun, 18 Oct 2009 23:55:07 
To: <>
Subject: [PLUG] unique "virtual" IPs for hosts when using multiple

The subject probably sounds confusing, so allow me to illustrate:

Say I use my linux system to dial into a remote linux system that is
accepting dialup connections, then use SSH to connect
after the PPP connection is established. Furthermore, assume there are
a lot of these systems and I always access them with after
dialing out.

Now, imagine my computer has two modems and I can dial-out to two
hosts at the same time. Let's say that this gives me a ppp0 and a ppp1

My problem: I want to simultaneously SSH to *both* hosts,
but they have the same IP so I can't just use the route command.

I figured there must be some way to setup some kind of "virtual" IP
each host/interface such that it could be uniquely addressed. So
instead of connecting to after the connection came up, I
would connect to (for ppp0), or (for
ppp1), etc.

>From what I can tell iptables will be involved here. Can anyone point
me in the right direction (or tell me this crazy idea won't work)? I'm
very willing to RTFM but don't know where start with iptables.


Q: How many surrealists does it take to change a light bulb?
A: Two, one to hold the giraffe, and the other to fill the bathtub
with brightly colored machine tools.
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --