Chapter5BGPConguration
ParameterDescription
<peer-group-name>peer-groupname
<map-tag>Nameofroutemapping,thelengthis1-31characters
in|outItappliestoinorout
CongurationExample
AsshowninFigure5-9,S1andS2setupEBGPconnectionbetweenthem.Congure
aroute-maponS1.Theroute-mappermitstoadvertisenetwork172.3.0.0/16to
AS200,andsettheMEDvalueas5.
Figure5-9FilterRoutesbyUsingRoute-Map
CongurationonS1:
S1(config)#routerbgp100
S1(config-bgp)#neighbor182.17.20.1remote-as200
S1(config-bgp)#network172.3.0.0255.255.0.0
S1(config-bgp)#network172.5.0.0255.255.0.0
S1(config-bgp)#network172.7.0.0255.255.0.0
S1(config-bgp)#neighbor182.17.20.1route-mapMAP1out
S1(config-bgp)#neighbor182.17.20.1send-med
S1(config-bgp)#exit
S1(config)#route-mapMAP1permit10
S1(config-route-map)#matchipaddress1
S1(config-route-map)#setipmetric5
S1(config-route-map)#exit
S1(config)#ipv4-access-list1
S1(config-ipv4-acl)#rule10permit172.3.0.00.0.255.255
S1(config-ipv4-acl)#exit
5-27
SJ-20150114102049-003|2015-01-15(R1.0)ZTEProprietaryandCondential