Cabletron Systems SmartSwitch Network Router User Manual


 
SmartSwitch Router User Reference Manual 131
Chapter 10: 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.
You may also remove a BGP peer from a peer group. To do so , enter the following
command 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.
Add a host to a BGP peer
group.
bgp add peer-host <ipaddr> group <number-or-string>
Add a network to a BGP peer
group.
bgp add network <ip-addr-mask>|all group <number-
or-string>
Remove a host from a BGP peer
group.
bgp clear peer-host <ipaddr>
Start BGP. bgp start