• Re: Confused about ethernet connections

    From David W. Hodgins@dwhodgins@nomail.afraid.org to alt.os.linux.mageia on Tue Sep 2 14:29:11 2025
    From Newsgroup: alt.os.linux.mageia

    On Tue, 02 Sep 2025 08:27:58 -0400, Grimble <grimble@nomail.afraid.org> wrote:

    I've replaced the motherboard on this machine. Most things worked on start-up, but there's a problem with ethernet connections. Before the
    change, the ethernet connection was enp2s0, statically linked to
    192.168.1.9.
    Now ip addr tells me the connection is enp4s0, dynamically linked to 192.168.1.188. When I try to reconfigure it to static/192.168.1.9, I'm
    told that "that address is already used by a connection that starts on
    boot (enp2s0) and that I have to configure it not to start at boot."
    I don't understand where enp2s0 is declared, because ip adsdr makes no mention.
    Help!

    The old one is still referred to in a file /etc/sysconfig/network-scripts/ifcfg-enp2s0 that
    was created when that nic existed.

    Either delete the file from that directory manually, or you can delete it using draknetcenter.

    Instead of deleting it though, you may want to move it to /root so you can check it's values later.

    Regards, Dave Hodgins
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Grimble@grimble@nomail.afraid.org to alt.os.linux.mageia on Tue Sep 2 13:27:58 2025
    From Newsgroup: alt.os.linux.mageia

    I've replaced the motherboard on this machine. Most things worked on
    start-up, but there's a problem with ethernet connections. Before the
    change, the ethernet connection was enp2s0, statically linked to
    192.168.1.9.
    Now ip addr tells me the connection is enp4s0, dynamically linked to 192.168.1.188. When I try to reconfigure it to static/192.168.1.9, I'm
    told that "that address is already used by a connection that starts on
    boot (enp2s0) and that I have to configure it not to start at boot."
    I don't understand where enp2s0 is declared, because ip adsdr makes no mention.
    Help!
    --
    Grimble
    Registered Linux User #450547
    Machine 'Bach' running Plasma 5.27.10 on 6.6.101-desktop-1.mga9 kernel.
    Mageia release 9 (Official) for x86_64

    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Mike Easter@MikeE@ster.invalid to alt.os.linux.mageia on Tue Sep 2 09:19:06 2025
    From Newsgroup: alt.os.linux.mageia

    Grimble wrote:
    I've replaced the motherboard on this machine. Most things worked on start-up, but there's a problem with ethernet connections. Before the change, the ethernet connection was enp2s0, statically linked to 192.168.1.9.
    Now-a ip addr tells me the connection is enp4s0, dynamically linked to 192.168.1.188. When I try to reconfigure it to static/192.168.1.9, I'm
    told that "that address is already used by a connection that starts on
    boot (enp2s0) and that I have to configure it not to start at boot."
    I don't understand where enp2s0 is declared, because ip adsdr makes no mention.
    Help!

    What do you see when you look 'inside' your router? You can usually do
    it w/ a browser and the gateway IP address + your admin credentials.
    --
    Mike Easter
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Grimble@grimble@nomail.afraid.org to alt.os.linux.mageia on Thu Sep 4 12:14:34 2025
    From Newsgroup: alt.os.linux.mageia

    On 02/09/2025 19:29, David W. Hodgins wrote:
    On Tue, 02 Sep 2025 08:27:58 -0400, Grimble <grimble@nomail.afraid.org> wrote:

    I've replaced the motherboard on this machine. Most things worked on
    start-up, but there's a problem with ethernet connections. Before the
    change, the ethernet connection was enp2s0, statically linked to
    192.168.1.9.
    Now-a ip addr tells me the connection is enp4s0, dynamically linked to
    192.168.1.188. When I try to reconfigure it to static/192.168.1.9, I'm
    told that "that address is already used by a connection that starts on
    boot (enp2s0) and that I have to configure it not to start at boot."
    I don't understand where enp2s0 is declared, because ip adsdr makes no
    mention.
    Help!

    The old one is still referred to in a file /etc/sysconfig/network- scripts/ifcfg-enp2s0 that
    was created when that nic existed.

    Either delete the file from that directory manually, or you can delete
    it using draknetcenter.

    Instead of deleting it though, you may want to move it to /root so you
    can check it's values later.

    Regards, Dave Hodgins
    Thanks, David, that did it.
    Best wishes,
    --
    Grimble
    Registered Linux User #450547
    Machine 'Bach' running Plasma 5.27.10 on 6.6.101-desktop-1.mga9 kernel.
    Mageia release 9 (Official) for x86_64
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Grimble@grimble@nomail.afraid.org to alt.os.linux.mageia on Sun Sep 28 12:26:20 2025
    From Newsgroup: alt.os.linux.mageia

    On 02/09/2025 19:29, David W. Hodgins wrote:
    On Tue, 02 Sep 2025 08:27:58 -0400, Grimble <grimble@nomail.afraid.org> wrote:


    The old one is still referred to in a file /etc/sysconfig/network- scripts/ifcfg-enp2s0 that
    was created when that nic existed.

    Either delete the file from that directory manually, or you can delete
    it using draknetcenter.

    Instead of deleting it though, you may want to move it to /root so you
    can check it's values later.

    Regards, Dave Hodgins
    On a not-unrelated matter, I am logging many "IPv4: martian source
    messages from 192.168.1 196 on dev enp5s0". Although ifcfg-enp5s0 has "BOOTPROTO=static,IPADDR=192.168.1.10", I can see from a network scan
    that it has also picked up a DHCP address, which is the ...196 one. How
    can I prevent that?
    --
    Grimble
    Machine 'Haydn' running Plasma 5.27.10 on 6.6.101-desktop-1.mga9 kernel.
    Mageia release 9 (Official) for x86_64
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From David W. Hodgins@dwhodgins@nomail.afraid.org to alt.os.linux.mageia on Sun Sep 28 11:45:12 2025
    From Newsgroup: alt.os.linux.mageia

    On Sun, 28 Sep 2025 07:26:20 -0400, Grimble <grimble@nomail.afraid.org> wrote: <snip>
    On a not-unrelated matter, I am logging many "IPv4: martian source
    messages from 192.168.1 196 on dev enp5s0". Although ifcfg-enp5s0 has "BOOTPROTO=static,IPADDR=192.168.1.10", I can see from a network scan
    that it has also picked up a DHCP address, which is the ...196 one. How
    can I prevent that?

    I get them too, but in my case I know it's due to having two nics (one wireless, and one wired),
    with both working, when the ethernet is plugged into the laptop. I get maximum speed when
    plugged in, but still remain connected when it's unplugged.

    As long as it's working, I stopped worrying about martian packets a long time ago.

    Assuming you're now using NetworkManager, as I am ...

    [root@x9t ~]# grep -v ^'#' /etc/NetworkManager/NetworkManager.conf
    [main]
    plugins=ifcfg-rh,keyfile
    dns=none
    rc-manager=unmanaged

    [root@x9t ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0
    BOOTPROTO=static
    IPADDR=192.168.10.222
    NETMASK=255.255.0.0
    GATEWAY=192.168.10.11
    ONBOOT=yes
    METRIC=5
    MII_NOT_SUPPORTED=yes
    USERCTL=yes
    DNS1=127.0.0.1
    DNS2=8.8.4.4
    RESOLV_MODS=no
    IPV6INIT=yes
    IPV6TO4INIT=no
    ACCOUNTING=no
    NM_CONTROLLED=yes

    # cat /etc/sysconfig/network-scripts/ifcfg-wlan0
    DEVICE=wlan0
    BOOTPROTO=static
    IPADDR=192.168.10.22
    NETMASK=255.255.255.0
    GATEWAY=192.168.10.11
    ONBOOT=yes
    METRIC=35
    MII_NOT_SUPPORTED=no
    USERCTL=yes
    DNS1=127.0.0.1
    DNS2=8.8.8.8
    RESOLV_MODS=no
    WIRELESS_MODE=Managed
    WIRELESS_ESSID=NOSSID
    WIRELESS_ENC_KEY=s:munged
    WIRELESS_WPA_DRIVER=wext
    WIRELESS_WPA_REASSOCIATE=no
    KEY_MGMT=WPA-PSK
    WPA_PSK=munged
    IPV6INIT=yes
    IPV6TO4INIT=no
    ACCOUNTING=no
    NM_CONTROLLED=yes

    The DNS= lines in the ifcfg- entries above are ignored due to the rc-manager=unmanaged.
    I have the resolvconf package installed which sets the dns at boot

    # cat /etc/resolvconf/resolv.conf.d/head
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1
    nameserver ::1
    nameserver 8.8.4.4
    nameserver 8.8.8.8

    Ignore the DO NOT EDIT comments in the above file. They are there so that they end up
    in /etc/resolv.conf which is the file actually used to determine which name server to use.

    [root@x9t ~]# cat /etc/resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1
    nameserver ::1
    nameserver 8.8.4.4
    nameserver 8.8.8.8

    [root@x9t ~]# journalctl -b --no-h|grep -i -e dhcp -e martian
    Sep 28 11:34:10 NetworkManager[1779]: <info> [1759073650.0779] dhcp: init: Using DHCP client 'internal'
    Sep 28 11:34:13 NetworkManager[1779]: <info> [1759073653.2761] dhcp6 (eth0): activation: beginning transaction (timeout in 45 seconds)
    Sep 28 11:34:14 NetworkManager[1779]: <info> [1759073654.3023] dhcp6 (eth0): state changed new lease, address=2607:munged
    Sep 28 11:34:16 kernel: IPv4: martian source 192.168.10.22 from 192.168.10.22, on dev eth0
    Sep 28 11:34:17 NetworkManager[1779]: <info> [1759073657.0755] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
    Sep 28 11:34:17 shorewall[5379]: Setting up Martian Logging...
    Sep 28 11:34:18 NetworkManager[1779]: <info> [1759073658.1576] dhcp6 (wlan0): state changed new lease, address=2607:munged
    Sep 28 11:34:18 kernel: IPv4: martian source 192.168.10.22 from 192.168.10.22, on dev eth0
    Sep 28 11:34:20 kernel: IPv4: martian source 192.168.10.22 from 192.168.10.22, on dev eth0

    I do get the martian packets as I have two nics both in use, but everything's working including
    both ipv4 and ipv6, so I don't worry about the martians.

    https://test-ipv6.com/ gives me 10/10

    I have the bind name server installed and it's program named is running so the google
    nameservers are not used (unless I stop the named process or it fails to start).

    Regards, Dave Hodgins
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Grimble@grimble@nomail.afraid.org to alt.os.linux.mageia on Tue Sep 30 15:39:04 2025
    From Newsgroup: alt.os.linux.mageia

    On 28/09/2025 16:45, David W. Hodgins wrote:
    On Sun, 28 Sep 2025 07:26:20 -0400, Grimble <grimble@nomail.afraid.org> wrote:
    <snip>
    On a not-unrelated matter, I am logging many "IPv4: martian source
    messages from 192.168.1 196 on dev enp5s0". Although ifcfg-enp5s0 has
    "BOOTPROTO=static,IPADDR=192.168.1.10", I can see from a network scan
    that it has also picked up a DHCP address, which is the ...196 one. How
    can I prevent that?

    I get them too, but in my case I know it's due to having two nics (one wireless, and one wired),
    with both working, when the ethernet is plugged into the laptop. I get maximum speed when
    plugged in, but still remain connected when it's unplugged.

    As long as it's working, I stopped worrying about martian packets a long time ago.

    Assuming you're now using NetworkManager, as I am-a ...

    [root@x9t ~]# grep -v ^'#' /etc/NetworkManager/NetworkManager.conf
    [main]
    plugins=ifcfg-rh,keyfile
    dns=none
    rc-manager=unmanaged

    [root@x9t ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
    DEVICE=eth0
    BOOTPROTO=static
    IPADDR=192.168.10.222
    NETMASK=255.255.0.0
    GATEWAY=192.168.10.11
    ONBOOT=yes
    METRIC=5
    MII_NOT_SUPPORTED=yes
    USERCTL=yes
    DNS1=127.0.0.1
    DNS2=8.8.4.4
    RESOLV_MODS=no
    IPV6INIT=yes
    IPV6TO4INIT=no
    ACCOUNTING=no
    NM_CONTROLLED=yes

    # cat /etc/sysconfig/network-scripts/ifcfg-wlan0
    DEVICE=wlan0
    BOOTPROTO=static
    IPADDR=192.168.10.22
    NETMASK=255.255.255.0
    GATEWAY=192.168.10.11
    ONBOOT=yes
    METRIC=35
    MII_NOT_SUPPORTED=no
    USERCTL=yes
    DNS1=127.0.0.1
    DNS2=8.8.8.8
    RESOLV_MODS=no
    WIRELESS_MODE=Managed
    WIRELESS_ESSID=NOSSID
    WIRELESS_ENC_KEY=s:munged
    WIRELESS_WPA_DRIVER=wext
    WIRELESS_WPA_REASSOCIATE=no
    KEY_MGMT=WPA-PSK
    WPA_PSK=munged
    IPV6INIT=yes
    IPV6TO4INIT=no
    ACCOUNTING=no
    NM_CONTROLLED=yes

    The DNS= lines in the ifcfg- entries above are ignored due to the rc- manager=unmanaged.
    I have the resolvconf package installed which sets the dns at boot

    # cat /etc/resolvconf/resolv.conf.d/head
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #-a-a-a-a DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1
    nameserver ::1
    nameserver 8.8.4.4
    nameserver 8.8.8.8

    Ignore the DO NOT EDIT comments in the above file. They are there so
    that they end up
    in /etc/resolv.conf which is the file actually used to determine which
    name server to use.

    [root@x9t ~]# cat /etc/resolv.conf
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #-a-a-a-a DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1
    nameserver ::1
    nameserver 8.8.4.4
    nameserver 8.8.8.8

    [root@x9t ~]# journalctl -b --no-h|grep -i -e dhcp -e martian
    Sep 28 11:34:10 NetworkManager[1779]: <info>-a [1759073650.0779] dhcp:
    init: Using DHCP client 'internal'
    Sep 28 11:34:13 NetworkManager[1779]: <info>-a [1759073653.2761] dhcp6 (eth0): activation: beginning transaction (timeout in 45 seconds)
    Sep 28 11:34:14 NetworkManager[1779]: <info>-a [1759073654.3023] dhcp6 (eth0): state changed new lease, address=2607:munged
    Sep 28 11:34:16 kernel: IPv4: martian source 192.168.10.22 from 192.168.10.22, on dev eth0
    Sep 28 11:34:17 NetworkManager[1779]: <info>-a [1759073657.0755] dhcp6 (wlan0): activation: beginning transaction (timeout in 45 seconds)
    Sep 28 11:34:17 shorewall[5379]: Setting up Martian Logging...
    Sep 28 11:34:18 NetworkManager[1779]: <info>-a [1759073658.1576] dhcp6 (wlan0): state changed new lease, address=2607:munged
    Sep 28 11:34:18 kernel: IPv4: martian source 192.168.10.22 from 192.168.10.22, on dev eth0
    Sep 28 11:34:20 kernel: IPv4: martian source 192.168.10.22 from 192.168.10.22, on dev eth0

    I do get the martian packets as I have two nics both in use, but everything's working including
    both ipv4 and ipv6, so I don't worry about the martians.

    https://test-ipv6.com/ gives me 10/10

    I have the bind name server installed and it's program named is running
    so the google
    nameservers are not used (unless I stop the named process or it fails to start).

    Regards, Dave Hodgins
    Thanks Dave. I wasn't worried about the martians per se, because
    everything was working. It just annoyed me that so many messages were
    being logged. As with you, it was because the wireless connection was
    active but the wired connection was still known.
    Regards,
    --
    Grimble
    Machine 'Haydn' running Plasma 5.27.10 on 6.6.101-desktop-1.mga9 kernel.
    Mageia release 9 (Official) for x86_64
    --- Synchronet 3.21a-Linux NewsLink 1.2