Cabletron Systems 9032578-05 manual Adding and Removing a BGP Peer, Starting BGP

Models: 9032578-05

1 398
Download 398 pages 17.39 Kb
Page 155
Image 155

Chapter 12: BGP Configuration Guide

Adding and Removing a BGP Peer

There are two ways to add BGP peers to peer groups. You can explicitly add a peer host, or you can add a network. Adding a network allows for peer connections from any addresses in the range of network and mask pairs specified in the bgp add network command.

To add BGP peers to BGP peer groups, enter one of the following commands in Configure mode.

Add a host to a BGP peer

bgp add peer-host<ipaddr> group <number-or-string>

group.

 

 

 

Add a network to a BGP peer

bgp add network <ip-addr-mask>all group <number-

group.

or-string>

 

 

You may also remove a BGP peer from a peer group. To do so , enter the following command in Configure mode:

Remove a host from a BGP peer group.

bgp clear peer-host <ipaddr>

Starting BGP

BGP is disabled by default. To start BGP, enter the following command in Configure mode.

Start BGP.

bgp start

Using AS-Path Regular Expressions

An AS-path regular expression is a regular expression where the alphabet is the set of AS numbers. An AS-path regular expression is composed of one or more AS-path expressions. An AS-path expression is composed of AS path terms and AS-path operators.

An AS path term is one of the following three objects:

autonomous_system

Is any valid autonomous system number, from one through 65534 inclusive.

. (dot)

Matches any autonomous system number.

SmartSwitch Router User Reference Manual

129

Page 155
Image 155
Cabletron Systems 9032578-05 manual Adding and Removing a BGP Peer, Starting BGP, Using AS-Path Regular Expressions