Planet XGS3-24042 User Manual Page 352

  • Download
  • Add to my manuals
  • Print
  • Page
    / 721
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 351
40-18
40.3.3 Examples 3: configure BGP community attributes
In the following sample, “route map set-community is used for the outgoing update to neighbor 16.1.1.6. By
accessing to route in table 1 to configure special community value to “1111”, other can be announced
normally.
Switch(config)#router /jointfilesconvert/1771035/bgp 100
Switch(config-router-bgp)#neighbor 16.1.1.6 remote-as 200
Switch(config-router-bgp)#neighbor 16.1.1.6 route-map set-community out
Switch(config-router-bgp)#exit
Switch(config)#route-map set-community permit 10
Switch(config-route-map)#match address 1
Switch(config-route-map)#set community 1111
Switch(config-route-map)#exit
Switch(config)#route-map set-community permit 20
Switch(config-route-map)#match address 2
Switch(config-route-map)#exit
Switch(config)#access-list 1 permit 11.1.0.0 0.0.255.255
Switch(config)#access-list 2 permit 0.0.0.0 255.255.255.255
Switch(config)#exit
Switch#clear ip /jointfilesconvert/1771035/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.
Switch(config)#router /jointfilesconvert/1771035/bgp 100
Switch(config-router-bgp)#neighbor 16.1.1.6 remote-as 200
Switch(config-router-bgp)#neighbor 16.1.1.6 route-map match-community in
Switch(config-router-bgp)#exit
Switch(config)#route-map match-community permit 10
Switch(config-route-map)#match community com1
Switch(config-route-map)#set metric 2000
Switch(config-route-map)#exit
Switch(config)#route-map match-community permit 20
Switch(config-route-map)#match community com2
Switch(config-route-map)#set local-preference 500
Switch(config-route-map)#exit
Switch(config)#ip community-list com1 permit 100 200 300
Switch(config)#ip community-list com1 permit 900 901
Switch(config)#ip community-list com2 permit 88
Page view 351
1 2 ... 347 348 349 350 351 352 353 354 355 356 357 ... 720 721

Comments to this Manuals

No comments