Defining neighbor distribute lists – Brocade Virtual ADX Switch and Router Guide (Supporting ADX v03.1.00) User Manual

Page 265

Advertising
background image

Brocade Virtual ADX Switch and Router Guide

251

53-1003246-01

Filtering

8

Virtual ADX(config-bgp)# neighbor 10.10.10.1 prefix-list Routesfor20 out

These commands configure an IP prefix list named Routesfor20, which permits routes to network
10.20.0.0/24. The neighbor command configures the device to use IP prefix list Routesfor20 to
determine which routes to send to neighbor 10.10.10.1. The device sends routes that go to
10.20.x.x to neighbor 10.10.10.1 because the IP prefix list explicitly permits these routes to be sent
to the neighbor.

Syntax: [no] ip prefix-list name [seq seq-value] [description string] deny | permit

network-addr/mask-bits [ge ge-value] [le le-value]

The name parameter specifies the prefix list name. Use this name when applying the prefix list to a
neighbor.

The description string parameter is a text string describing the prefix list.

The seq seq-value parameter is optional and specifies the sequence number of the IP prefix list. If
you do not specify a sequence number, the software numbers the entries in increments of 5,
beginning with prefix list entry 5. The software interprets the prefix list entries in numerical order,
beginning with the lowest sequence number.

The deny | permit parameter specifies the action the software takes if a neighbor route is in this
prefix list.

The network-addr/mask-bits parameters specify the network number and the number of bits in the
network mask.

You can specify a range of prefix length for prefixes that are more specific than
network-addr/mask-bits.

The prefix-list matches only on this network unless you use the ge ge-value or le le-value
parameters.

If you specify only ge ge-value, the mask-length range is from ge-value to 32.

If you specify only le le-value, the mask-length range is from length to le-value.

The ge-value or le-value you specify must meet the following condition:

length ge-value = le-value = 32

If you do not specify ge ge-value or le le-value, the prefix list matches only on the exact network
prefix you specified with the network-addr/mask-bits parameter.

For the syntax of the neighbor command shown in this example, refer to

“Configuring BGP4

neighbors”

on page 228

Defining neighbor distribute lists

A neighbor distribute list is a list of BGP4 address filters or ACLs that filter the traffic to or from a
neighbor.

To configure a distribute list that uses ACL 1, enter a command such as the following.

Virtual ADX(config-bgp)# neighbor 10.10.10.1 distribute-list 1 in

This command configures the device to use ACL 1 to select the routes that the device will accept
from neighbor 10.10.10.1.

Syntax: [no] neighbor ip-addr distribute-list name-or-num in | out

The ip-addr parameter specifies the neighbor.

Advertising