Examples 4: Configure Bgp Confederation - Planet XGS3-42000R User Manual

4-slot layer 3 ipv6/ ipv4 routing chassis switch
Table of Contents

Advertisement

XGS 3-42000R(config-route-map)#exit
XGS 3-42000R(config)#route-map set-community permit 20
XGS 3-42000R(config-route-map)#match address 2
XGS 3-42000R(config-route-map)#exit
XGS 3-42000R(config)#access-list 1 permit 11.1. 0.0 0.0.255.255
XGS 3-42000R(config)#access-list 2 permit 0.0.0.0 255.255.255.255
XGS 3-42000R(config)#exit
XGS 3-42000R#clear ip bgp 16.1.1.6 soft out
In the following sample, configure the MED local preference of the routes from neighbor 16.1.1.6 selectively
according to the route community value. All the routes that match the community list will set MED as 2000,
community list com1 permits the route with community value "100 200 300"or"900 901" to pass. This route
may have other community attributes. All the routes that pass community list com2 will set the local
preference as 500. But the route that can't pass both com1 and com2 will be rejected.
XGS 3-42000R(config)#router bgp 100
XGS 3-42000R(config-router-bgp)#neighbor 16.1.1.6 remote-as 200
XGS 3-42000R(config-router-bgp)#neighbor 16.1.1.6 rout e-map match-c ommunity in
XGS 3-42000R(config-router-bgp)#exit
XGS 3-42000R(config)#route-map match-community permit 10
XGS 3-42000R(config-route-map)#match community com1
XGS 3-42000R(config-route-map)#set metric 2000
XGS 3-42000R(config-route-map)#exit
XGS 3-42000R(config)#route-map match-community permit 20
XGS 3-42000R(config-route-map)#match community com2
XGS 3-42000R(config-route-map)#set local-preference 500
XGS 3-42000R(config-route-map)#exit
XGS 3-42000R(config)#ip community-list com1 permit 100 200 300
XGS 3-42000R(config)#ip community-list com1 permit 900 901
XGS 3-42000R(config)#ip community-list com2 permit 88
XGS 3-42000R(config)#ip community-list com2 permit 90
XGS 3-42000R(config)#exit
XGS 3-42000R#clear ip bgp 16.1.1.6 soft out

39.3.4 Examples 4: configure BGP confederation

The following is the configuration of an AS. As the picture illustrated, S witchB and S witchC establish IBGP
connection. SwitchD is affiliated to AS 20.SwitchB and SwitchC establish EBGP of inner AS confederation.
AS10 and AS20 form AS confederation with the AS number AS200; SwitchA belongs to AS100, SwitchB may
create EBGP connection by AS200.
39-17

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents