[Vserver] Host server with 2 physical interfaces

From: Jean-Michel Caricand <jean-michel.caricand_at_laposte.net>
Date: Thu 18 May 2006 - 14:57:47 BST
Message-Id: <IZGS4B$62E0FB09941CC5B2A2357E57920071D9@laposte.net>

Hi,

I try to configure a server with 2 physical interfaces (eth0
and eth1).
The host uses eth0 with IP 172.20.128.110.
I created a vserver named vs03. It uses eth1 with IP
194.57.88.253.

On my host (debian sarge), I configure my network with :

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
  address 172.20.128.110
  netmask 255.255.255.0
  network 172.20.128.0
  broadcast 172.20.128.255
  gateway 172.20.128.254
  up ip route add 172.20.128.0/24 dev eth0 src 172.20.128.110
table 64
  up ip route add default via 172.20.128.254 table 64
  up ip rule add from 172.20.128.0/24 table 64
  post-down ip rule delete from 172.20.128.0/24 table 64

auto eth1
iface eth1 inet static
  address 194.57.88.253
  netmask 255.255.255.0
  network 194.57.88.0
  broadcast 194.57.88.255
  up ip route add 194.57.88.0/24 dev eth1 src 194.57.88.253
table 68
  up ip route add default via 194.57.88.254 table 68
  up ip rule add from 194.57.88.0/24 table 68
  post-down ip rule delete from 194.57.88.0/24 table 68

When I disconnect eth1, I can ping 172.20.128.110. Why ? Where
I make a mistake ?

Thank.

Jean-Michel Caricand
 
jean-michel.caricand@laposte.net
  Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu May 18 14:59:52 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 18 May 2006 - 14:59:58 BST by hypermail 2.1.8