Configuration examples for bgp null0 routing – Brocade Communications Systems Layer 3 Routing Configuration ICX 6650 User Manual
Page 345

Brocade ICX 6650 Layer 3 Routing Configuration Guide
327
53-1002603-01
BGP null0 routing
Configuration examples for BGP null0 routing
S6
The following configuration defines specific prefixes to filter.
Brocade(config)#ip route 10.0.0.40/29 ethernet 1/1/2 tag 50
Brocade(config)#ip route 10.0.0.192/27 ethernet 1/1/2 tag 50
Brocade(config)#ip route 10.0.14.0/23 ethernet 1/1/2 tag 50
The following configuration redistributes routes into BGP.
Brocade(config)#router bgp
Brocade(config-bgp-router)#local-as 100
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#redistribute static route-map blockuser
Brocade(config-bgp-router)#exit
The following configuration defines the specific next hop address and sets the local preference to
preferred.
Brocade(config)#route-map blockuser permit 10
Brocade(config-routemap blockuser)#match tag 50
Brocade(config-routemap blockuser)#set ip next-hop 199.199.1.1
Brocade(config-routemap blockuser)#set local-preference 1000000
Brocade(config-routemap blockuser)#set origin igp
Brocade(config-routemap blockuser)#exit
S1
The following configuration defines the null0 route to the specific next hop address. The next hop
address 199.199.1.1 points to the null0 route.
Brocade(config)#ip route 199.199.1.1/32 null0
Brocade(config)#router bgp
Brocade(config-bgp-router)#local-as 100
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor
S2
The following configuration defines a null0 route to the specific next hop address. The next hop
address 199.199.1.1 points to the null0 route, which gets blocked.
Brocade(config)#ip route 199.199.1.1/32 null0
Brocade(config)#router bgp
Brocade(config-bgp-router)#local-as 100
Brocade(config-bgp-router)#neighbor
Brocade(config-bgp-router)#neighbor