The EBGP peer relationship is established between ASBRs
to advertise routes destined for the loopback interfaces on PEs.
Procedure
- Perform the following steps on ASBRs:
- Access the system view.
system-view
- Access the view of the interface that connects the remote
ASBR.
interface interface-type interface-number
- Set the IP address.
ip address ip-address { mask | mask-length }
- Return to the system view.
quit
- Access the BGP view.
bgp { as-number-plain | as-number-dot }
- Configure the remote ASBR as the EBGP peer.
peer ipv4-address as-number { as-number-plain | as-number-dot }
- (Optional) Set the maximum number of hops for the EBGP
connection.
peer { ipv4-address | group-name } ebgp-max-hop [ hop-count ]
Generally, one or multiple directly connected
physical links exist between EBGP peers. If the directly connected
physical link(s) are not available, run the peer ebgp-max-hop command to ensure that the TCP connection can be set up between
the EBGP peers through multiple hops.