The peer reflect-client command configures the local router as the route reflector and the peer or peer group as the client of the route reflector.
The undo peer reflect-client command cancels the configuration.
By default, the route reflector and its client are not configured.
peer { group-name | ipv4-address | ipv6-address } reflect-client
undo peer { group-name | ipv4-address | ipv6-address } reflect-client
| 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. |
It is in dotted decimal notation. |
ipv6-address |
Specifies the IPv6 address of the peer. |
The address is a 32-digit hexadecimal number in the X:X:X:X:X:X:X:X format. |
ipv4-address is valid only in the BGP view, BGP-IPv4 unicast address family view, BGP-VPN-Target address family view, BGP-IPv6 unicast address family view, and BGP-VPNv4 address family view, and BGP-VPN instance IPv4 address family view, .
ipv6-address is valid only in the BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view.
BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPNv4 address family view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view, BGP-VPN-Target address family view
Usage Scenario
Full-meshed connections need to be established between IBGP peers to ensure the connectivity between the IBGP peers. If there are n routers in an AS, n (n-1)/2 IBGP connections need to be established. A large number of IBGP peer uses a lot of network and CPU resources. An RR can be used to solve the problem.
In an AS, one router functions as an RR and other routers function as clients. The clients establish IBGP connections with the RR. The RR and its clients form a cluster. The RR reflects routes among the clients, and therefore the clients do not need to establish any BGP connection. Assume that an AS has n routers. If one of the routers functions as an RR, and other routers function as clients, the number of IBGP connections to be established is n-1. This means that network and CPU resources are greatly reduced.
An RR is easy to configure, because it needs to be configured only on the device that functions as a reflector and clients do not need to know that they are clients.
Prerequisites
The peer as-number command has been used to create a peer or peer group.
Configuration Impact
The device where the peer reflect-client command is run serves as the RR and a specified peer or peer group serves as the client of the RR.
Precautions
The peer reflect-client command can be only used between IBGP peers or IBGP peer groups.
reflect-client configured in an address family is valid in this family address and cannot be inherited by other address families. Configuring reflect-client in a specified address family is recommended.
# Configure the peers as the clients of the route reflector.
<sysname> system-view
[sysname] bgp 100
[sysname-bgp] peer 1.1.1.2 as-number 100
[sysname-bgp] ipv4-family unicast
[sysname-bgp-af-ipv4] peer 1.1.1.2 reflect-client
<sysname> system-view
[sysname] bgp 100
[sysname-bgp] ipv6-family
[sysname-bgp-af-ipv6] peer test reflect-client