Peer Allow-As-Loop (Bgp/Bgp-Vpn Instance View) - H3C S9500 Series Command Manual

Routing switch bgp
Hide thumbs Also See for S9500 Series:
Table of Contents

Advertisement

Command Manual – BGP
H3C S9500 Series Routing Switches

1.1.42 peer allow-as-loop (BGP/BGP-VPN instance view)

Syntax
peer { group-name | ip-address } allow-as-loop [ number ]
undo peer { group-name | ip-address } allow-as-loop
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
group-name: Name of a peer group.
ip-address: IP address of a peer.
number: Specifies the repeating times of the local AS number. The default number is 1.
Description
Use the peer allow-as-loop command to allow the local AS number to exist in the
AS_PATH attribute of routes from a peer/peer group, and to configure the repeating
times of the local AS number.
Use the undo peer allow-as-loop command to disable the feature.
By default, the local AS number is not allowed.
Related commands: display bgp routing-table peer.
Examples
# In BGP view, configure the repeating times of the local AS number as 2 for routes
from peer 1.1.1.1.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 allow-as-loop 2
# In BGP-VPN instance view, configure the repeating times of the local AS number as 2
for routes from peer 1.1.1.1 (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer 1.1.1.1 allow-as-loop 2
Chapter 1 BGP Configuration Commands
1-44

Advertisement

Table of Contents
loading

Table of Contents