< Home

peer ignore

Function

The peer ignore command forbids a router to set up the session with a peer or peer group.

The undo peer ignore command removes the configuration.

By default, the router is permitted to set up the session with the BGP peer or peer group.

Format

peer { group-name | ipv4-address | ipv6-address } ignore

undo peer { group-name | ipv4-address | ipv6-address } ignore

Parameters

Parameter Description Value
group-name Specifies the name of the peer group. The name is a string of 1 to 47 characters without any space. It is case-sensitive.
ipv4-address Specifies the IPv4 address of the peer. -
ipv6-address Specifies the IPv6 address of the peer. -

ipv4-address is valid only in the BGP view and the BGP-VPN instance IPv4 address family view.

ipv6-address is valid only in the BGP view and the BGP-VPN instance IPv6 address family view.

Views

BGP view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a BGP device needs to transitorily close the session with a peer and reconfiguring the peer requires too much workload, the peer ignore command can be used to avoid the reconfiguration of the peer. For example, if the peer relationship frequently alternates between Up and Down because of the upgrade of a peer or the adjustment of the link, the BGP peer relationship needs to be interrupted temporarily. In this case, the peer ignore command can be used on the stabler end to prevent frequent flapping of the route or peer relationship.

The peer ignore command is used to tear down sessions between a BGP device and its peer or peer group and delete all related routing information. In the case of a peer group, a large number of sessions are suddenly torn down.

Prerequisites

The peer as-number command has been used to create a peer or peer group.

Configuration Impact

After a BGP session is successfully established, running the peer ignore command interrupts the BGP session. The interrupted BGP session cannot be established again, and the status of the corresponding BGP peer relationship is displayed as Idle.

Precautions

Running the peer ignore command together with the peer enable command equals running of the reset bgp command. Both methods can be used to configure a device to re-establish a session.

Example

# Forbid a router to set up sessions with the peer 1.1.1.2.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 1.1.1.2 as-number 200
[sysname-bgp] peer 1.1.1.2 ignore
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >