Fortinet white logo
Fortinet white logo

CLI Reference

diagnose netlink ip/ipv6

diagnose netlink ip/ipv6

Use these commands to list interface details, or to add or delete a physical network interface.

Back up the configuration before deleting a network interface table entry.

Syntax

diagnose netlink {ip|ipv6} add <interface_name> <ipaddress> <netmask>

diagnose netlink {ip|ipv6} delete <interface_name> <ipaddress>

diagnose netlink {ip|ipv6} flush

diagnose netlink {ip|ipv6} list

<interface_name>

Name of the interface to add or delete from the network interface table.

<ipaddress>

IP address of the network interface.

<netmask>

Subnet mask.

Example

FortiADC-VM # FortiADC-VM # diagnose netlink ip ?

add add netlink ip address

delete delete netlink ip address

flush flush netlink ip address

list list netlink ip address

FortiADC-VM # diagnose netlink ip list

IP=127.0.0.1 MASK=255.255.255.0 index=1 devname=lo

IP=127.129.1.1 MASK=255.255.255.255 index=1 devname=lo

IP=172.30.144.100 MASK=255.255.252.0 index=4 devname=port1

IP=10.1.1.1 MASK=255.255.255.255 index=4 devname=port1

IP=7.7.7.7 MASK=255.255.255.255 index=7 devname=port2

IP=5.5.5.5 MASK=255.255.255.255 index=7 devname=port2

IP=11.11.11.11 MASK=255.255.255.255 index=7 devname=port2

IP=12.12.12.12 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.9 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.8 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.7 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.6 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.5 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.4 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.3 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.2 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.1 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.0 MASK=255.255.255.255 index=7 devname=port2

IP=1.1.100.1 MASK=255.255.255.255 index=7 devname=port2

IP=1.1.100.2 MASK=255.255.255.255 index=7 devname=port2

IP=169.254.160.134 MASK=255.255.0.0 index=17 devname=haport0

diagnose netlink ip/ipv6

diagnose netlink ip/ipv6

Use these commands to list interface details, or to add or delete a physical network interface.

Back up the configuration before deleting a network interface table entry.

Syntax

diagnose netlink {ip|ipv6} add <interface_name> <ipaddress> <netmask>

diagnose netlink {ip|ipv6} delete <interface_name> <ipaddress>

diagnose netlink {ip|ipv6} flush

diagnose netlink {ip|ipv6} list

<interface_name>

Name of the interface to add or delete from the network interface table.

<ipaddress>

IP address of the network interface.

<netmask>

Subnet mask.

Example

FortiADC-VM # FortiADC-VM # diagnose netlink ip ?

add add netlink ip address

delete delete netlink ip address

flush flush netlink ip address

list list netlink ip address

FortiADC-VM # diagnose netlink ip list

IP=127.0.0.1 MASK=255.255.255.0 index=1 devname=lo

IP=127.129.1.1 MASK=255.255.255.255 index=1 devname=lo

IP=172.30.144.100 MASK=255.255.252.0 index=4 devname=port1

IP=10.1.1.1 MASK=255.255.255.255 index=4 devname=port1

IP=7.7.7.7 MASK=255.255.255.255 index=7 devname=port2

IP=5.5.5.5 MASK=255.255.255.255 index=7 devname=port2

IP=11.11.11.11 MASK=255.255.255.255 index=7 devname=port2

IP=12.12.12.12 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.9 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.8 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.7 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.6 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.5 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.4 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.3 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.2 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.1 MASK=255.255.255.255 index=7 devname=port2

IP=172.0.0.0 MASK=255.255.255.255 index=7 devname=port2

IP=1.1.100.1 MASK=255.255.255.255 index=7 devname=port2

IP=1.1.100.2 MASK=255.255.255.255 index=7 devname=port2

IP=169.254.160.134 MASK=255.255.0.0 index=17 devname=haport0