Introduction
A hostname is a unique name assigned to a Fortinet firewall to identify it within a network. Configuring a meaningful hostname helps network and security administrators easily identify individual firewall devices, particularly when managing multiple Fortinet firewalls.
A properly configured hostname improves device identification and simplifies administration, troubleshooting, and monitoring through the CLI, Web GUI, and centralized management platforms.
Method 1: Configure Hostname Using the Web GUI
Follow the steps below to change the hostname through the Fortinet web interface.
Step 1: Access the Fortinet Web Interface
- Open a web browser.
- Enter the management IP address of the Fortinet firewall.
- Log in using your administrator credentials.
Step 2: Navigate to System Settings
- From the navigation menu, go to System → Settings.
- Locate the Hostname field.
Step 3: Configure the Hostname
- Enter your desired hostname in the Hostname field.
- Example: FGT-HQ-FIREWALL
- Click Apply to save the configuration.
Step 4: Verify the Configuration
- Navigate to the Fortinet dashboard.
- Locate the System Information widget.
- Verify that the updated hostname is displayed.
Method 2: Configure Hostname Using CLI
The hostname can also be configured directly through the Fortinet Command Line Interface (CLI).
Step 1: Access the Fortinet CLI
- Connect to the firewall using any of the following methods:
Step 2: Configure the Hostname
Execute the following commands:
config system global
set hostname FGT-HQ-FIREWALL
end
Command Explanation:
- config system global – Enters the global configuration mode.
- set hostname FGT-HQ-FIREWALL – Configures the desired hostname.
- end – Exits the configuration mode and applies the configuration.
Step 3: Verify the Hostname
Execute the following command:
get system status
Check the output for the Hostname field.
Expected Output:
- Version: Fortinet-100F
- Hostname: FGT-HQ-FIREWALL
The hostname should now display the newly configured name.
Leave a Reply