< Home

destination (IP-link view)

Function

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.

Format

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

Parameters

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.
  • If this parameter is not specified, probe packets are forwarded based on the routing table.
  • After this parameter is specified, the system skips policy-based routing and searches the routing table for the specified interface. If a matching route is found, the system forwards the probe packet through the outbound interface. The system considers that the detection is successful only when the response packet is returned through this interface.
-
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. -

Views

IP-link view

Default Level

2: Configuration level

Usage Guidelines

  • If the FW is only one hop to the destination IP address, sending ARP (NS) packets for link detection is recommended. Otherwise, sending ICMP (ICMPv6) packets is recommended. By default, the FW sends ICMP (ICMPv6) packets for link detection.
  • If the next hop for IP-link detection is specified, the FW forwards detection packets based on the specified next-hop address. If not, the FW forwards detection packets based on the routing table.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >