Download as pdf or txt
Download as pdf or txt
You are on page 1of 36

ZXR10 M6000-S BGP4+

Configuration&Operation
Objectives

Master BGP4+ Configuration

2
Contents

n BGP4+ configuration steps


n BGP4+ configuration example
n BGP4+ maintenance

3
BGP4+ Configuration Steps

n enable BGP4+
n configure BGP4+ route announcement
n configure EBGP multi-hop
n configure BGP4+ route reflector
n configure BGP4+ route attributes
n configure BGP4+ IPv6 address family

© ZTE All rights reserved 4


Step1、enable BGP4+

Steps command function


1 enable BGP4+
ZXR10(config)# router bgp <autonomous system number>
process
2 configure BGP4+
ZXR10(config-bgp)# bgp router-id <ip address>
Router ID
3
ZXR10(config-bgp)# neighbor {<ipv6-address> | <peer-group- configure BGP4+
name>} remote-as <neighbor as-number> IPv6 neighbor

4 enter IPv6 address


ZXR10(config-bgp)# address-family ipv6
family mode

5
ZXR10(config-bgp-af-ipv6)# neighbor {<ipv6-address> | <peer-
activate neighbor
group-name>} activate

6
ZXR10(config-bgp-af-ipv6)# network <ipv6 network number> configure BGP4+
[route-map <name>] advertising route

© ZTE All rights reserved 5


Enable BGP4+ Configuration Example

n configuration on R1:
n ZXR10_R1(config)#router bgp 100
n ZXR10_R1(config-bgp)#bgp router-id 1.1.1.1
n ZXR10_R1(config-bgp)#neighbor 2005::2 remote-as 200
n ZXR10_R1(config-bgp)#address-family ipv6
n ZXR10_R1(config-bgp-af-ipv6)#neighbor 2005::2 activate
n ZXR10_R1(config-bgp-af-ipv6)#network 2001::/64

© ZTE All rights reserved 6


Enable BGP4+ Configuration Example

n configuration on R2:
n ZXR10_R2(config)#router bgp 200
n ZXR10_R2(config-bgp)#bgp router-id 2.2.2.2
n ZXR10_R2(config-bgp)#neighbor 2005::1 remote-as 100
n ZXR10_R2(config-bgp)#address-family ipv6
n ZXR10_R2(config-bgp-af-ipv6)#neighbor 2005::1 activate
n ZXR10_R2(config-bgp-af-ipv6)#network 2003::/64

© ZTE All rights reserved 7


Step2、Configure BGP4+ Route Announcement

n After establishing BGP4+ neighbor, use the following


methods to announce BGP4+ routes:
l use network command to announce route:
ZXR10(config-bgp-af-ipv6)# network <ipv6 network number>
l use redistribute command to import other route into BGP4+:
ZXR10(config-bgp-af-ipv6)# redistribute <other route protocol>

© ZTE All rights reserved 8


Step3、Configure EBGP Multi-Hop

n As shown in the figure, R1 need to use R2's address 2003::2/64, which is


indirectly connected interface address, to establish EBGP neighbor.

n configuration on R1(omit other configuration):


n ZXR10_R1(config)#router bgp 100
n ZXR10_R1(config-bgp)#neighbor 2003::2 remote-as 300
n ZXR10_R1(config-bgp)#neighbor 2003::2 ebgp-multihop
n configuration on R2(omit other configuration):
n ZXR10_R2(config)#router bgp 300
n ZXR10_R2(config-bgp)#neighbor 2005::1 remote-as 100

© ZTE All rights reserved 9


Step4、Configure BGP4+ Route Reflector

step command function


1 ZXR10(config-bgp-af-ipv6)# neighbor {<ipv6-
set neighbor as RR
address> | <peer-group-name>} route-reflector
client
-client
2 enable Route reflect
ZXR10(config-bgp)# bgp client-to-client reflection between client and
client
3 ZXR10(config-bgp)# bgp cluster-id {<value> |
set RR Cluster ID
<ip-address>}

© ZTE All rights reserved 10


BGP4+Route Reflector Configuration Example
n As shown in the figure, there are 2 RRs in AS100, R3 and R4. R4's RR-
clients are R5 and R6,R3's RR-clients are R1 and R2.

© ZTE All rights reserved 11


BGP4+Route Reflector Configuration Example

