Duplicate ip address

Apalis IMX6D 1GB IT V1.1C
Toradex embedded Linux reference minimal image 6.3.0 build 10

Secondary IP addresses are created and routes are inserted beyond the one set on wired.network.

We cannot eliminate this event.

we disabled wpa_supplicant and systemd-resolved:
systemctl mask wpa_supplicant.service
systemctl disable systemd-resolved.service

the static configuration file:
root@apalis-imx6-10922881:~# cat /etc/systemd/network/wired.network
[Match]
Name=eth0

[Network]
Address=10.10.10.199/24
Gateway=10.10.10.1

rebooted the device, these are the active processes under the sodimm status:

root@apalis-imx6-10922881:~# ps
PID USER VSZ STAT COMMAND
1 root 25936 S {systemd} /sbin/init
2 root 0 SW [kthreadd]
3 root 0 IW< [rcu_gp]
4 root 0 IW< [rcu_par_gp]
5 root 0 IW< [slub_flushwq]
6 root 0 IW< [netns]
7 root 0 IW [kworker/0:0-eve]
8 root 0 IW< [kworker/0:0H-kb]
9 root 0 IW [kworker/u4:0-ev]
10 root 0 IW< [mm_percpu_wq]
11 root 0 IW [rcu_tasks_trace]
12 root 0 SW [ksoftirqd/0]
13 root 0 IW [rcu_sched]
14 root 0 SW [migration/0]
15 root 0 SW [cpuhp/0]
16 root 0 SW [cpuhp/1]
17 root 0 SW [migration/1]
18 root 0 SW [ksoftirqd/1]
19 root 0 IW [kworker/1:0-cgr]
20 root 0 IW< [kworker/1:0H-ev]
21 root 0 SW [kdevtmpfs]
22 root 0 IW< [inet_frag_wq]
23 root 0 IW [kworker/0:1-eve]
24 root 0 SW [oom_reaper]
25 root 0 IW< [writeback]
26 root 0 SW [kcompactd0]
27 root 0 IW< [kblockd]
28 root 0 SW [irq/140-stmpe]
29 root 0 IW [kworker/0:2-eve]
30 root 0 SW [watchdogd]
31 root 0 IW [kworker/1:1-eve]
32 root 0 IW< [kworker/0:1H-mm]
33 root 0 IW< [rpciod]
34 root 0 IW< [xprtiod]
35 root 0 IW [kworker/u4:1-ev]
36 root 0 SW [kswapd0]
37 root 0 IW< [nfsiod]
39 root 0 IW [kworker/1:2-eve]
40 root 0 SW [irq/275-120000.]
41 root 0 SW [cec-dw_hdmi]
42 root 0 SW [irq/275-dw-hdmi]
43 root 0 SW [130000.gpu]
44 root 0 SW [134000.gpu]
45 root 0 SW [2204000.gpu]
46 root 0 SW [card1-crtc0]
47 root 0 SW [card1-crtc1]
48 root 0 SW [card1-crtc2]
49 root 0 SW [card1-crtc3]
50 root 0 SW [scsi_eh_0]
51 root 0 IW< [scsi_tmf_0]
52 root 0 IW [kworker/u4:2-ev]
53 root 0 IW [kworker/u4:3-ev]
55 root 0 IW [kworker/u4:4-ev]
56 root 0 IW [kworker/u4:5]
57 root 0 IW< [kworker/u5:0]
58 root 0 IW< [sdhci]
59 root 0 SW [irq/296-mmc0]
60 root 0 SW [irq/150-2190000]
61 root 0 IW< [sdhci]
62 root 0 SW [irq/297-mmc1]
63 root 0 IW< [sdhci]
64 root 0 SW [irq/298-mmc2]
65 root 0 SW [2101000.jr-engi]
66 root 0 SW [irq/212-2194000]
67 root 0 IW [kworker/0:3]
68 root 0 SW [hwrng]
69 root 0 SW [2102000.jr-engi]
70 root 0 IW< [mmc_complete]
71 root 0 IW< [mmc_complete]
72 root 0 IW< [mld]
73 root 0 IW< [kworker/1:1H-kb]
74 root 0 IW< [ipv6_addrconf]
164 root 0 IW< [ci_otg]
165 root 0 SW [irq/306-imx_the]
166 root 0 SW [jbd2/mmcblk2p2-]
167 root 0 IW< [ext4-rsv-conver]
168 root 0 IW< [kworker/1:2H-kb]
191 rpc 3120 S /usr/sbin/rpcbind -w -f
193 root 18812 S /lib/systemd/systemd-journald
200 root 0 IW [kworker/1:3-eve]
212 root 17316 S /lib/systemd/systemd-udevd
225 systemd- 15784 S /lib/systemd/systemd-timesyncd
244 root 0 SW [irq/307-vdoa]
247 root 0 SW [irq/309-coda-jp]
248 root 0 IW< [coda]
259 root 0 IW< [kworker/0:2H-mm]
262 root 0 SW [spi0]
263 root 0 SW [spi1]
338 root 0 IW< [kworker/1:3H-kb]
585 root 0 IW< [kworker/0:3H]
601 root 2348 S /sbin/klogd -n
602 root 2348 S /sbin/syslogd -n
603 messageb 3936 S /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog
606 root 6552 S /usr/sbin/ofonod -n
607 root 14632 S /lib/systemd/systemd-logind
614 root 0 IW [kworker/1:4-cgr]
643 root 9908 S /usr/sbin/connmand -n
647 systemd- 7356 S /lib/systemd/systemd-networkd
650 avahi 4204 S avahi-daemon: running [apalis-imx6-10922881.local]
652 avahi 4032 S avahi-daemon: chroot helper
660 root 0 IW< [cfg80211]
661 root 0 SW [irq/58-2188000.]
665 root 3652 S /sbin/agetty -o -p – \u --noclear - linux
666 root 1692 S /sbin/agetty -8 -L ttymxc0 115200 linux
672 root 2088 R /usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -B
673 root 2436 S -sh
680 root 2436 R ps

