An EBGP peer relationship is established between ASBRs to advertise routes destined for the loopback interfaces on PEs.
Procedure
- Perform the following steps on each ASBR:
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The view of the interface connected to the peer ASBR is displayed.
- Run ip address ip-address { mask | mask-length }
The IP address is configured.
- Run quit
Return to the system view.
- Run bgp as-number
The BGP view is displayed.
- Run peer ipv4-address as-number as-number
The remote ASBR is configured as the EBGP peer.
- (Optional) Run peer { ipv4-address | group-name } ebgp-max-hop [ hop-count ]
The maximum number of hops is set for the EBGP connection. This step is mandatory if the EBGP peers are not directly connected.
- Run commit
The configuration is committed.