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

Re: Edit NIC Address



On 1/5/24 05:41, David wrote:
On Fri, 2024-01-05 at 00:43 -0500, Felix Miata wrote:
David composed on 2024-01-04 04:30 (UTC):

With the latest Debian I'm trying to find the file to edit to
change
the IP address of a remote box, can anybody point me in the correct
direction please?

I can SSH into this box, but cannot find the file to edit.

Traditionally it would be in /etc/network/interfaces used by
ifupdown. Mine is in
/etc/systemd/network/eth0.network because I'm using systemd-networkd.
Where
NetworkMangler users keep theirs I have no information. If you can
search files in
the /etc/ tree for string 192.168. or 10.0. or 172.16. likely you'll
find it.
Thank you for the replies.

After doing a grep search for 192.168.205 I was given the
directory /etc/NetworkManager/system-connections/Wired connection
1.nmconnection::address1-192.168.205.42/24

I can go to the directory /etc/NetworkManager/system-connections/

But I cannot find the file to edit.

Can anybody help me please?

David.



The file is in /run/NetworkManager/system-connections if you haven't placed a configuration file in /etc/NetworkManager/system-connections

I copy the files from /run/NetworkManager/system-connections to /NetworkManager/system-connections after first boot.

the debian wiki has some information and here:

https://www.redhat.com/sysadmin/becoming-friends-networkmanager


--
Hindi madali ang maging ako



Reply to: