61 neighbor prefix-list – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 318

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 318 of 855

Command Mode

Router mode

Usage

Neighbors with the same update policies are grouped into peer groups. This facilitates the updates of various
policies, such as, distribute and filter lists. The peer-group is then configured easily with any of the neighbor
commands. Any changes made to the peer group affect all members. Use this command to create a
peer-group.

Example

Switch# configure terminal
Switch(config)# router bgp 10
Switch(config-router)# neighbor group1 peer-group

16.61 neighbor prefix-list

Use this command to distribute BGP neighbor information as specified in a prefix list.
Use the no parameter with this command to remove an entry.

Command Syntax

(no) neighbor NEIGHBORID prefix-list LISTNAME in|out
NEIGHBORID = A.B.C.D|X:X::X:X|TAG
A.B.C.D Specifies the address of the BGP neighbor in IPv4 format.
X:X::X:X Specifies the address of the BGP neighbor in IPv6 format.
TAG Name of an existing peer-group.

For information on how to create peer groups, refer to the neighbor peer-group and neighbor remote-as
commands. When this parameter is used

with a command, the command applies on all peers in the specified group.
LISTNAME The number of an AS-path access list.
in Specifies that the access list applies to incoming advertisements.
out Specifies that the access list applies to outgoing advertisements.

Command Mode

Router mode and Address Family mode

Usage

Use this command to specify a prefix list for filtering BGP advertisements. Filtering by prefix list matches the
prefixes of routes with those listed in the prefix list. If there is a match, the route is used. An empty prefix list
permits all prefixes. If a given prefix does not match any entries of a prefix list, the route is denied access.
When multiple entries of a prefix list match a prefix, the entry with the smallest sequence number is
considered to be a real match.
The router begins the search at the top of the prefix list, with the sequence number 1. Once a match or deny

Advertising