Hello,
I have a OpenWRT 23.05 and some Raspies behind (LAN/WLAN). The Raspies are connected with LAN and WLAN, one example:
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:89:0b:db brd ff:ff:ff:ff:ff:ff
inet 192.168.1.109/24 brd 192.168.1.255 scope global noprefixroute eth0
valid_lft forever preferred_lft forever
inet 192.168.1.214/24 brd 192.168.1.255 scope global secondary dynamic eth0
valid_lft 29175sec preferred_lft 29175sec
inet6 fd76:fc69:e03d::e83/128 scope global dynamic noprefixroute
valid_lft 42258sec preferred_lft 42258sec
inet6 fd76:fc69:e03d:0:ab3b:2e02:2997:828a/64 scope global mngtmpaddr noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::ba27:ebff:fe89:bdb/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:dc:5e:8e brd ff:ff:ff:ff:ff:ff
inet 192.168.1.215/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
valid_lft 42923sec preferred_lft 37523sec
inet6 fd76:fc69:e03d::b56/128 scope global dynamic noprefixroute
valid_lft 42928sec preferred_lft 42928sec
inet6 fd76:fc69:e03d:0:f98b:20de:7f8d:19b3/64 scope global mngtmpaddr noprefixroute
valid_lft forever preferred_lft forever
inet6 fe80::d2d:1c5e:47b7:9662/64 scope link
valid_lft forever preferred_lft forever
The strange thing is, OpenWRT show one IP with hostname and one IP not:
Any ideas why?
iPhone connected via WiFi
Yes, I have Iphones connected to the network via WLAN, but what does that have to do with the Raspies?
It has a DHCP server turned on that assigns IP to devices.
But if a Fritz!Box is the DHCP-Server, all hostnames are displayed correct? And I find no informations to disable a DHCP-Server on a Iphone?
Sorry but I'm confused what is connected where. Are these your Rasbians' MACs or some other (I thought iPhones)
Sorry, yes: a Raspi have a LAN and WLAN device, both are connected to the OpenWRT Router:
MAC: b8:27:eb:89:0b:db
IP: 192.168.1.214
Device: eth0
MAC: b8:27:eb:dc:5e:8e
IP: 192.168.1.215
Device: wlan
One show the correct hostname and the second have no hostname in the webinterface from OpenWRT.
I wouldn't worry about that at all. It has to read the name from the device for it to be visible, so it depends on what services are enabled or how its firewall is configured.
1 Like
Are you saying that:
you connected the same Pi mutiple times (e.g. wireless and wired); or
that all your Pi devices have the same hostname?
Both would cause a host (that has announced a hostname) to appear without a hostname.
Another poster mentioned devices that don't announce hostnames (e.g. iPhones).
My point is, that a Raspi with LAN/WLAN are connected to OpenWRT at the same time. One Pi have 2 IP's with 2 NIC's. But in the Webinterface only one IP from this Raspi have a hostname (pi3 from my screenshot). The other one have just a "-".
You cannot have 2 IPs with the same hostname. DNS would not know which address to resolve to.
If you want both the LAN and WLAN IPs to have a hostname, you could set static IPs with different hostnames.
1 Like
system
Closed
September 6, 2024, 6:28am
13
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.