beautypg.com

Show commands for bgp4 null 0 routing – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual

Page 433

background image

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

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 router1_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

Show commands for BGP4 null 0 routing

After configuring the null0 application, you can display the output using show commands.

Device 6

Show ip route static output for device 6.

device# show ip route static

Type Codes - B:BGP D:Connected S:Static R:RIP O:OSPF; Cost - Dist/Metric

Destination Gateway Port Cost Type

1 10.0.0.40/29 DIRECT eth 3/7 1/1 S

2 10.0.0.192/27 DIRECT eth 3/7 1/1 S

3 10.0.14.0/23 DIRECT eth 3/7 1/1 S

device#

Device 1 and 2

Show ip route static output for device 1 and device 2.

device# show ip route static

Type Codes - B:BGP D:Connected S:Static R:RIP O:OSPF; Cost - Dist/Metric

Destination Gateway Port Cost Type

1 10.199.1.1/32 DIRECT drop 1/1 S

device#

Device 6

The following is the show ip bgp route output for Device-6

device#show ip bgp route

Total number of BGP Routes: 126

Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED

E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH

S:SUPPRESSED F:FILTERED s:STALE

Prefix Next Hop MED LocPrf Weight Status

1 10.0.1.0/24 10.0.1.3 0 100 0 BI

AS_PATH:

. .. . . . .

9 10.0.0.16/30 10.0.1.3 100 0 I

AS_PATH: 85

10 10.0.0.40/29 10.199.1.1/32 1 1000000 32768 BL

AS_PATH:

11 10.0.0.80/28 10.0.1.3 100 0 I

. .. . . . .

. .. . . . .

36 10.0.0.96/28 10.0.1.3 100 0 I

AS_PATH: 50

37 10.0.0.192/27 10.199.1.1/32 1 10000000 32768 BL

AS_PATH:

. .. . . . .

64 10.0.7.0/24 10.0.1.3 100 0 I

AS_PATH: 10

65 10.0.14.0/23 10.199.1.1/32 1 1000000 32768 BL

AS_PATH: .. . . . .

Device 1 and 2

Show commands for BGP4 null 0 routing

FastIron Ethernet Switch Layer 3 Routing Configuration Guide

433

53-1003087-04