diagnose : network ip
 
network ip
Use these commands to add or delete a network interface, loopback interface, or virtual server (which functions somewhat like a virtual network interface) IP address, or to list the table of network interface IPs.
 
Back up the configuration before deleting a network interface table entry (see “execute backup full-config”). FortiWeb presents no confirmation message, and in some cases such as the loopback interface, provides no undelete mechanism.
To use this command, your administrator account’s access control profile must have rw or w permission to the sysgrp area. For more information, see “Permissions”.
Syntax
diagnose network ip add <interface_name> {<interface_ipv4> | interface_ipv6} {<interface_ipv4mask> |<interface_v6mask>}
diagnose network ip delete <interface_name> {<interface_ipv4> | interface_ipv6}
diagnose network ip list
Variable
Description
Default
<interface_name>
Type the name of the interface to add or delete from the network interface table.
No default.
{<interface_ipv4> | interface_ipv6}
Type the IP address of the network interface.
No default.
{<interface_ipv4mask> |<interface_v6mask>}
Type the subnet mask.
No default.
Example
This example displays a list of enabled network interfaces, including the loopback (lo)
diagnose network ip list
Output:
1 IP 127.0.0.1/255.255.255.0 lo
2 IP 172.20.120.47/255.255.255.0 port1
2 IP 10.1.1.221/255.255.255.255 port1
4 IP 192.168.1.27/255.255.255.0 port3
Example
This example deletes the IP of a virtual server on port2.
diagnose network ip delete port1 10.1.1.221
Related topics
diagnose network route
diagnose network arp
config system interface