You are not logged in.

#1 2023-09-04 19:19:15

genji
Member
Registered: 2023-08-13
Posts: 47

[SOLVED] My networking device is getting two IP addresses!

Hello all!  My ens18 device has two different IP addresses!

It's only supposed to have 192.168.0.252 but for some reason it also is being assigned 192.168.0.14

Why or how do I fix it?

I typed 'nmtui' and went to edit the connection but it only shows my static 192.168.0.252 entry and I have no idea where .14 is coming from!

[genji@gateway ~]$ 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: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 62:80:2d:69:43:30 brd ff:ff:ff:ff:ff:ff
    altname enp0s18
    inet 192.168.0.252/24 brd 192.168.0.255 scope global noprefixroute ens18
       valid_lft forever preferred_lft forever
    inet 192.168.0.14/24 brd 192.168.0.255 scope global secondary dynamic noprefixroute ens18
       valid_lft 86277sec preferred_lft 86277sec

Last edited by genji (2023-09-04 19:40:39)

Offline

#2 2023-09-04 19:20:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,048

Re: [SOLVED] My networking device is getting two IP addresses!

what does `tree /etc/systemd/` show?

Offline

#3 2023-09-04 19:23:18

genji
Member
Registered: 2023-08-13
Posts: 47

Re: [SOLVED] My networking device is getting two IP addresses!

Hi Scimmia

Scimmia wrote:

what does `tree /etc/systemd/` show?

[genji@gateway-nord ~]$ tree /etc/systemd/
/etc/systemd/
|-- coredump.conf
|-- homed.conf
|-- journal-remote.conf
|-- journal-upload.conf
|-- journald.conf
|-- logind.conf
|-- network
|-- networkd.conf
|-- oomd.conf
|-- pstore.conf
|-- resolved.conf
|-- sleep.conf
|-- system
|   |-- dbus-org.freedesktop.nm-dispatcher.service -> /usr/lib/systemd/system/NetworkManager-dispatcher.service
|   |-- default.target.wants
|   |   `-- nordvpnd.service -> /usr/lib/systemd/system/nordvpnd.service
|   |-- getty.target.wants
|   |   `-- getty@tty1.service -> /usr/lib/systemd/system/getty@.service
|   |-- multi-user.target.wants
|   |   |-- NetworkManager.service -> /usr/lib/systemd/system/NetworkManager.service
|   |   |-- remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
|   |   `-- sshd.service -> /usr/lib/systemd/system/sshd.service
|   `-- network-online.target.wants
|       `-- NetworkManager-wait-online.service -> /usr/lib/systemd/system/NetworkManager-wait-online.service
|-- system.conf
|-- timesyncd.conf
|-- user
|   `-- sockets.target.wants
|       `-- p11-kit-server.socket -> /usr/lib/systemd/user/p11-kit-server.socket
`-- user.conf

9 directories, 22 files

I have another Arch install that I set up the exact same way and doesn't exhibit this behavior!  It only has 1 IP address as it's supposed to!

Offline

#4 2023-09-04 19:40:28

genji
Member
Registered: 2023-08-13
Posts: 47

Re: [SOLVED] My networking device is getting two IP addresses!

I think I fixed it, but I'm not exactly sure why it happened..  I think even though I assigned a static IP for it in networkmanager, there was also a DHCP entry in my router for some reason.  I deleted the DHCP lease and assigned it as static in the router itself as well now, and upon reboot, it's fixed.  I don't know why the DHCP lease was being assigned to it even when I had a specific IP and gateway set up for static..  Oh well!  thanks !

Offline

Board footer

Powered by FluxBB