a secondary IP is created:

root@apalis-imx6-10922881:~# ip addr show
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
valid_lft forever preferred_lft forever
2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
3: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
link/can
4: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:14:2d:a6:ab:81 brd ff:ff:ff:ff:ff:ff
inet 10.10.10.199/24 brd 10.10.10.255 scope global eth0
valid_lft forever preferred_lft forever
inet 10.10.10.51/24 brd 10.10.10.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet6 fe80::214:2dff:fea6:ab81/64 scope link
valid_lft forever preferred_lft forever
5: sit0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
6: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether 26:e3:f3:bb:c3:46 brd ff:ff:ff:ff:ff:ff

other routes are inserted beyond 10.10.10.1:

root@apalis-imx6-10922881:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth0
4.4.4.4 10.10.10.250 255.255.255.255 UGH 0 0 0 eth0
8.8.8.8 10.10.10.250 255.255.255.255 UGH 0 0 0 eth0
10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.10.10.250 0.0.0.0 255.255.255.255 UH 0 0 0 eth0


net 10.10.10.51/24 was not configured. Who sets it?
Who sets the other routes?
This creates network problems and instability for me.

Tks
best regards
Filippo

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Filippo,

Thank you for reaching out with your network configuration issue on the Apalis iMX6D module. It seems like the unexpected secondary IP address and additional routes might be due to network management tools or configurations.

Here are some steps you can take to diagnose and resolve this issue:

  1. Disable ConnMan: If you prefer using systemd-networkd, ensure that connman is not running, as it might be managing your network settings. You can disable it with:

    systemctl stop connman.service
    systemctl disable connman.service
    
  2. Verify Systemd-Networkd Configuration: Double-check your /etc/systemd/network/wired.network file to ensure it’s correctly configured. Also, look for any other .network files that might be influencing the network settings.

  3. Check for DHCP Clients: Ensure no DHCP client is running that could be assigning additional IP addresses. You can check for running DHCP clients with:

    ps aux | grep dhclient
    ps aux | grep udhcpc
    

    If any are running, stop and disable them.

  4. Inspect ConnMan Cache: If connman was used previously, it might have cached configurations. Check /var/lib/connman for any saved configurations and remove them if necessary.

  5. Review Network Interfaces: Use ip addr show to list all network interfaces and their configurations. This can help identify any unexpected settings.

  6. Check Routing Table: Use ip route show to inspect the routing table. If there are routes you did not configure, they might be added by a network management tool or a script.

By following these steps, you should be able to identify and resolve the issue with the unexpected secondary IP address and routes. If the problem persists, consider reviewing any custom scripts or services that might be affecting network configurations.

I hope this helps! If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

https://community.nxp.com/t5/Layerscape/lx2160ardb-s-network-could-not-work-for-lsdk20-04/td-p/1082115.