The destination command configures the destination address or domain name for IP-link.
The undo destination command deletes the destination address or domain name for IP-link.
destination { ipv4-address | domain-name } [ interface interface-type interface-number ] [ mode icmp ] [ next-hop { nexthop-ipv4-address | dhcp | dialer } ]
destination { ipv4-address | domain-name } [ interface interface-type interface-number ] mode arp
ipv6 destination { ipv6-address | domain-name } [ interface interface-type interface-number ] [ mode icmp6 ] [ next-hop nexthop-ipv6-address ]
ipv6 destination { ipv6-address | domain-name } [ interface interface-type interface-number ] mode ns
undo destination { ipv4-address | domain-name } [ interface interface-type interface-number ] [ mode icmp ] [ next-hop { nexthop-ipv4-address | dhcp | dialer } ]
undo destination { ipv4-address | domain-name } [ interface interface-type interface-number ] mode arp
undo ipv6 destination { ipv6-address | domain-name } [ interface interface-type interface-number ] [ mode icmp6 ] [ next-hop nexthop-ipv6-address ]
undo ipv6 destination { ipv6-address | domain-name } [ interface interface-type interface-number ] mode ns
| Parameter | Description | Value |
|---|---|---|
| destination ipv4-address | Specifies the destination IPv4 address. | The value is in dotted decimal notation. |
| ipv6 destination ipv6-address | Specifies the destination IPv6 address. | The value is in colon hexadecimal notation. |
| destination domain-name | Specifies the destination IPv4 domain name. | - |
| ipv6 destination domain-name | Specifies the destination IPv6 domain name. | - |
| interface interface-type interface-number | Specifies the local interface type and ID of an
IP link.
|
- |
| mode arp | Indicates that ARP packets are transmitted to a specified destination address for link detection. | - |
| mode icmp | Indicates that ICMP packets are transmitted to a specified destination address for link detection. | - |
| mode icmp6 | Indicates that ICMPv6 packets are transmitted to a specified destination address for link detection. | - |
| next-hop nexthop-ipv4-address | Specifies the next-hop IPv4 address of the static route for IP-link. This parameter applies to IP-link detection when static routes are used. | - |
| next-hop nexthop-ipv6-address | Specifies the next-hop IPv6 address of the static route for IP-link. This parameter applies to IP-link detection when static routes are used. | - |
| next-hop dhcp | Indicates that the next-hop address is the gateway address obtained by the DHCP client. This parameter applies to IP-link detection when DHCP is used to obtain addresses. | - |
| next-hop dialer | Indicates that the next-hop address is obtained by the Dialer interface. | - |
| mode ns | Indicates that NS packets are transmitted to a specified destination address for link detection. | - |
# Configure IP-Link test on the FW to send ICMPv6 link detection packets to destination address 10:100::100:14.
<sysname> system-view [sysname] ip-link name test [sysname-iplink-test] ipv6 destination 10:100::100:14 mode icmp6
# As the destination IP address changes frequently, configure IP-Link test to send ICMP packets to destination DNS domain name www.example.com.
<sysname> system-view [sysname] ip-link name test [sysname-iplink-test] destination www.example.com
# Configure the FW (the DHCP client) to send ICMP packets to destination IP address 10.1.1.1.
<sysname> system-view
[sysname] ip-link name test
[sysname-iplink-test] destination 10.1.1.1 interface GigabitEthernet 0/0/1 mode icmp next-hop dhcp