Webmin/Virtualmin : IP address issue for virtual domains

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

Webmin/Virtualmin : IP address issue for virtual domains


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" ) 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" "yyy.yyy.yyy.yyy netmask 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"" routes_eth0="( "default gw xxx.xxx.xxx.254" )" iface_eth0="xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.255 netmask" alias_eth0="yyy.yyy.yyy.yyy" netmask_eth0="" 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?


Mon, 06/11/2007 - 14:58
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

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?


Tue, 06/12/2007 - 02:07

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