# How to get IPs/hostname from clients from different network(s)?

**URL:** <https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577>\
**Category:** Community Help\
**Created:** [January 25, 2021, 3:57pm UTC](https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577 "2021-01-25T15:57:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [January 25, 2021, 8:24pm UTC](https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577/3 "2021-01-25T20:24:33Z")

</div>

> [@yubiuser](#):
>
> You might need to change your setup and assign IPs for each subnet to your Pi-hole device. Something like
> 
> ### [Assign multiple IP addresses to single Network card in Linux](https://ostechnix.com/how-to-assign-multiple-ip-addresses-to-single-network-card-in-linux/)
> 
> This comprehensive tutorial describes how to assign multiple IP addresses to single Network card in Linux operating systems.
> 
> Est. reading time: 9 minutes

Above guide configures IP's in `/etc/network/interfaces` that most likely will conflict with `dhcpcd5` thats installed:

```auto
pi@ph5:~ $ journalctl -u dhcpcd
[..]
Jan 25 21:20:34 ph5 dhcpcd[7767]: eth0: using static address 10.0.0.4/24
Jan 25 21:20:34 ph5 dhcpcd[7767]: eth0: adding route to 10.0.0.0/24
Jan 25 21:20:34 ph5 dhcpcd[7767]: eth0: adding default route via 10.0.0.1
[..]

```

Below better to assign multiple IP's to a single interface:

> [@Pi-Hole VLAN advice using 05-custom.conf or define VLAN interfaces](https://discourse.pi-hole.net/t/pi-hole-vlan-advice-using-05-custom-conf-or-define-vlan-interfaces/38982/3):
>
> Vlan's are a switch thing. Clients and servers dont need to be aware what vlan's they are in. They only need to be aware of the subnets. There are some exceptions like hypervisors that apply virtual bridges etc for their guests/VM's that need to be in vlan trunks. I could be wrong missing some bits but am sure someone here will correct me wink To prevent having to route traffic between the subnets, you could assign all appropriate vlan's to the switch/router port that Pi-hole is connected…

---

_[View the full topic](https://discourse.pi-hole.net/t/how-to-get-ips-hostname-from-clients-from-different-network-s/43577)._