Configuration on R3:
n ZXR10_R3(config)#router bgp 100
n ZXR10_R3 (config-bgp)#address-family ipv6
n ZXR10_R3 (config-bgp-af-ipv6)#neighbor 3ffe::1 activate
n ZXR10_R3 (config-bgp-af-ipv6)#neighbor 3ffe::2 activate
n ZXR10_R3 (config-bgp-af-ipv6)#neighbor 3ffe::1 route-reflector-client //set RR
client
n ZXR10_R3 (config-bgp-af-ipv6)#neighbor 3ffe::2 route-reflector-client //set RR
client
Configuration on R2:
n ZXR10_R2(config)#router bgp 100
n ZXR10_R2(config-bgp)#address-family ipv6
n ZXR10_R2(config-bgp-af-ipv6)#neighbor 3ffe::3 activate

© ZTE All rights reserved 12


Step5、Configure BGP4+ Route Attributes
command function

allow compare MED of the received


ZXR10(config-bgp)# bgp always-compare-med route from different AS eBGP
neighbor

ZXR10(config-bgp)# bgp default local-preference <value> set BGP4+ default local preference

ZXR10(config-bgp)# neighbor {<ipv6-address> | <peer-group-name>} set the minmum interval of updated


advertisement-interval <interval> route announcement to neighbor

ZXR10(config-bgp)# neighbor {<ipv6-address> | <peer-group-name>}


set description of neighbor
description <line>

ZXR10(config-bgp)# neighbor {<ipv6-address> | <peer-group-name>} forbid to advertise update to


passive neighbor

ZXR10(config-bgp)# neighbor <ipv6-address> peer-group [<group-


create neigbhor group
name>]

ZXR10(config-bgp)# neighbor {<ipv6-address> | <peer-group-name>} set neighbor in administrative down


shut-down mode

ZXR10(config-bgp)# neighbor {<ipv6-address> | <peer-group-name>}


set neighbor's timer parameters
timers <keepalive> <holdtime>

ZXR10(config-bgp)# neighbor {<ipv6-address> | <peer-group-name>} set the source ip address of TCP


update-source <interface name> connection to neighbor

© ZTE All rights reserved 13


Step6、Configure BGP4+ IPv6 Address Family

command function
enter IPv6 address family
ZXR10(config-bgp)# address-family ipv6
mode
ZXR10(config-bgp-af)# neighbor {<ipv6-address> | advertise default route ::/0 to
<peer-group-name>} default-originate dedicated neighbor
ZXR10(config-bgp-af)# neighbor {<ipv6-address> | set the maximum number of
<peer-group-name>} maximum-prefix <value> received route from neighbor
set local address as BGP route
ZXR10(config-bgp-af)# neighbor {<ipv6-address> |
next hop when advertising
<peer-group-name>} next-hop-self
route to neighbor
when advertising route to
ZXR10(config-bgp-af)# neighbor {<ipv6-address> |
neighbor, filter private AS
<peer-group-name>} remove-private-as
number
when advertising route to
ZXR10(config-bgp-af)# neighbor {<ipv6-address> |
neighbor, send community
<peer-group-name>} send-community
attribute to neighbor

© ZTE All rights reserved 14


Contents

n BGP4+ configuration steps


n BGP4+ configuration example
n BGP4+ maintenance

15
BGP4+ Configuration Example

Configuration Description:
n This example describes how to configure BGP4+. It involves the practical use of
BGP4+, such as IBGP/EBGP neighbor establishment, routing policy, route
redistribution, and Message Digest 5 Algorithm (MD5) encryption.
n As shown in Figure, EBGP neighbors are established between R4 and R1, IBGP
neighbors are established between R1 and R2, and multi-hop EBGP neighbors are
established between R2 and R5. R2 and R5 establish an EBGP multi-hop relation
through R3. Before BGP is configured, it is necessary to ensure that the addresses
used for neighbor establishment between the two routers can interwork with
each other (via IGP; IGP configuration is omitted in this example).

© ZTE All rights reserved 16


BGP4+ Configuration Example

Configuration Flow:
1. Enable IPv6 on each interface and configure IPv6 addresses.
2. Create a BGP4+ instance.
3. Configure BGP4+ neighbors and routing policies.
4. Configure the redistribution command and enable neighbors to advertise routes.

© ZTE All rights reserved


