Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Webmin trashes /etc/conf.d/net
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
allengwinn
n00b
n00b


Joined: 21 Aug 2006
Posts: 3

PostPosted: Mon Aug 21, 2006 2:54 pm    Post subject: Webmin trashes /etc/conf.d/net Reply with quote

This has been going on for awhile, but until recently, the old format for /etc/conf.d/net worked. Now, it's no longer tolerated so I guess it's time to fix Webmin.

From bugzilla...

Webmin's net module writes /etc/conf.d/net in a deprecated format. Initially,
it was the config_ethx="...." with the alias_ethx="..." However, that format
has now been fully deprecated--and webmin just trashes the config.

This means other really useful things like Virtualmin don't work--and end up
trashing your server. So this should proably be masked out until someone fixes
it. Who knows... maybe I'll see if I can get around to it this week.

Seems there was another bad problem with Virtualmin dealing with how it
processed virtual interfaces versus IP addresses under Gentoo.

Anyway, "out of the box" it turns this:

----
config_eth0=( "192.168.1.132 netmask 255.255.255.128 brd 192.168.1.255" )
routes_eth0=( "default gw 192.168.1.254" )
----

into this:

----
config_eth0="( "192.168.1.132 netmask 255.255.255.128 brd 192.168.1.255" )"
routes_eth0="( "default gw 192.168.1.254" )"
alias_eth0="192.168.1.130"
netmask_eth0="255.255.255.128"
broadcast_eth0="192.168.1.255"
----

...which, of course, makes the OS do everything but boot right!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Mon Aug 21, 2006 2:56 pm    Post subject: Reply with quote

Old config should still work .....

The issue is that you're mixing configs
so if you use config_eth0=() then we ignore iface_eth0 and the others.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum