< Home

bind bgp peer

Function

The bind bgp peer command associates a business group with a BGP peer.

The undo bind bgp peer command deletes the preceding configuration.

Format

bind bgp peer peer-ip [ vpn-instance vpn-instance-name ]

undo bind bgp peer peer-ip [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
peer-ip

Specifies the IP address of a BGP peer.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance. If a BGP peer belongs to a virtual system, you must specify the vpn-instance parameter.

The value is a string of 1 to 31 case-sensitive characters and can contain a space.

Views

Business group view

Default Level

2: Configuration level

Usage Guidelines

Application scenario

After this command is run, the MED value of a BGP route advertised by the device is affected by its status in the business group, so that traffic diversion can be implemented. The rules are as follows:
  • If the device is in the master state, the MED value of the route is not adjusted.
  • If the device is the first candidate device in the business group, the MED value of the advertised route increases by one step. The default step is 1000, which can be configured using the cluster adjust bgp-cost add command.
  • If the device is in other states in the business group, the MED value of the advertised route increases by two steps.

Precautions

After the undo bind bgp peer command is run, the MED value of the route becomes normal.

To enable the HRP function, ensure that the business group is not associated with any BGP peer.

The configuration of this command cannot be backed up in a cluster. Therefore, you need to configure this command in each cluster member.

This command does not check the validity of a BGP peer. Ensure that the BGP peer involved already exists.

Example

# Associate business group 1 with BGP peer 10.1.1.1.

C_No2_M<sysname> system-view
C_No2_M[sysname] business-group 1
C_No2_M[sysname-business-group-1] bind bgp peer 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >