Skip to main content
tlegentil_FTNT
Staff
Staff
December 4, 2015

Technical Tip: How to find the interface's MAC address

  • December 4, 2015
  • 0 replies
  • 5062 views

Description

 
This article describes commands that can be used to get the MAC address of the interface <if_name>.
 
Scope
 
FortiGate.
 
Solution

In non-VDOM mode:
 
get hardware nic <if_name> | grep Hwaddr

In VDOM mode:
 
config global
get hardware nic <if_name> | grep Hwaddr

 

When executing the following command: 'diagnose hardware deviceinfo nic port1'.

The firewall displays information, including Current_HWaddr and Permanent_HWaddr:


Standalone mode: Current_HWaddr and Permanent_HWaddr are the same.

 

diagnose hardware deviceinfo nic port1 | grep addr
HWaddr: 02:09:0f:00:00:01
Permanent Hwaddr:02:09:0f:00:00:01

 

HA mode (Active-Passive or Active-Active): Current_HWaddr and Permanent_HWaddr are different.
Current_HWaddr – virtual MAC, shared across all HA cluster members.
Permanent_HWaddr – physical MAC assigned by the NIC manufacturer.

 

diagnose hardware deviceinfo nic port1
[...]
System_Device_Name port1
Current_HWaddr 00:09:0F:09:00:00
Permanent_HWaddr 00:09:0F:85:AD:8B

 

This distinction ensures seamless failover in HA deployments while retaining the physical MAC for hardware identification.