< Home

ip route-domain

Function

The ip route-domain command configures a dynamic domain name-based route.

The undo ip route-domain command deletes a dynamic domain name-based route.

Format

ip route-domain domain-name [ vpn-instance vpn-instance-name ] interface interface-type interface-number nexthop nexthop-address [ preference preference ]

undo ip route-domain domain-name [ vpn-instance vpn-instance-name ] interface interface-type interface-number nexthop nexthop-address

Parameters

Parameter Description Value

domain-name

Specifies the name of the domain group.

The value must be an existing domain group on the device.

interface-type interface-number

Specifies the outbound interface of a route.

-

nexthop-address

Specifies the next-hop IP address of the route.

The value is in dotted decimal notation.

preference preference

Specifies the priority.

The value is an integer ranging from 1 to 255. The default value is 70. A smaller value indicates a higher priority.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value must be the name of an existing VPN instance.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, no dynamic domain name-based route is configured.

This command is supported since V600R007C20SPC300.

Example

# Set the domain group to domain1, outbound interface to GigabitEthernet 0/0/1, and next-hop IP address to 1.1.1.2 to configure a dynamic domain name-based route.

<sysname> system-view
[sysname] ip route-domain domain1 interface GigabitEthernet 0/0/1 nexthop 1.1.1.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.