Re: [vserver] how to use more than one IP in the same interface in guest with new config

From: Guenther Fuchs <vserver_at_muh.at>
Date: Mon 03 Mar 2008 - 06:27:27 GMT
Message-ID: <114809519.20080303072727@fuchs.info>

Hi there,

on Monday, March 3, 2008 at 1:09:39 AM there was posted:

CC> I thought about just creating another directory in
CC> /etc/vservers/<guest>/interfaces, and setting dev to something like
CC> eth0:0 and ip to the new one. Will this work?

Use the same "dev" but a different "name", e.g.

/etc/vservers/<guest>/interfaces/0/{dev,ip,name,prefix}
/etc/vservers/<guest>/interfaces/1/{dev,ip,name,prefix}

both "dev" containing "eth0"
both "name" containing different names for the "eth0:name" part
  eg: "if1" and "if2" or whatever you like
both "ip" containing different ip's
  eg: "192.168.0.1" and "192.168.0.2"
both "prefix" containing relevant prefix for the relating ip
  eg: "24" for the example

-- 
regards 'n greez,
Guenther Fuchs
(aka "muh" and "powerfox")
Received on Mon Mar 3 06:22:45 2008
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 03 Mar 2008 - 06:22:47 GMT by hypermail 2.1.8