What happened to /etc/network/ipconfig ?

Renaud Olgiati

New Member
Joined
Jan 10, 2026
Messages
2
Reaction score
2
Credits
19
Having to completely rebuild my home network, and looking for the IP address of the gateway, I tried to access /etc/network/ipconfig where I was used to fine the needed details

Surprise, no /etc/network/ipconfig ! WTF ?

Where has that information gone ?

any info gratefuly received,

Renaud Olgiati, on the banks of the Paraguay River
 


you are about 12-15 years behind the times
:)


NetworkManager, nmcli replaced networkd a LONG time ago.

These are a little dated, but they should get you by.


 
Having to completely rebuild my home network, and looking for the IP address of the gateway, I tried to access /etc/network/ipconfig where I was used to fine the needed details

Surprise, no /etc/network/ipconfig ! WTF ?

Where has that information gone ?

any info gratefuly received,

Renaud Olgiati, on the banks of the Paraguay River
In the case of a system not using NetworkManager, and so not including the nmcli command, generic commands usable to see the ip address and gateway are the commands ip and netstat, for example:
Code:
[~]$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 9c:6b:00:29:37:48 brd ff:ff:ff:ff:ff:ff
    altname enx9c6b00293748
    inet 192.168.0.207/24 brd 192.168.0.255 scope global enp3s0
       valid_lft forever preferred_lft forever
    inet 192.168.0.6/24 brd 192.168.0.255 scope global secondary dynamic enp3s0
       valid_lft 83932sec preferred_lft 83932sec
    inet6 2001:8003:ccaa:6100:9e6b:ff:fe29:3748/64 scope global dynamic mngtmpaddr proto kernel_ra
       valid_lft 81763sec preferred_lft 81763sec
    inet6 fe80::9e6b:ff:fe29:3748/64 scope link proto kernel_ll
       valid_lft forever preferred_lft forever
3: wlp0s20f3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether f0:57:a6:a9:f4:cf brd ff:ff:ff:ff:ff:ff
    altname wlxf057a6a9f4cf


[~]$ ip r
default via 192.168.0.1 dev enp3s0
192.168.0.0/24 dev enp3s0 proto kernel scope link src 192.168.0.207
192.168.0.1 dev enp3s0 scope link


[~]$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 enp3s0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 enp3s0
192.168.0.1     0.0.0.0         255.255.255.255 UH        0 0          0 enp3s0

The manpages have info for lots more possible outputs.
 


Follow Linux.org

Members online


Top