Fortinet white logo
Fortinet white logo

CLI Reference

diagnose ip address

diagnose ip address

Use these commands to manage configured IP addresses:

diagnose ip address list   List all configured IP addresses.
diagnose ip address add <interface_name> <IPv4_address>   Add an IP address.
diagnose ip address delete <interface_name> <IPv4_address>   Delete an IP address.

Example output

This is sample output of the diagnose ip address list command:

# diagnose ip address list

IP=127.0.0.1->127.0.0.1/255.0.0.0 index=1 devname=lo

IP=172.18.20.63->172.18.20.63/255.255.255.0 index=13 devname=port1

IP=10.1.1.2->10.1.1.2/255.255.255.0 index=14 devname=port2

diagnose ip address

diagnose ip address

Use these commands to manage configured IP addresses:

diagnose ip address list   List all configured IP addresses.
diagnose ip address add <interface_name> <IPv4_address>   Add an IP address.
diagnose ip address delete <interface_name> <IPv4_address>   Delete an IP address.

Example output

This is sample output of the diagnose ip address list command:

# diagnose ip address list

IP=127.0.0.1->127.0.0.1/255.0.0.0 index=1 devname=lo

IP=172.18.20.63->172.18.20.63/255.255.255.0 index=13 devname=port1

IP=10.1.1.2->10.1.1.2/255.255.255.0 index=14 devname=port2