beautypg.com

Adding a bgp peer, Starting bgp, Using as-path regular expressions – Cabletron Systems SmartSwitch Router 9032578-02 User Manual

Page 75

background image

SmartSwitch Router User Reference Manual

75

Chapter 6: BGP Configuration Guide

Adding 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.

Starting BGP

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

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.

( aspath_regexp )

Parentheses group subexpressions. An operator, such as * or ? works on a single
element or on a regular expression enclosed in parentheses

An AS-path operator is one of the following:

aspath_term {m,n}

A regular expression followed by {m,n} (where m and n are both non-negative
integers and m <= n) means at least m and at most n repetitions.

Add a host to a BGP peer
group.

bgp add peer-host

group

Add a network to a BGP peer
group.

bgp add network

|all group

or-string>

Start BGP

bgp start