Dell FCX624-E Laptop User Manual


  Open as PDF
of 1494
 
1028 PowerConnect B-Series FCX Configuration Guide
53-1002266-01
BGP null0 routing
30
Configuration examples
S6
The following configuration defines specific prefixes to filter.
PowerConnect(config)#ip route 110.0.0.40/29 ethernet 3/7 tag 50
PowerConnect(config)#ip route 115.0.0.192/27 ethernet 3/7 tag 50
PowerConnect(config)#ip route 120.014.0/23 ethernet 3/7 tag 50
The following configuration redistributes routes into BGP.
PowerConnect(config)#router bgp
PowerConnect(config-bgp-router)#local-as 100
PowerConnect(config-bgp-router)#neighbor <router1_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router2_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router3_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router4_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router5_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router7_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#redistribute static route-map blockuser
PowerConnect(config-bgp-router)#exit
The following configuration defines the specific next hop address and sets the local preference to
preferred.
PowerConnect(config)#route-map blockuser permit 10
PowerConnect(config-routemap blockuser)#match tag 50
PowerConnect(config-routemap blockuser)#set ip next-hop 199.199.1.1
PowerConnect(config-routemap blockuser)#set local-preference 1000000
PowerConnect(config-routemap blockuser)#set origin igp
PowerConnect(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.
PowerConnect(config)#ip route 199.199.1.1/32 null0
PowerConnect(config)#router bgp
PowerConnect(config-bgp-router)#local-as 100
PowerConnect(config-bgp-router)#neighbor <router2_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router3_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router4_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router5_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router6_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router7_int_ip address> remote-as 100
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.
PowerConnect(config)#ip route 199.199.1.1/32 null0
PowerConnect(config)#router bgp
PowerConnect(config-bgp-router)#local-as 100
PowerConnect(config-bgp-router)#neighbor <router1_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router3_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router4_int_ip address> remote-as 100
PowerConnect (config-bgp-router)#neighbor <router5_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router6_int_ip address> remote-as 100
PowerConnect(config-bgp-router)#neighbor <router7_int_ip address> remote-as 100