FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
sselvam
Staff
Staff

Description
This article describes how to find the interface's MAC address.

Solution
From GUI:

Go to Network -> Interfaces -> Edit Interface and along with the interface name hardware address also be added from version 5.4 onward.



In non VDOM mode.

# get hardware nic <if_name> | grep Hwaddr

In VDOM mode.

# conf global
    get hardware nic <if_name> | grep Hwaddr

Example.

To see the firewall port2 MAC address:

# get hardware nic port2
Name:         port2
Version:     1.1.29.0-k-NAPI
FW version:     N/A
Bus:         0000:0b:00.0
Hwaddr:     00:75:72:61:5f:02
Permanent Hwaddr:00:75:72:61:5f:02
State:         up
Link:         up
Mtu:         1500

You can also use fnsysctl utility. This will show you current HW address and it works also for virtual interfaces, like Vlan:

akristof_0-1672907692875.png

 

Related Articles

Technical Note: How to find the interface's mac address

Contributors