Configuration examples – Brocade BigIron RX Series Configuration Guide User Manual

Page 910

Advertising
background image

832

BigIron RX Series Configuration Guide

53-1002484-04

BGP Null0 routing

27

Configuration examples

Router 6

The following configuration defines specific prefixes to filter.

BigIron RX(config)#ip route 110.0.0.40/29 ethernet 3/7 tag 50

BigIron RX(config)#ip route 115.0.0.192/27 ethernet 3/7 tag 50

BigIron RX(config)#ip route 120.0.14.0/23 ethernet 3/7 tag 50

The following configuration redistributes routes into BGP.

BigIron RX(config)#router bgp

BigIron RX(config-bgp-router)#local-as 100

BigIron RX(config-bgp-router)#neighbor 192.168.5.4 remote-as 100

BigIron RX(config-bgp-router)#neighbor 193.168.5.4 remote-as 100

BigIron RX(config-bgp-router)#neighbor 194.168.5.4 remote-as 100

BigIron RX(config-bgp-router)#neighbor 195.168.5.4 remote-as 100

BigIron RX(config-bgp-router)#neighbor 196.168.5.4 remote-as 100

BigIron RX(config-bgp-router)#neighbor 197.168.5.4 remote-as 100

BigIron RX(config-bgp-router)#redistribute static route-map blockuser

BigIron RX(config-bgp-router)#exit

The following configuration defines the specific next hop address and sets the local preference to
preferred.

BigIron RX(config)#route-map blockuser permit 10

BigIron RX(config-routemap blockuser)#match tag 50

BigIron RX(config-routemap blockuser)#set ip next-hop 199.199.1.1

BigIron RX(config-routemap blockuser)#set local-preference 1000000

BigIron RX(config-routemap blockuser)#set origin igp

BigIron RX(config-routemap blockuser)#exit

Router 1

The following configuration defines the null0 route to the specific next hop address. The next hop
address 199.199.1.1 points to 128.178.1.101, which gets blocked.

BigIron RX(config)# ip route 199.199.1.1/32 null0

BigIron RX(config)#router bgp

local-as 100

BigIron RX(config-bgp-router)#neighbor

<

router2_int_ip address> remote-as 100

BigIron RX(config-bgp-router)#neighbor

<

router3_int_ip address> remote-as 100

BigIron RX(config-bgp-router)#neighbor

<

router4_int_ip address> remote-as 100

BigIron RX(config-bgp-router)#neighbor

<

router5_int_ip address> remote-as 100

BigIron RX(config-bgp-router)#neighbor

<

router6_int_ip address> remote-as 100

BigIron RX(config-bgp-router)#neighbor

<

router7_int_ip address> remote-as 100

Router 2

The following configuration defines a null0 route to the specific next hop address. The next hop
address 199.199.1.1 points to 128.178.1.101, which gets blocked.

BigIron RX(config)#ip route 199.199.1.1/32 null0

BigIron RX(config)#router bgp

BigIron RX(config-bgp-router)#local-as 100

BigIron RX(config-bgp-router)#neighbor

<

router1_int_ip address> remote-as 100

BigIron RX(config-bgp-router)#neighbor

<

router3_int_ip address> remote-as 100

Advertising