Configuration examples – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual
Page 141

Multi-Service IronWare Routing Configuration Guide
113
53-1003033-02
Filtering
8. On device 6, configure the network prefixes associated with the traffic you want to drop. The
static route IP address references a destination address. You must point the static route to the
egress port, (for example, Ethernet 3/7), and specify the tag 50, matching the route-map
configuration.
Configuration examples
Device 6
The following configuration defines specific prefixes to filter:
Brocade(config)# ip route 10.0.0.40/29 ethernet 3/7 tag 50
Brocade(config)# ip route 10.0.0.192/27 ethernet 3/7 tag 50
Brocade(config)# ip route 10.014.0/23 ethernet 3/7 tag 50
The following configuration redistributes routes into BGP4.
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 192.168.0.1
Brocade(config-routemap blockuser)# set local-preference 1000000
Brocade(config-routemap blockuser)# set origin igp
Brocade(config-routemap blockuser)# exit
NOTE
A match tag can take up to 16 tags. During the execution of a route-map, a match on any tag value
in the list is considered a successful match.
Device 1
The following configuration defines the null0 route to the specific next hop address. The next hop
address 192.168.0.1 points to 10.178.1.101, which gets blocked.
Brocade(config)# ip route 192.168.0.1/32 null0
Brocade(config)# router bgp
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
Device 2
The following configuration defines a null0 route to the specific next hop address. The next hop
address 192.168.0.1 points to 10.178.1.101, which gets blocked.