BGP4+ Configuration Example
Configuration on R4:
n R4(config)#router bgp 2
n R4(config-bgp)#neighbor 2001::1 remote-as 1
n R4(config-bgp)#address-family ipv6
n R4(config-bgp-af-ipv6)#neighbor 2001::1 activate
n R4(config-bgp-af-ipv6)#redistribute static /*config redistribute static route*/
n R4(config-bgp-af-ipv6)#end
Configuration on R1:
n R1(config)#router bgp 1
n R1(config-bgp)#neighbor 2003::2 remote-as 1
n R1(config-bgp)#neighbor 2001::4 remote-as 2
n R1(config-bgp)#address-family ipv6
n R1(config-bgp-af-ipv6)#neighbor 2001::4 activate
n R1(config-bgp-af-ipv6)#neighbor 2003::2 activate
n R1(config-bgp-af-ipv6)#end
//The IPv6 interface address configuration is omitted in this example

© ZTE All rights reserved 18


BGP4+ Configuration Example
Configuration on R2:
n R2(config)#router bgp 1
n R2(config-bgp)#neighbor 2003::1 remote-as 1
n R2(config-bgp)#neighbor 2007::5 remote-as 3
n R2(config-bgp)#neighbor 2007::5 ebgp-multihop /*config ebgp-multihop*/
n R2(config-bgp)#neighbor 2007::5 password hello /*config password*/
n R2(config-bgp)#address-family ipv6
n R2(config-bgp-af-ipv6)#neighbor 2003::1 activate
n R2(config-bgp-af-ipv6)#neighbor 2007::5 activate
n R2(config-bgp-af-ipv6)#end
Configuration on R5:
n R5(config)#router bgp 3
n R5(config-bgp)#neighbor 2005::2 remote-as 1
n R5(config-bgp)#neighbor 2005::2 ebgp-multihop
n R5(config-bgp)#neighbor 2005::2 password hello
n R5(config-bgp)#address-family ipv6
n R5(config-bgp-af-ipv6)#neighbor 2005::2 activate
n R5(config-bgp-af-ipv6)#end
© ZTE All rights reserved 19
BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast summary command on R1 to check the adjacency, as
shown below.

ZXR10_R1(config)#show bgp ipv6 unicast summary


Neighbor Ver As MsgRcvd MsgSend Up/Down State/PfxRcd
2003::2 4 1 12 12 00:25:34 0
2001::4 4 2 14 14 00:28:06 4

© ZTE All rights reserved


BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast command on R1 to check the routing table, as shown
below.

R1(config)#show bgp ipv6 unicast


Status codes: * valid, > best, i - internal, s - stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Network Next Hop Metric LocPrf RtPrf Path
*> 2004:1::/64 2001::4/64 2 ?
*> 2004:2::/64 2001::4/64 2 ?
*> 2004:3::/64 2001::4/64 2 ?
*> 2004:4::/64 2001::4/64 2 ?

© ZTE All rights reserved


BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast summary command on R2 to check the adjacency, as
shown below.

ZXR10_R2(config)#show bgp ipv6 unicast summary


Neighbor Ver As MsgRcvd MsgSend Up/Down State/PfxRcd
2003::1 4 1 12 12 00:25:34 4
2007::5 4 3 15 15 00:32:30 0

© ZTE All rights reserved


BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast command on R2 to check the routing table, as shown
below.

R2(config)#show bgp ipv6 unicast


Status codes: * valid, > best, i - internal, s - stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Network Next Hop Metric LocPrf RtPrf Path
*> 2004:1::/64 2003::1/64 100 2 ?
*> 2004:2::/64 2003::1/64 100 2 ?
*> 2004:3::/64 2003::1/64 100 2 ?
*> 2004:4::/64 2003::1/64 100 2 ?

© ZTE All rights reserved


BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast summary command on R4 to check the adjacency, as
shown below.

ZXR10_R4(config)#show bgp ipv6 unicast summary


Neighbor Ver As MsgRcvd MsgSend Up/Down State/PfxRcd
2001::1 4 1 14 14 00:28:06 0

© ZTE All rights reserved


BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast command on R4 to check the routing table, as shown
below.

R4(config)#show bgp ipv6 unicast


