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