Webmin/Virtualmin : IP address issue for virtual domains

5 posts / 0 new
Last post
#1 Mon, 06/11/2007 - 09:47
julien.pham

Webmin/Virtualmin : IP address issue for virtual domains

Hi,

I have a little problem configuring network using webmin and its network module. Let's say my IP address is xxx.xxx.xxx.xxx, and I have a second, virtual one, yyy.yyy.yyy.yyy.

My initial conf.d/net config is like this, without the virtual one.

config_eth0=( "xxx.xxx.xxx.xxx netmask 255.255.255.0" ) routes_eth0=( "default gw xxx.xxx.xxx.254" )

According to my ISP, OVH, to add in ssh a virtual IP, I should change my net file like this :

config_eth0=( "xxx.xxx.xxx.xxx netmask 255.255.255.0" "yyy.yyy.yyy.yyy netmask 255.255.255.255 brd yyy.yyy.yyy.255" ) routes_eth0=( "default gw xxx.xxx.xxx.254" )

But, if I do the changes from within webmin, it changed the net file like this :

config_eth0="( "xxx.xxx.xxx.xxx netmask 255.255.255.0"" routes_eth0="( "default gw xxx.xxx.xxx.254" )" iface_eth0="xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.255 netmask 255.255.255.0" alias_eth0="yyy.yyy.yyy.yyy" netmask_eth0="255.255.255.255" broadcast_eth0="yyy.yyy.yyy.255"

First, notice the wrong parenthis on the first line. Second, the eth0 seems to be declared twice, one with the config_eth0 and the other with iface_eth0.

So, why could I not do the change myself in ssh? Because if I do the way my ISP want it to do, I cannot use my second IP address for virtual domains as it does dot recon it.

Any idea?

Thanks

Mon, 06/11/2007 - 14:58
Joe
Joe's picture

Hey Julien,

I believe you mentioned this was a Gentoo box? We don't have a lot of Gentoo users, so far, so bugs don't get noticed.

I'd suggest filing a bug about the incorrect format of the files, with references to documentation about the correct format (if the format has changed in previous Gentoo versions, that's also useful to know). That'll allow us to get Webmin spitting out the right things for Gentoo, as well as parsing things correctly when reading in the details of existing configuration files.

--

Check out the forum guidelines!

Tue, 06/12/2007 - 01:44
julien.pham

I'm not a network specialist as well, so I'll try to do what I can...

But meanwhile, any idea on how I can configure my network at hand to use this virtual IP I have? I know how to configure it in the "net" file, but if I do so, then virtualmin does not recon it as a valid virtual IP.

So perhaps the good question is: how do I setup virtualmin so it accepts this virtual IP?

Thanks

Tue, 06/12/2007 - 02:07
julien.pham

Ok, so I found what the problem is, and I'll fill a bug report. Now gentoo is at 2006 version. And the 2004 version used the iface_eth0 setup.

The 2006 version uses conf_eth0 instead.

Old setup:
iface_eth0="<your IP> broadcast[broadcast> netmask[your netmask>"

New setup:
config_eth0=( "<your IP netmask[netmask>" )
routes_eth0=( "default gw[broadcast>" )

Tue, 06/12/2007 - 02:20
Topic locked