Status codes: * valid, > best, i - internal, s - stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Network Next Hop Metric LocPrf RtPrf Path
*> 2004:1::/64 :: 2 ?
*> 2004:2::/64 :: 2 ?
*> 2004:3::/64 :: 2 ?
*> 2004:4::/64 :: 2 ?

© ZTE All rights reserved


BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast summary command on R5 to check the adjacency, as
shown below.

ZXR10_R5(config)#show bgp ipv6 unicast summary


Neighbor Ver As MsgRcvd MsgSend Up/Down State/PfxRcd
2005::2 4 1 15 15 00:32:30 4

© ZTE All rights reserved


BGP4+ Configuration Example

Configuration Verification
Run the show bgp ipv6 unicast command on R5 to check the routing table, as shown
below.

R5(config)#show bgp ipv6 unicast


Status codes: * valid, > best, i - internal, s - stale
Origin codes: i-IGP, e-EGP, ?-incomplete
Network Next Hop Metric LocPrf RtPrf Path
*> 2004:1::/64 2005::2/64 1 2 ?
*> 2004:2::/64 2005::2/64 1 2 ?
*> 2004:3::/64 2005::2/64 1 2 ?
*> 2004:4::/64 2005::2/64 1 2 ?

© ZTE All rights reserved


Contents

n BGP4+ configuration steps


n BGP4+ configuration example
n BGP4+ maintenance

28
BGP4+ Maintenance

n When facing BGP4+ route troubles, we can execute


troubleshooting by maintenance commands. Mostly we use show
command, and by show command, we can check BGP4+
neighbor status, the received BGP4+ route information, etc.
command function
display BGP4+ protocol
ZXR10# show bgp all protocol
configuration information
ZXR10# show bgp ipv6 unicast neighbor display BGP4+ neighbor status
ZXR10# show bgp ipv6 unicast display BGP4+ route table's entries
display all BGP4+ neighbor
ZXR10# show bgp ipv6 unicast summary
connectivity status

© ZTE All rights reserved 29


BGP4+ Maintenance

n ZXR10#show bgp all protocol


BGP router ID is 2.2.2.2, Local as is 1
Hold time is 180 seconds, KeepAlive time is 60 seconds
Default local preference is 100
Default export metric is 0
IPv4 IGP synchronization is disabled
IPv6 IGP synchronization is disabled
Default information advertise is disabled
Always compare med is disabled
Fast fallover is enabled
Client-to-client reflection is enabled
Ipv4 unicast is activated
Router target is filtered
……
© ZTE All rights reserved 30
BGP4+ Maintenance

n ZXR10#show bgp ipv6 unicast neighbor


BGP neighbor is 2005::1, remote AS 1, internal link
BGP version 4, remote router ID 1.1.1.1
BGP state = Established, up for 00:08:04
Last read update 00:02:31, hold time is 180 seconds, keepalive
interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received
Address family IPv6 Unicast: advertised and received
……

© ZTE All rights reserved 31


BGP4+ Maintenance

n ZXR10#show bgp ipv6 unicast


Status codes: *valid, >best, i-internal
Origin codes: i-IGP, e-EGP, ?-incomplete

Network Next Hop Metric LocPrf RtPrf Path


*>i2001::/64 2005::1 100 i
*>i2001::1/128 2005::1 100 i
*> 2003::/64 :: i
*> 2003::2/128 :: i
*> 2005::/64 :: ?
*i2005::/64 2005::1 100 ?
*>i2005::1/128 2005::1 100 ?
*> 2005::2/128 :: ?

© ZTE All rights reserved 32


BGP4+ Maintenance

n ZXR10#show bgp ipv6 unicast summary


Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State/PfxRcd
2005::1 4 1 25 25 00:12:04 4

© ZTE All rights reserved 33


BGP4+ Maintenance

n Besides show command, we can also use debug command to


observe BGP4+ neighbor establishing process and route update
process, etc.
command function
trace and show BGP received notification
ZXR10# debug ip bgp in message, with listed error codes and sub error
codes
trace and show BGP advertised notification
ZXR10# debug ip bgp out message, with listed error codes and sub error
codes
race and show BGP connection state machine
ZXR10# debug ip bgp events
tansfer
ZXR10# debug ip bgp<neighbor race and show BGP update messages between
ipv6 address> updates neighbors

© ZTE All rights reserved 34


Review

n BGP4+ configuration
n BGP4+ maintenance

© ZTE All rights reserved 35


Thank you

You might also like