Created on
‎09-25-2024
06:22 AM
Edited on
‎05-27-2025
12:29 AM
By
Jean-Philippe_P
Description | This article describes displaying the DHCP-assigned IP address on a specific interface from CLI. |
Scope | FortiGate. |
Solution |
The following commands can be useful for displaying the IP address received from DHCP on a FortiGate interface from the CLI.
The following commands can also be used to fetch the dynamic IP assigned to the interface:
get system interface physical <interface name>
Number the output lines using -n for easier reference.
diagnose ip address list | grep -n port1
Example:
show system interface port1
get system interface physical port1 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.