< Home

add interface (ISP interface group view)

Function

The add interface command adds interfaces to an ISP interface group.

The undo add interface command deletes interfaces from an ISP interface group.

Format

add interface interface-type interface-number [ route { enable | disable } ]

undo add interface interface-type interface-number

Parameters

Parameter Description Value
interface-type interface-number

Specifies the interface type and number.

-

enable

Indicates that specific ISP routes will be delivered.

-

disable

Indicates that no ISP route will be delivered.

-

Views

ISP interface group view

Default Level

2: Configuration level

Usage Guidelines

By default, after an interface is added to an ISP interface group, a specific ISP route will be delivered.

Before adding an interface to an ISP interface group, configure an IP address and a gateway address (using the gateway command) for the interface.

In a routing table, the protocol type of an ISP route is user network route (UNR), and the priority value is 70, which is greater than that (60) of a static route. If ISP routes are delivered after interfaces are added to an ISP interface group, the FW will generate ISP routes in batches for a specific operator. The destination addresses of these ISP routes are IP addresses in the ISP address file, and the next-hop addresses of these ISP routes are gateway addresses configured for the interfaces.

Example

# Add GigabitEthernet 0/0/1 to ISP interface group isp_ifgrp and configure the system not to deliver any ISP route.

<sysname> system-view
[sysname] interface-group 1 isp isp_ifgrp
[sysname-interface-isp-group-1] add interface GigabitEthernet 0/0/1 route disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >