Re: Automatic 6to4 for network-manager



On Tue, 17 Nov 2009, Dan Williams wrote:

> > Does nm-connection-editor have an "export" and "import" function? That's what
> > I use system-config-network-tui for. So I don't have to hunt down and backup
> > various /etc/sysconfig files and do complicated restored. I just run
> > system-config-network-tui > backup and run that file back into system-config-network-tui
> > to restore.
> 
> Not for normal connections.  I didn't even know they had import or
> export function in -tui.  Good point though.  Does it just stuff the
> files into tarball or something?

Yup, using system-config-network-cmd

It gives output like this:

DeviceList.Ethernet.eth0.Type=Ethernet
DeviceList.Ethernet.eth0.Netmask=255.255.255.224
DeviceList.Ethernet.eth0.BootProto=none
DeviceList.Ethernet.eth0.Device=eth0
DeviceList.Ethernet.eth0.OnBoot=true
DeviceList.Ethernet.eth0.IP=193.110.157.194
DeviceList.Ethernet.eth0.DeviceId=eth0
DeviceList.Ethernet.eth0.AllowUser=false
DeviceList.Ethernet.eth0.Gateway=193.110.157.222
ProfileList.default.ActiveDevices.1=eth0
ProfileList.default.HostsList.1.Comment=
ProfileList.default.HostsList.1.IP=127.0.0.1
ProfileList.default.HostsList.1.Hostname=localhost.localdomain
ProfileList.default.HostsList.1.AliasList.1=localhost
[...]

It walks all the involved scripts and grabs all the settings from them.
To restore (import), use system-config-network-cmd -i

We use this on our appliances when users create a system backup. But as
I said, it does not support all variables from the sysconfig/networking-scripts/
files.

Paul


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]