On Mon, 10 Apr 2006 11:45:52 -0700, ecross wrote:
> Is there a way to setup routing so that the box will respond to ssh on
> both public IP addresses?
With source-based routing, you can have packets sent by your machine with
a NEWIP source address routed to the new router and packets with an OLDIP
source address router to the old router.
You can use /sbin/ip to do this, but there may be a more friendly way;
it's been a long time since I played with this. For example:
/sbin/ip rule add from NEWIP to default table 5
/sbin/ip route add to default via NEWROUTER table 5
sets up a route table which does what you need for NEWIP.
I did a quick search on source-based routing, and I see that iptables can
also be used to do this. So that's another possible approach.
This article:
http://www.linuxjournal.com/article/7291
appears to discuss my solution in more detail.
I've no idea whether ip or iptables is the better approach.
- Andrew