Re: Edit NIC Address
On Fri, Jan 5, 2024 at 12:18 PM 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 > Try this: ls "/etc/NetworkManager/system-connections/Wired connection 1.nmconnection" Or this: ls /etc/NetworkManager/system-connections/Wired\ connection\ 1.nmconnection The spaces in the name create an annoyance. I can go to the directory /etc/NetworkManager/system-connections/ > > But I cannot find the file to edit. > > Can anybody help me please? > > David. > > -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀
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
Re: Edit NIC Address
Am 05.01.2024 um 10:41:26 Uhr schrieb David: > But I cannot find the file to edit. Use the Networkmanager (nmcli, nmtui) to edit it. nmcli connection show nmcli connection edit "print" gives all attributes set changes it. save to write it and then nmcli connection up to apply it.
Re: Edit NIC Address
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.
Re: Edit NIC Address
On Fri, Jan 05, 2024 at 08:15:08PM +1100, Keith Bainbridgge wrote: > On 5/1/24 15:30, David wrote: > > Morning Group, > > > > 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. > > > > > I use nmtuI (from a terminal) for jobs like this. I think it is installed by > default. Right now we have strong indications that the remote box is not a default install. My advice to Original Poster is to contact the people who know more about the (remote) machine. They even might be the best persons for making the IP-address change. > I'd bet you'll be terminated when the change activates And I would like to know how to reconnect after the change. Yeah, it might not be possible, so I hope O.P. can revert the change. > All the best > > Keith Bainbridge > +61 (0)447 667 468 > UTC + 10:00 Awareness of timezone differences is another good reason to reply below previous text. > > Thank you, Thank the group by sharing knowledge how it went. > > David. Groeten Geert Stappers -- Silence is hard to parse signature.asc Description: PGP signature
Re: Edit NIC Address
David I use nmtuI (from a terminal) for jobs like this. I think it is installed by default. I'd bet you'll be terminated when the change activates All the best Keith Bainbridge keith.bainbridge.3...@gmail.com +61 (0)447 667 468 UTC + 10:00 On 5/1/24 15:30, David wrote: Morning Group, 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. Thank you, David.
Re: Edit NIC Address
Am 05.01.2024 um 04:30:44 Uhr schrieb David: > 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? There are various ways to configure it. Files in /etc/network, systemd-networkd, NetworkManager, etc.
Re: Edit NIC Address
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. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata