How do I save / export the current network configuration in Linux?
-
# /usr/bin/system-config-network-cmd -e > /tmp/network_cfg # cat /tmp/network_cfg DeviceList.Ethernet.eth0.Hostname=mars DeviceList.Ethernet.eth0.HardwareAddress=00:0C:29:C4:ED:43 DeviceList.Ethernet.eth0.Type=Ethernet DeviceList.Ethernet.eth0.BootProto=dhcp DeviceList.Ethernet.eth0.Device=eth0 DeviceList.Ethernet.eth0.OnBoot=true DeviceList.Ethernet.eth0.DeviceId=eth0 HardwareList.Ethernet.eth0.Status=ok HardwareList.Ethernet.eth0.Name=eth0 HardwareList.Ethernet.eth0.Type=Ethernet HardwareList.Ethernet.eth0.Card.ModuleName=pcnet32 HardwareList.Ethernet.eth0.Description=Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] ProfileList.default.ActiveDevices.1=eth0 ProfileList.default.HostsList.1.IP=127.0.0.1 ProfileList.default.HostsList.1.Hostname=mars ProfileList.default.HostsList.1.AliasList.1=localhost.localdomain ProfileList.default.HostsList.1.AliasList.2=localhost ProfileList.default.HostsList.2.IP=::1 ProfileList.default.HostsList.2.Hostname=localhost6.localdomain6 ProfileList.default.HostsList.2.AliasList.1=localhost6 ProfileList.default.DNS.SecondaryDNS= ProfileList.default.DNS.SearchList.1=home ProfileList.default.DNS.Domainname=
© Lightnetics 2024