Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systems with 2 IPs get listed under just 1 of them #48

Open
INeedCaffeine opened this issue Jan 27, 2021 · 5 comments
Open

Systems with 2 IPs get listed under just 1 of them #48

INeedCaffeine opened this issue Jan 27, 2021 · 5 comments
Assignees
Labels
bug Something isn't working WIP Work in progress

Comments

@INeedCaffeine
Copy link

INeedCaffeine commented Jan 27, 2021

I have a RPi connected to my network with both ethernet and Wi-Fi:

image

In Pi.Alert the system was only showing as 2 separate "(unknown)" entries:

image

I checked them and found they have different MAC addresses. The first one is actually the ETH0 connection and the second is the WLAN0. The ETH0 uses a static IP that is much higher than the dynamic IP that the system picks up on WLAN0.

Pi.Alert is incorrectly saying the ETH0 connection is using the dynamic IP that the WLAN connection uses and is totally ignoring the static IP for some reason.

(Edit to correct the Pi.Alert screenshot fragment)

@pucherot
Copy link
Owner

Thanks.
I will study this problem.

@pucherot pucherot self-assigned this Jan 27, 2021
@pucherot pucherot added the bug Something isn't working label Jan 27, 2021
@pucherot
Copy link
Owner

please, can you execute this command:

sqlite3 ~/pialert/db/pialert.db "select * from devices where dev_mac like 'dc:a6:32%'"

@pucherot
Copy link
Owner

pucherot commented Feb 1, 2021

Hi?
any news?

@INeedCaffeine
Copy link
Author

INeedCaffeine commented Feb 1, 2021

Sorry, was tied up with family events all weekend. Here is the output:

pi@pi-hole:~ $ sqlite3 ~/pialert/db/pialert.db "select * from devices where dev_mac like 'dc:a6:32%'"

dc:a6:32:93:70:c6|pi-hole|House|Other|Raspberry Pi Trading Ltd|0|Always on||2021-01-26 22:11:00|2021-01-26 22:11:00|192.168.1.245|0|1|1|1|0|0|2021-01-26 22:12:21.377531|0
dc:a6:32:9b:d6:7f|Kahncert|House|Server|Raspberry Pi Trading Ltd|0|Always on||2021-01-26 22:11:00|2021-01-26 22:11:00|192.168.1.247|0|1|1|1|0|0|2021-01-26 22:12:21.377531|0
dc:a6:32:a2:d3:b4|Kahncert|House|Server|Raspberry Pi Trading Ltd|0|Always on||2021-01-26 22:11:00|2021-01-26 22:11:00|-|0|1|1|1|0|0|2021-01-26 22:12:21.377531|0
dc:a6:32:a3:0b:37|Kahntainer ETH0|House|NAS|Raspberry Pi Trading Ltd|0|Always on|There is also an WLAN connection|2021-01-26 22:11:00|2021-01-26 22:11:00|192.168.1.31|0|1|1|1|0|0|2021-01-26 22:12:21.377531|1
dc:a6:32:a3:0b:38|Kahntainer WLAN|House|NAS|Raspberry Pi Trading Ltd|0|Always on|There is also an ETH0 connection|2021-01-26 22:11:00|2021-01-26 22:11:00|192.168.1.31|0|1|1|1|0|0|2021-01-26 22:12:21.377531|0

Kahncert is my Kodi server. I swapped the actual RPi out once while triaging a problem with it which is why it has 2 MAC entries.
(The problem was a bad power supply.)

Kahntainer is the RPi in question with the dual interfaces.

@pucherot
Copy link
Owner

#76 - Pi device that is running Pi.Alert shows as offline
This fix perhaps solve this problem too.

only to confirm, can you execute this command ip route ?

@pucherot pucherot added the WIP Work in progress label Apr 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working WIP Work in progress
Projects
None yet
Development

No branches or pull requests

2 participants