On Sun, May 18, 2025 at 10:35:37 -0500, Nicholas Geovanis wrote:
> If you mean "what file contains the IP address and hostname of my own
> server?": It depends whether you use NetworkManager to configure networking
> or the older style.
> 
> In the older style the config file goes in /etc/sysconfig/network-scripts
> and contains the NIC name as part of the filename. With NetworkManager the
> file has a different format and name and goes in
> /etc/NetworkManager/connection-scripts.
> There are command-line tools to configure NetworkManager-style like nmtui
> and nmcli if you reject GUIs ;-) You may need to install one of them if not
> already.

You're thinking of Red Hat, perhaps.  Or some other non-Debian distribution.

Debian doesn't use /etc/sysconfig/.  The standard method of configuring
interfaces in Debian uses the ifupdown package, and its configuration
files are in /etc/network/.  Specifically, see "man 5 interfaces" for
details of the /etc/network/interfaces file, or files placed in the
/etc/network/interfaces.d/ subdirectory.

Debian also offers Network Manager, which presumably works the same as it
does in your other distributions.

Debian also offers systemd-networkd(8) as a third option.

Any given Debian system may use any one of these means of configuring
network interfaces.  A system may also use a combination of them; for
example, it's not uncommon to configure the loopback interface in
/etc/network/interfaces, but to configure the wireless interface in NM.
Or, one may use systemd.link(5) files to configure the names of the
interfaces, and then use /etc/network/interfaces to configure their IP
addresses.

Lots of options are available, to suit the needs of Debian's extremely
wide and diverse user base.

Reply via email to