How to check which interface (network card, not zone) the host is connected to?

Hello,

How to check which interface (network card, not zone) the host is connected to?

e.g. to see that host 192.168.0.10 is connected to eth5 (which belongs to green zone).

Thanks in advance for your help.

You didn’t answer my question.

I simply want to know which network card each computer in LAN is connected to.

I have a green zone, and it consists of bridged network cards (NICs): eth1, eth2, …

I want to see which physical network card each host is connected to:

  • For example, to see that host 192.168.0.10 uses network card eth1, etc.

In Mikrotik you can simply see what physical network interface a given host is using:

Zrzut ekranu 2026-06-04 124116

I’ve only used Mikrotik as an example.

Ipfire isn’t Mikrotik, but they’re both Linux.

I’m not interested in the actual connection - I’m interested in which physical interface a given host is connected to.

Is it connected to eth0 or eth1?

You need to look at the hardware MAC assignments and what port each network card uses for what MAC.

These are the port numbers, and they are logically mapped to respective MAC listed via either IPMI for SuperMicro or some other OOBE solution.

image

From above images you can deduce that:
LAN2 is Port 6, with MAC 0c:c4:7a:81:6a:b5.
LAN1 is Port 7, with MAC 0c:c4:7a:81:6a:b4.
Then you can find that MAC in the IPFire NIC Assigment table and voila, that is the connection.

These are all manufacturing standards.

There is no other way to answer that specific question that I know of, maybe via some linux command , but port definitions can vary in different OS.

Check you hardware manual, it could be listed there…

What if some users connects theirs computers to a different switch than they should? I want to be able to easily check this.

Maybe one of the developers can answer my question:

  • Is there a way to easily see which host is connected to which physical network interface in the Web Interface?
  • Unless there’s a comment to check it in the console.

In Mikrotik which is also Linux, it looks like this:

Zrzut ekranu 2026-06-04 124116

:thinking:
Maybe the following IPFire console command will be helpful

brctl showmacs green0

brctl showmacs green0

This command. shows the MAC addresses of the network cards that make up the bridge (green zone).

This command show the MAC addresses of NICs allocated into brigde (local = yes) and MAC addresses of hosts (local = no) connected to this bridge (green0 = green zone). So this command generally shows the MAC addresses related to a given bridge.

I need more detailed information - I need information about which computers are connected to which network cards within the green zone.

example: host 192.168.0.10 is connected to eth0 - which is part of green zone (bridge green0).

Could you please take a look at the screenshot above?

Please take a look - I’ve edited my previous post.

I am not sure that is possible. The bridge interface will get its own MAC address (it may use one of the NIC’s MAC addresses) and all devices would show as connected to that MAC address.

I meant my screenshot

Below are two hosts connected to port 2 and one host connected to port 1

edit

Below are 3 hosts connected to a port number 3


I don’t have any new ideas at the moment :person_shrugging:

no need for beeing harsh - All the users here just want to help - if you keep acting this way in the future, don’t be surprised if you don’t get any more help

You haven’t even been logged in for 24 hours and you’re already acting like this ^^

So, how to check if port 2 is e.g. eth0 or eth1, or eth3?

You’re right, I apologize to everyone.

I don’t want to make excuses, but …

The person who replied to me then completely confused the topic and has now even deleted his posts – I suspect he realized the point was different.

The firewall is not the source of truth for physical connectivity. IPFire can help identify the zone, bridge and sometimes the local NIC/bridge port. But if you need to know whether a host is connected to the wrong switch, wrong wall port, wrong VLAN, or wrong physical segment, that belongs to infrastructure documentation and switch management.

For that you need a mapped topology, managed switches, MAC address tables, LLDP where available, port descriptions, and consistent cabling documentation. Without that, IPFire can only show what reaches it — not the whole path.

I disagree.

I want to know what physical network interface each host is using.

Please see below – it’s a screenshot from the Mikrotk system – it’s also Linux. Here, I can see which bridge port a given host is using.

Zrzut ekranu 2026-06-04 124116

Compare MAC addresses

I’m looking for a simple solution. A quick check and I’ll know what’s going on.

I deleted my replies because I realized I was off-topic.
But with the limited information you provided in the first post, no one would have been able to answer.
It took until the sixth post to get the correct information.

Mikrotik is a router with a Router-oriented operating system RouterOS.
IPFire is a firewall.
In my experience, using IPFire isn’t suitable for routing as you intend. Transfers between the bridged Green ports will consume CPU resources, and you’ll experience degraded bandwidth if you don’t have a powerful CPU.

I don’t have an answer for you, but if you don’t mind answering:
I’m curious why this matters. If the NICs are bridged into GREEN, and GREEN is the approved zone, then what does it matter which physical NIC a user is using?