You are not logged in.

#1 2020-04-28 13:39:05

evanharwin
Member
Registered: 2020-04-28
Posts: 3

[Solved] Copying a network configuration

Hi all,

I was wondering if there is a neat way to copy the network configuration from one arch install to another.

It would be useful to me if I could copy the configuration from the arch iso to the system installed on a separate disk in the same machine. The hardware obviously shall remain constant, as is the naming of the ethernet device, however the hostname does change.

Is there a sensible way to do this?

any advice welcome smile

Last edited by evanharwin (2020-04-30 06:37:56)

Offline

#2 2020-04-28 14:53:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,322
Website

Re: [Solved] Copying a network configuration

Yes it is possible.

If you want to know how to do it, you need to tell us what networking tools you are using.  That said, I don't see much point in doing this just from the iso.  First, it's not like you've configured a wide range of access points in the live iso - almost certainly just one.  So it'd be just as easy to start from scratch in the new system.

Also note that the interface names likely will change.  So depending on which services you use, you will need to modify the configs.

For me, I'd just copy wpa_supplicant.conf, but that's all I use (once dhcpcd and it's wpa_supplicant hook are enabled).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-04-28 14:53:53

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,156

Re: [Solved] Copying a network configuration

Yes.  I might suggest sudp amd rsync used with ssh for intermachine stuff, and rsync and sudo for intramachine stuff
What are you using to manage your networks?  The configurations for Networkmanager, netctl, and systemd-networks are kept in different places, but are usually someplace in /etc.

Of course, one needs be aware of differing subnets, static IPs that might conflict, and different machines naming their interfaces differently.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2020-04-29 07:00:00

evanharwin
Member
Registered: 2020-04-28
Posts: 3

Re: [Solved] Copying a network configuration

Yes, this is interesting and rsync is a cool tool but not really what I was looking for.

The situation I am in is that I have a functional arch install but I can't get the network to connect, however on the arch .iso it is all functioning fine. It would be nice to just copy the config files over rather than to work out the exact config I need. I believe that the arch .iso uses netctl, comparing the folders in /etc/ to the list of network managers in the wiki, which is the only one with a folder that looks functional.

Offline

#5 2020-04-29 07:14:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,009

Re: [Solved] Copying a network configuration

You can just do the configuration via netctl the same way on the installed system, I have a feeling we are running into XY Problem territory. What is your actual issue? If your wifi adapter is completely unrecognized on the installed system due to either missing packages or bugs on the new kernel or... copying your network config will do exactly nothing at all.

To preempt a common cause for this scenario, is linux-firmware, netctl and dialog installed? What actually happens? Netctl does not support the latest dhcpcd unless you are using the testing variant, what is configured here?

Offline

#6 2020-04-30 06:36:55

evanharwin
Member
Registered: 2020-04-28
Posts: 3

Re: [Solved] Copying a network configuration

I think V1del may be right about the XY problem. I my root issue was I was installing arch as a guest OS in vmware, and I have a rather fiddly network setup at home so I didn't want to troubleshoot the ip routing table. Turns out NetworkManager knew what it was doing and my problem was resolved as soon as I installed that. Apologies for being a nuisance!

Offline

#7 2024-08-20 12:19:47

DrVektor
Member
Registered: 2024-08-19
Posts: 3

Re: [Solved] Copying a network configuration

How can i copy iwctl network configuration to installation NetworkManager configuration. i am using manual installation with iwctl and i am installing networkmanager and wpa supplicant to my installation place. But i coulnd find any knowladge about how to copy iwd profil to wpa supplicant. There is a file /var/lib/iwd/networkname.psk file but if i copy this to /etc/wpa_supplicant/... inside will it works? There is two options inside archinstall "script like copy iso network configuration to instal" and "Use NetworkManager (necessary to configure internet graphically in GNOME and KDE Plasma)". How archinstall do second option? How archinstall script can copy iwctl wireless profile to wpa_supplicant profile?. Thank you for all your helps.?

Last edited by DrVektor (2024-08-20 12:26:23)

Offline

#8 2024-08-21 06:32:49

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,090
Website

Re: [Solved] Copying a network configuration

Welcome to the forums, DrVektor.

Please do not
1) necro-bump old, solved threads.
2) hijack threads unrelated to your problem.

Please open a new thread pertaining to your issue at hand.
Closing.


Inofficial first vice preseident of the Rust Evangelism Strike Force

Offline

Board footer

Powered by FluxBB