Configuration examples – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual
Page 432
6. To configure a route-map perform the following step.
• On device 1, (the device facing the Internet), configure a null0 route matching the next-hop
address in the route-map (ip route 10.199.1.1/32 null0).
7. Repeat step 3 for all devices interfacing with the Internet (edge corporate devices). In this case,
device 2 has the same null0 route as device 1.
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:
device(config)# ip route 10.0.0.40/29 ethernet 3/7 tag 50
device(config)# ip route 10.0.0.192/27 ethernet 3/7 tag 50
device(config)# ip route 10.014.0/23 ethernet 3/7 tag 50
The following configuration redistributes routes into BGP4.
device(config)# router bgp
device(config-bgp-router)# local-as 100
device(config-bgp-router)# neighbor router1_int_ip address remote-as 100
device(config-bgp-router)# neighbor router2_int_ip address remote-as 100
device(config-bgp-router)# neighbor router3_int_ip address remote-as 100
device(config-bgp-router)# neighbor router4_int_ip address remote-as 100
device(config-bgp-router)# neighbor router5_int_ip address remote-as 100
device(config-bgp-router)# neighbor router7_int_ip address remote-as 100
device(config-bgp-router)# redistribute static route-map blockuser
device(config-bgp-router)# exit
The following configuration defines the specific next hop address and sets the local preference to
preferred.
device(config)# route-map blockuser permit 10
device(config-routemap blockuser)# match tag 50
device(config-routemap blockuser)# set ip next-hop 10.199.1.1
device(config-routemap blockuser)# set local-preference 1000000
device(config-routemap blockuser)# set origin igp
device(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 10.199.1.1 points to the null0 route.
device(config)# ip route 10.199.1.1/32 null0
device(config)# router bgp
device(config-bgp-router)#local-as 100
device(config-bgp-router)# neighbor router2_int_ip address remote-as 100
device(config-bgp-router)# neighbor router3_int_ip address remote-as 100
device(config-bgp-router)# neighbor router4_int_ip address remote-as 100
device(config-bgp-router)# neighbor router5_int_ip address remote-as 100
device(config-bgp-router)# neighbor router6_int_ip address remote-as 100
device(config-bgp-router)# neighbor router7_int_ip address remote-as 100
Device 2
Configuration examples
432
FastIron Ethernet Switch Layer 3 Routing Configuration Guide
53-1003087-04