需求:模拟ISP客户起BGP互联。并发布电信和联通的路由前辍,

1、将发送的电信路由前辍AS设置为4837.团体属性设置为0:150

2、将发送的联路由前辍AS设置为3134,团体属性设置为0:199


定义发布电信路由时的策略

route-map bgp-out-dx permit 20

 set as-path prepend 4837

!

route-map bgp-out-dx permit 30

 set community 0:150

!


定义发布联通路由时的策略

route-map bgp-out-lt permit 20

 set as-path prepend 3134

!

route-map bgp-out-lt permit 30

 set community 0:199

!



router bgp 5600X

 bgp router-id 103.246.134.255

neighbor x.x.x.x remote-as 244XX

neighbor x.x.x.x ebgp-multihop 5


在发布路由时应用策略

network 36.32.0.0/14 route-map bgp-out-lt

network 60.164.175.0/24 route-map bgp-out-dx