OS Version: AlmaLinux release 9.4 (Seafoam Ocelot)
uname: 5.14.0-427.28.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC
I have used Network Manager to configure two network cards (enX0 and enX1) which are both setup with static IP addresses. However after a reboot the server, the IP address assigned to each network get switched to the other network:
enX0 has a static IP address of 10.10.10. 67
enX1 has a static IP address of 192.168.1.30
But after a reboot, the IP addresses switch like so:
enX0 has a static IP address of 192.168.1.30
enX1 has a static IP address of 10.10.10. 67
Here is the output of the network before rebooting the server:
# nmcli device show
GENERAL.DEVICE: enX1
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 56:C9:D0:E9:E5:7A
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: enX1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/5
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.1.30/24
IP4.GATEWAY: 192.168.1.2
IP4.ROUTE[1]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 102
IP4.ROUTE[2]: dst = 0.0.0.0/0, nh = 192.168.1.2, mt = 102
IP4.DNS[1]: 8.8.8.8
IP4.DNS[2]: 8.8.4.4
IP6.ADDRESS[1]: fe80::3fea:674d:bb72:21eb/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 1024
GENERAL.DEVICE: enX0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 82:5A:D2:E1:CC:A9
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: enX0
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/6
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 10.10.10.67/24
IP4.GATEWAY: --
IP4.ROUTE[1]: dst = 10.10.10.0/24, nh = 0.0.0.0, mt = 103
IP6.ADDRESS[1]: fe80::805a:d2ff:fee1:cca9/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 1024
GENERAL.DEVICE: lo
And here is the network after rebooting the server: (the IP addresses get switched to the wrong device where enX0 gets IP address of enX1 and enX1 gets IP address of enX0)
GENERAL.DEVICE: enX0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 82:5A:D2:E1:CC:A9
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: System enX1:1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/4
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.1.30/24
IP4.GATEWAY: --
IP4.ROUTE[1]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 101
IP6.ADDRESS[1]: fe80::805a:d2ff:fee1:cca9/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 256
GENERAL.DEVICE: enX1
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 56:C9:D0:E9:E5:7A
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: System enX0:1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/3
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 10.10.10.67/24
IP4.GATEWAY: --
IP4.ROUTE[1]: dst = 10.10.10.0/24, nh = 0.0.0.0, mt = 100
IP6.ADDRESS[1]: fe80::54c9:d0ff:fee9:e57a/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 256
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 100 (connected (externally))
GENERAL.CONNECTION: lo
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY: --
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ::1/128, nh = ::, mt = 256
Any suggestions on what I can check that would be causing this issue?
Thank you,
SW