On Wed, 26 Jan 2000, Nissim wrote:
> OK, this isn't really directly related to LVS anymore, but I'm having
> trouble setting this up. Is it possible to have two private subnets
> using IP aliasing.
no, you've told eth0 on the router to route to both
192.168.1.0 and 192.168.2.0.
Joe
>
> Like this (All three machines are connected to the same switch):
>
> Router:
> ifconfig eth0 192.168.1.1 up
> ifconfig eth0:0 192.168.2.1 up
> route add -net 192.168.1.0/24 dev eth0
> route add -net 192.168.2.0/24 dev eth0
> ipchains -A forward -j MASQ -s 192.168.1.0/24
> ipchains -A forward -j MASQ -s 192.168.2.0/24
>
> Client1:
> ifconfig eth0 192.168.1.10 up
> route add -net 192.168.1.0/24 dev eth0
> route add default gw 192.168.1.1
>
> Client2:
> ifconfig eth0 192.168.2.10 up
> route add -net 192.168.2.0/24 dev eth0
> route add default gw 192.168.2.1
>
> With this in place I can ping client2 from client1. Is there a way to
> prevent this without getting an additional NIC and hub?
>
> -Nissim
>
> ----------------------------------------------------------------------
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
> For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx
>
>
--
Joseph Mack mack@xxxxxxxxxxx
----------------------------------------------------------------------
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx
|