[Vserver] routing: 2 different virtual subnets on the same machine

2007-04-06 Thread Konstantinos Pachopoulos
Hi, i have not much knowlege on routing and following other advice or trying to follow solutions to similar cases (http://www.freenux.org/~mm/wordpress/?p=10 for example) didn't work for me. So here is the case: -on my virtual box there are guests running in 2 different subnets:

[Vserver] routing: 2 different virtual subnets on the same machine

2007-04-06 Thread Konstantinos Pachopoulos
Hi, i have not much knowlege on routing and following other advice or trying to follow solutions to similar cases (http://www.freenux.org/~mm/wordpress/?p=10 for example) didn't work for me. So here is the case: -on my virtual box there are guests running in 2 different subnets:

Re: [Vserver] routing: 2 different virtual subnets on the same machine

2007-04-06 Thread Chuck
On Friday 06 April 2007 06:28, Konstantinos Pachopoulos wrote: i ran into the same situation with 4 nics and solved it with iproute2 on the host. using simple tables and rules i was able to have the machine default gateway for eth0 yet route all various subnets through their proper nics with

Re: [Vserver] routing: 2 different virtual subnets on the same machine

2007-04-06 Thread Konstantinos Pachopoulos
// Hi Chuck, i am using Debian Etch. Everything could bu useful at this point :) From: Chuck chuck_at_sbbsnet.net mailto:chuck_at_sbbsnet.net?Subject=Re:%20%5BVserver%5D%20routing:%202%20different%20virtual%20subnets%20on%20the%20same%20machine Date: Fri 06 Apr 2007 - 12:48:51 BST

Re: [Vserver] routing: 2 different virtual subnets on the same machine

2007-04-06 Thread Chuck
ok.. 1. install iproute2on the host. this is the only place it is needed. 2. on my system the tables are kept in /etc/iproute2 you only have to edit rt_tables at the bottom of the list that is included by default add 2 tables. you can call them whatever you want. each table you enter

Re: [Vserver] routing: 2 different virtual subnets on the same machine

2007-04-06 Thread Chuck
On Friday 06 April 2007 15:21, Konstantinos Pachopoulos wrote: i made a mistake:) every reference to eth1 in my examples should be eth3. sorry // Hi Chuck, i am using Debian Etch. Everything could bu useful at this point :) From: Chuck chuck_at_sbbsnet.net