ifconfig shows wrong ipadress
Posted: 19 Feb 2024, 15:19
Hi!
I am using a RevPi Connect 4 with 2 network ports each connected to a DHCP server.
This is my test setup for tests with a modbus connection.
eth0 is running since several days. IP 10.0.0.48
eth1 I connected today to a network port on a Windows machine where I run a DHCP server.
I use this server https://www.dhcpserver.de/cms/ on the windows machine.
Log from the DHCP server:
[02/19/2024 14:55:00] DHCP Server V2.5.2.3 started as Application
[02/19/2024 14:55:00] NetworkAdapter Initialization returns 0
[02/19/2024 14:55:00] Adapter 0 with IP address 192.168.1.254 found (pAdap=0x0230b618)
[02/19/2024 14:55:00] Adapter 1 with IP address 10.0.0.20 found but not used
[02/19/2024 14:55:51] Adapter 0 has recognized an incoming DHCP request
[02/19/2024 14:55:51] DHCP message = DHCPREQUEST
[02/19/2024 14:55:51] requested options: 1 2 3 6 12 15 26 28 42 44 47 119 121
[02/19/2024 14:55:51] Lookup client data for physical address "C8-3E-A7-10-D8-F9" / client_id "C8-3E-A7-10-D8-F9"
[02/19/2024 14:55:51] Client C8-3E-A7-10-D8-F9 is configured with the IP address 192.168.1.1
[02/19/2024 14:55:51] Response: hand out the configured IP address (lease time = 86400)
[02/19/2024 14:55:51] Sending a broadcast response to the client
[02/19/2024 14:55:51] Connection 0: sending top queue packet
on the revpi is see:
pi@RevPi106990:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.48 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::ca3e:a7ff:fe10:d8f8 prefixlen 64 scopeid 0x20<link>
ether c8:3e:a7:10:d8:f8 txqueuelen 1000 (Ethernet)
RX packets 1448805 bytes 165317668 (157.6 MiB)
RX errors 0 dropped 808342 overruns 0 frame 0
TX packets 114617 bytes 65735634 (62.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.228.33 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::ca3e:a7ff:fe10:d8f9 prefixlen 64 scopeid 0x20<link>
ether c8:3e:a7:10:d8:f9 txqueuelen 1000 (Ethernet)
RX packets 94 bytes 10522 (10.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3702 bytes 173239 (169.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 12244 bytes 1035483 (1011.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12244 bytes 1035483 (1011.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c8:3e:a7:10:d8:fa txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So eth1 does not show the correct address but it is possible to ping the revpi with IP 192.168.1.1
C:\>ping 192.168.1.1
Ping wird ausgeführt für 192.168.1.1 mit 32 Bytes Daten:
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Ping-Statistik für 192.168.1.1:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
Best regards,
Peter
I am using a RevPi Connect 4 with 2 network ports each connected to a DHCP server.
This is my test setup for tests with a modbus connection.
eth0 is running since several days. IP 10.0.0.48
eth1 I connected today to a network port on a Windows machine where I run a DHCP server.
I use this server https://www.dhcpserver.de/cms/ on the windows machine.
Log from the DHCP server:
[02/19/2024 14:55:00] DHCP Server V2.5.2.3 started as Application
[02/19/2024 14:55:00] NetworkAdapter Initialization returns 0
[02/19/2024 14:55:00] Adapter 0 with IP address 192.168.1.254 found (pAdap=0x0230b618)
[02/19/2024 14:55:00] Adapter 1 with IP address 10.0.0.20 found but not used
[02/19/2024 14:55:51] Adapter 0 has recognized an incoming DHCP request
[02/19/2024 14:55:51] DHCP message = DHCPREQUEST
[02/19/2024 14:55:51] requested options: 1 2 3 6 12 15 26 28 42 44 47 119 121
[02/19/2024 14:55:51] Lookup client data for physical address "C8-3E-A7-10-D8-F9" / client_id "C8-3E-A7-10-D8-F9"
[02/19/2024 14:55:51] Client C8-3E-A7-10-D8-F9 is configured with the IP address 192.168.1.1
[02/19/2024 14:55:51] Response: hand out the configured IP address (lease time = 86400)
[02/19/2024 14:55:51] Sending a broadcast response to the client
[02/19/2024 14:55:51] Connection 0: sending top queue packet
on the revpi is see:
pi@RevPi106990:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.48 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::ca3e:a7ff:fe10:d8f8 prefixlen 64 scopeid 0x20<link>
ether c8:3e:a7:10:d8:f8 txqueuelen 1000 (Ethernet)
RX packets 1448805 bytes 165317668 (157.6 MiB)
RX errors 0 dropped 808342 overruns 0 frame 0
TX packets 114617 bytes 65735634 (62.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.228.33 netmask 255.255.0.0 broadcast 169.254.255.255
inet6 fe80::ca3e:a7ff:fe10:d8f9 prefixlen 64 scopeid 0x20<link>
ether c8:3e:a7:10:d8:f9 txqueuelen 1000 (Ethernet)
RX packets 94 bytes 10522 (10.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3702 bytes 173239 (169.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 12244 bytes 1035483 (1011.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 12244 bytes 1035483 (1011.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether c8:3e:a7:10:d8:fa txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
So eth1 does not show the correct address but it is possible to ping the revpi with IP 192.168.1.1
C:\>ping 192.168.1.1
Ping wird ausgeführt für 192.168.1.1 mit 32 Bytes Daten:
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Antwort von 192.168.1.1: Bytes=32 Zeit<1ms TTL=64
Ping-Statistik für 192.168.1.1:
Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0
(0% Verlust),
Ca. Zeitangaben in Millisek.:
Minimum = 0ms, Maximum = 0ms, Mittelwert = 0ms
Best regards,
Peter