Allied Telesis BGP4 User Manual
Size:
3.09 Mb
Download

BGP & BGP4+ (Border Gateway Protocol IPv4 & IPv6)

Software Reference Supplement for x-SeriesSwitches

AlliedWare PlusOperating System

Version 5.4.3-2.6

SwitchBlade® x8112

SwitchBlade® x908

x900-24XSandx900-24XT

x900-12XT/S

x610-24Tsandx610-24Ts/X

x610-48Tsandx610-48Ts/Xx610-24Ts-PoE+andx610-24Ts/X-PoE+x610-48Ts-PoE+andx610-48Ts/X-PoE+x610-24SPs/X

C613-50032-01REV D

Acknowledgments

This product includes software developed by the University of California, Berkeley and its contributors.

Copyright ©1982, 1986, 1990, 1991, 1993 The Regents of the University of California. All rights reserved.

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/).

Copyright ©1998-2008The OpenSSL Project. All rights reserved.

This product includes software licensed under the GNU General Public License available from:

http://www.gnu.org/licenses/gpl2.html

Source code for all GPL licensed software in this product can be obtained from the

Allied Telesis GPL Code Download Center at:

http://www.alliedtelesis.com/support/default.aspx

Allied Telesis is committed to meeting the requirements of the open source licenses including the GNU General Public License (GPL) and will make all required source code available.

If you would like a copy of the GPL source code contained in Allied Telesis products, please send us a request by registered mail including a check for US$15 to cover production and shipping costs and a CD with the GPL code will be mailed to you.

GPL Code Request

Allied Telesis Labs (Ltd)

PO Box 8011

Christchurch.

New Zealand

©2013 Allied Telesis Inc. All rights reserved.

This documentation is subject to change without notice. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or any means electronic or mechanical, including photocopying and recording for any purpose other than the purchaser’s internal use without the written permission of Allied Telesis, Inc.

Allied Telesis, AlliedWare Plus, EPSRing, SwitchBlade, and VCStack are trademarks or registered trademarks in the United States and elsewhere of Allied Telesis, Inc. Adobe, Acrobat, and Reader are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Additional brands, names and products mentioned herein may be trademarks of their respective companies.

Getting the most from this manual

Although you can view this document using Acrobat version 5, to get the best from this manual, we recommend using Adobe Acrobat Reader version 8. You can download Acrobat Reader 8 free from http://www.adobe.com/.

New features in this software version

For a list of new and enhanced features and commands in this version, see the Software Release Note for Software Version 5.4.3-2.6.Documentation can be downloaded from the Support area of our website athttp://www.alliedtelesis.com. Note that to download software files, you need a valid user account.

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

i.ii

AlliedWare PlusTM Operating System - Software Version5.4.3-2.6

C613-50032-01REV D

Table of Contents

Chapter 1 BGP and BGP4+ Introduction

 

Introduction......................................................................................................................................................................

1.3

 

BGP and BGP4+ ASNs and AS_Path Attributes.............................................................................................

1.4

Internal and External BGP Concepts........................................................................................................................

1.5

 

Public and Private ASNs ........................................................................................................................................

1.5

 

Outbound Routing Toward the Internet.........................................................................................................

1.5

External BGP (eBGP) Concepts...................................................................................................................................

1.6

 

External BGP (eBGP)................................................................................................................................................

1.6

 

Verifying BGP.............................................................................................................................................................

1.7

 

Advertising eBGP routes to ISPs.........................................................................................................................

1.8

Internal BGP (iBGP) Concepts.....................................................................................................................................

1.9

 

iBGP between Internet connected routers.....................................................................................................

1.9

 

Configuring iBGP .....................................................................................................................................................

1.9

 

Verifying iBGP .........................................................................................................................................................

1.10

How to configure BGP and BGP4+ .........................................................................................................................

1.12

 

Initial BGP and BGP4+ Configuration Tasks .................................................................................................

1.12

 

How to enable BGP and BGP4+ Routing.......................................................................................................

1.12

 

How to configure BGP and BGP4+ Neighbors ............................................................................................

1.12

BGP and BGP4+ Neighbor Route Filtering ..........................................................................................................

1.13

 

BGP and BGP4+ Path Filtering by Neighbor ................................................................................................

1.13

 

How to disable next hop processing for BGP or BGP4+ updates........................................................

1.14

 

How to use Route Maps for BGP or BGP4+ updates .................................................................................

1.15

BGP and BGP4+ Peer Groups ...................................................................................................................................

1.16

 

How to create a Peer Group for BGP...............................................................................................................

1.16

 

How to assign options to the created Peer Group ....................................................................................

1.16

 

How to make neighbors members of a Peer Group .................................................................................

1.19

BGP and BGP4+ Prefix Lists.......................................................................................................................................

1.20

 

How to create and configure a Prefix List for BGP or BGP4+.................................................................

1.21

 

How to delete Prefix List Entries.......................................................................................................................

1.21

 

How to display IPv4 and IPv6 Prefix Entries .................................................................................................

1.22

BGP and BGP4+ Route Dampening .......................................................................................................................

1.23

 

How to enable BGP and BGP4+ Route Dampening..................................................................................

1.24

 

How to monitor BGP and BGP4+ Route Dampening ...............................................................................

1.24

BGP and BGP4+ Synchronization ...........................................................................................................................

1.26

BGP and BGP4+ Weights............................................................................................................................................

1.27

BGP and BGP4+ Aggregate Addresses .................................................................................................................

1.28

 

How to enable and disable Automatic Summarization...........................................................................

1.28

BGP and BGP4+ monitoring .....................................................................................................................................

1.29

 

How to clear BGP and BGP4+ tables...............................................................................................................

1.29

 

How to display BGP and BGP4+ statistics.....................................................................................................

1.30

BGP Neighbor status logging...................................................................................................................................

1.31

BGP Connections Reset ..............................................................................................................................................

1.32

BGP Versions...................................................................................................................................................................

1.32

BGP Confederations.....................................................................................................................................................

1.32

BGP Route Reflectors...................................................................................................................................................

1.33

BGP Community Filtering..........................................................................................................................................

1.34

 

 

 

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

C613-50032-01REV D

AlliedWare PlusTM Operating System - Software Version5.4.3-2.6

i.iii

 

BGP Optimization .........................................................................................................................................................

1.35

 

How to determine Backdoor Routes ..............................................................................................................

1.35

 

How to set the BGP Administrative Distance ..............................................................................................

1.35

 

How to change BGP default local preference value .................................................................................

1.35

 

How to redistribute the default network 0.0.0.0 ........................................................................................

1.36

 

How to adjust BGP Timers ..................................................................................................................................

1.36

 

How to adjust the eBGP advertisement interval........................................................................................

1.37

 

How to adjust the iBGP advertisement interval .........................................................................................

1.37

 

How to adjust the AS origination interval ....................................................................................................

1.38

 

How to remove private AS numbers for BGP ..............................................................................................

1.39

 

BGP and BGP4+ Terminology ..................................................................................................................................

1.42

 

Chapter 2 BGP and BGP4+ Configuration

 

 

Introduction......................................................................................................................................................................

2.2

 

BGP Configurations........................................................................................................................................................

2.3

 

Enabling BGP Peers In The Same Autonomous System ............................................................................

2.3

 

Enabling BGP Between Different Autonomous Systems ..........................................................................

2.5

 

Configuring a BGP Route Reflector ...................................................................................................................

2.6

 

Configuring a BGP Confederation .....................................................................................................................

2.8

 

Configuring BGP Authentication .....................................................................................................................

2.11

 

Configuring BGP Graceful Reset.......................................................................................................................

2.13

 

Configuring BGP Distance ..................................................................................................................................

2.15

 

Configuring BGP Graceful Restart....................................................................................................................

2.18

 

Configuring BGP Weight per Peer ...................................................................................................................

2.20

 

BGP4+ Configurations ................................................................................................................................................

2.23

 

Enabling iBGP Peering using a Global Address ..........................................................................................

2.23

 

Enabling iBGP Peering using a Link-local Address ....................................................................................

2.26

 

Enabling eBGP Peering between different Autonomous Systems......................................................

2.29

 

Configuring Route-Maps with BGP4+............................................................................................................

2.31

 

Configuring BGP4+ Graceful Restart ..............................................................................................................

2.35

 

Configuring BGP4+ Distance.............................................................................................................................

2.39

 

Configuring BGP4+ Graceful Reset .................................................................................................................

2.43

 

Chapter 3 BGP and BGP4+ Commands

 

 

Introduction .....................................................................................................................................................................

3.5

 

Controlling “show” Command Output...................................................................................................................

3.6

 

Command List .................................................................................................................................................................

3.8

 

address-family (BGP and BGP4+) .............................................................................................................................

3.8

 

aggregate-address (BGP and BGP4+) ...................................................................................................................

3.10

 

auto-summary (BGP)...................................................................................................................................................

3.12

 

bgp aggregate-nexthop-check (BGP and BGP4+) ...........................................................................................

3.13

 

bgp always-compare-med (BGP and BGP4+) ....................................................................................................

3.14

 

bgp bestpath as-path ignore (BGP and BGP4+) ...............................................................................................

3.15

 

bgp bestpath compare-confed-aspath (BGP and BGP4+) ............................................................................

3.15

 

bgp bestpath compare-routerid (BGP and BGP4+).........................................................................................

3.16

 

bgp bestpath med (BGP and BGP4+) ...................................................................................................................

3.17

 

bgp bestpath med remove-recv-med (BGP and BGP4+) ..............................................................................

3.18

 

bgp bestpath med remove-send-med (BGP and BGP4+) .............................................................................

3.18

 

bgp client-to-client reflection (BGP and BGP4+)..............................................................................................

3.19

 

bgp cluster-id (BGP and BGP4+).............................................................................................................................

3.20

 

bgp confederation identifier (BGP and BGP4+)................................................................................................

3.21

 

bgp confederation peers (BGP and BGP4+) .......................................................................................................

3.22

 

bgp config-type (BGP and BGP4+) ........................................................................................................................

3.24

 

bgp dampening (BGP and BGP4+) ........................................................................................................................

3.26

 

bgp default ipv4-unicast (BGP and BGP4+)........................................................................................................

3.27

 

bgp default local-preference (BGP) .......................................................................................................................

3.28

 

 

 

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

i.iv

AlliedWare PlusTM Operating System - Software Version5.4.3-2.6

C613-50032-01REV D

bgp deterministic-med (BGP and BGP4+) ..........................................................................................................

3.29

bgp enforce-first-as (BGP and BGP4+)..................................................................................................................

3.30

bgp fast-external-failover (BGP and BGP4+) ......................................................................................................

3.31

bgp graceful-restart (BGP and BGP4+).................................................................................................................

3.32

bgp graceful-restart graceful-reset (BGP and BGP4+)....................................................................................

3.33

bgp log-neighbor-changes (BGP and BGP4+)...................................................................................................

3.34

bgp memory maxallocation (BGP and BGP4+) .................................................................................................

3.36

bgp nexthop-trigger-count (BGP and BGP4+) ..................................................................................................

3.37

bgp nexthop-trigger delay (BGP and BGP4+)....................................................................................................

3.38

bgp nexthop-trigger enable (BGP and BGP4+).................................................................................................

3.39

bgp rfc1771-path-select (BGP) ................................................................................................................................

3.40

bgp rfc1771-strict (BGP).............................................................................................................................................

3.40

bgp router-id (BGP and BGP4+)..............................................................................................................................

3.41

bgp scan-time (BGP) ...................................................................................................................................................

3.42

bgp update-delay (BGP and BGP4+).....................................................................................................................

3.43

clear bgp * (BGP and BGP4+) ...................................................................................................................................

3.44

clear bgp (IPv4 or IPv6 address) (BGP and BGP4+) ..........................................................................................

3.45

clear bgp (ASN) (BGP and BGP4+)..........................................................................................................................

3.47

clear bgp external (BGP and BGP4+).....................................................................................................................

3.48

clear bgp peer-group (BGP and BGP4+) ..............................................................................................................

3.49

clear ip bgp * (BGP)

......................................................................................................................................................

3.50

clear ip bgp (IPv4) (BGP) ............................................................................................................................................

3.52

clear ip bgp dampening ................................................................................................................................(BGP)

3.53

clear ip bgp flap-statistics .............................................................................................................................(BGP)

3.53

clear ip bgp (ASN) (BGP) ............................................................................................................................................

3.54

clear ip bgp external .......................................................................................................................................(BGP)

3.55

clear ip bgp peer-group .................................................................................................................................(BGP)

3.56

clear bgp ipv6 (ipv6 .................................................................................................................address) (BGP4+)

3.57

clear bgp ipv6 dampening ......................................................................................................................(BGP4+)

3.58

clear bgp ipv6 flap-statistics ...................................................................................................................(BGP4+)

3.58

clear bgp ipv6 (ASN) ..................................................................................................................................(BGP4+)

3.59

clear bgp ipv6 external .............................................................................................................................(BGP4+)

3.60

clear bgp ipv6 peer- ......................................................................................................................group (BGP4+)

3.61

debug bgp (BGP)..........................................................................................................................................................

 

3.62

distance (BGP and BGP4+)........................................................................................................................................

3.63

exit-address-family ...................................................................................................................(BGP and BGP4+)

3.65

ip as-path access-list ................................................................................................................(BGP and BGP4+)

3.66

ip community-list (BGP ......................................................................................................................and BGP4+)

3.67

ip community-list expanded ................................................................................................(BGP and BGP4+)

3.68

ip community-list standard ...................................................................................................(BGP and BGP4+)

3.70

ip extcommunity-list ..........................................................................................expanded (BGP and BGP4+)

3.72

ip extcommunity-list ............................................................................................standard (BGP and BGP4+)

3.74

ip prefix-list (IPv4 Prefix ....................................................................................................................................List)

3.76

ipv6 prefix-list (IPv6 ...............................................................................................................................Prefix List)

3.78

match as-path (Route ......................................................................................................................................Map)

3.80

match community (Route ..............................................................................................................................Map)

3.81

neighbor activate (BGP .....................................................................................................................and BGP4+)

3.82

neighbor advertisement .......................................................................................-interval (BGP and BGP4+)

3.85

neighbor allowas-in .................................................................................................................(BGP and BGP4+)

3.88

neighbor as-origination .........................................................................................-interval (BGP and BGP4+)

3.91

neighbor attribute-unchanged ...........................................................................................(BGP and BGP4+)

3.93

neighbor capability ..................................................................................graceful-restart (BGP and BGP4+)

3.96

neighbor capability .......................................................................................orf prefix-list (BGP and BGP4+)

3.99

neighbor capability ...................................................................................route-refresh (BGP and BGP4+)

3.102

neighbor collide-established ............................................................................................(BGP and BGP4+)

3.105

neighbor default-originate ................................................................................................(BGP and BGP4+)

3.107

neighbor description ............................................................................................................(BGP and BGP4+)

3.110

 

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

C613-50032-01REV D

AlliedWare Plus TM Operating System - Software Version 5.4.3 - 2.6

i.v

 

neighbor disallow-infinite-holdtime (BGP and BGP4+) ..............................................................................

3.112

 

neighbor distribute-list (BGP and BGP4+)........................................................................................................

3.114

 

neighbor dont-capability-negotiate (BGP and BGP4+)...............................................................................

3.117

 

neighbor ebgp-multihop (BGP and BGP4+)....................................................................................................

3.119

 

neighbor enforce-multihop (BGP and BGP4+)...............................................................................................

3.122

 

neighbor filter-list (BGP and BGP4+)..................................................................................................................

3.125

 

neighbor interface (BGP4+)...................................................................................................................................

3.128

 

neighbor local-as (BGP and BGP4+) ...................................................................................................................

3.129

 

neighbor maximum-prefix (BGP and BGP4+).................................................................................................

3.131

 

neighbor next-hop-self (BGP and BGP4+) .......................................................................................................

3.134

 

neighbor override-capability (BGP and BGP4+) ............................................................................................

3.137

 

neighbor passive (BGP and BGP4+) ...................................................................................................................

3.139

 

neighbor password (BGP and BGP4+)...............................................................................................................

3.141

 

neighbor peer-group (add a neighbor) (BGP and BGP+) ...........................................................................

3.144

 

neighbor peer-group (create a peer-group) (BGP and BGP4+)................................................................

3.146

 

neighbor port (BGP and BGP4+)..........................................................................................................................

3.147

 

neighbor prefix-list (BGP and BGP4+) ...............................................................................................................

3.149

 

neighbor remote-as (BGP and BGP4+)..............................................................................................................

3.152

 

neighbor remove-private-AS (BGP)....................................................................................................................

3.155

 

neighbor restart-time (BGP and BGP4+)...........................................................................................................

3.156

 

neighbor route-map (BGP and BGP4+).............................................................................................................

3.159

 

neighbor route-reflector-client (BGP)................................................................................................................

3.164

 

neighbor route-server-client (BGP) ....................................................................................................................

3.165

 

neighbor send-community (BGP and BGP4+)................................................................................................

3.166

 

neighbor shutdown (BGP and BGP4+)..............................................................................................................

3.170

 

neighbor soft-reconfiguration inbound (BGP and BGP4+)........................................................................

3.172

 

neighbor timers (BGP and BGP4+)......................................................................................................................

3.175

 

neighbor transparent-as (BGP and BGP4+) .....................................................................................................

3.178

 

neighbor transparent-nexthop (BGP and BGP4+) ........................................................................................

3.180

 

neighbor unsuppress-map (BGP and BGP4+) ................................................................................................

3.182

 

neighbor update-source (BGP and BGP4+).....................................................................................................

3.185

 

neighbor version (BGP)...........................................................................................................................................

3.188

 

neighbor weight (BGP and BGP4+) ....................................................................................................................

3.190

 

network (BGP and BGP4+) .....................................................................................................................................

3.193

 

network synchronization (BGP and BGP4+)....................................................................................................

3.196

 

redistribute (into BGP or BGP4+) (BGP and BGP4+) .....................................................................................

3.197

 

restart bgp graceful (BGP)......................................................................................................................................

3.199

 

router bgp (BGP and BGP4+) ................................................................................................................................

3.200

 

route-map (Route Map) ..........................................................................................................................................

3.201

 

set as-path (Route Map)..........................................................................................................................................

3.203

 

set community (Route Map)..................................................................................................................................

3.204

 

show bgp ipv6 (BGP4+) ..........................................................................................................................................

3.205

 

show bgp ipv6 community (BGP4+)..................................................................................................................

3.206

 

show bgp ipv6 community-list (BGP4+)...........................................................................................................

3.207

 

show bgp ipv6 dampening (BGP4+)..................................................................................................................

3.208

 

show bgp ipv6 filter-list (BGP4+).........................................................................................................................

3.209

 

show bgp ipv6 inconsistent-as (BGP4+)...........................................................................................................

3.209

 

show bgp ipv6 longer-prefixes (BGP4+)...........................................................................................................

3.210

 

show bgp ipv6 neighbors (BGP4+).....................................................................................................................

3.211

 

show bgp ipv6 paths (BGP4+)..............................................................................................................................

3.214

 

show bgp ipv6 prefix-list (BGP4+) ......................................................................................................................

3.214

 

show bgp ipv6 quote-regexp (BGP4+).............................................................................................

................. 3.215

 

show bgp ipv6 regexp (BGP4+) ...........................................................................................................................

3.216

 

show bgp ipv6 route-map (BGP4+)....................................................................................................................

3.217

 

show bgp ipv6 summary (BGP4+) ......................................................................................................................

3.217

 

show bgp nexthop-tracking (BGP) .....................................................................................................................

3.218

 

show bgp nexthop-tree-details (BGP) ...............................................................................................................

3.218

 

 

 

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

i.vi

AlliedWare PlusTM Operating System - Software Version5.4.3-2.6

C613-50032-01REV D

show bgp memory maxallocation (BGP)..........................................................................................................

3.218

show debugging bgp (BGP)..................................................................................................................................

3.219

show ip bgp (BGP) ....................................................................................................................................................

3.220

show ip bgp attribute-info (BGP) ........................................................................................................................

3.221

show ip bgp cidr-only (BGP)..................................................................................................................................

3.222

show ip bgp community (BGP) ............................................................................................................................

3.223

show ip bgp community-info (BGP)...................................................................................................................

3.224

show ip bgp community-list (BGP).....................................................................................................................

3.225

show ip bgp dampening (BGP)............................................................................................................................

3.226

show ip bgp filter-list (BGP)...................................................................................................................................

3.228

show ip bgp inconsistent-as (BGP) .....................................................................................................................

3.229

show ip bgp longer-prefixes (BGP).....................................................................................................................

3.230

show ip bgp neighbors (BGP)...............................................................................................................................

3.231

show ip bgp neighbors connection-retrytime (BGP)...................................................................................

3.234

show ip bgp neighbors hold-time (BGP)..........................................................................................................

3.234

show ip bgp neighbors keepalive (BGP)...........................................................................................................

3.235

show ip bgp neighbors keepalive-interval (BGP)..........................................................................................

3.235

show ip bgp neighbors notification (BGP).......................................................................................................

3.236

show ip bgp neighbors open (BGP) ...................................................................................................................

3.236

show ip bgp neighbors rcvd-msgs (BGP) .........................................................................................................

3.237

show ip bgp neighbors sent-msgs (BGP) .........................................................................................................

3.237

show ip bgp neighbors update (BGP) ...............................................................................................................

3.238

show ip bgp paths (BGP) ........................................................................................................................................

3.238

show ip bgp prefix-list (BGP).................................................................................................................................

3.239

show ip bgp quote-regexp (BGP)........................................................................................................................

3.240

show ip bgp regexp (BGP) .....................................................................................................................................

3.241

show ip bgp route-map (BGP)..............................................................................................................................

3.242

show ip bgp scan (BGP) ..........................................................................................................................................

3.243

show ip bgp summary (BGP).................................................................................................................................

3.244

show ip community-list (BGP and BGP4+).......................................................................................................

3.245

show ip extcommunity-list (BGP and BGP4+) ................................................................................................

3.245

show ip prefix-list (IPv4 Prefix List) .....................................................................................................................

3.246

show ipv6 prefix-list (IPv6 Prefix List) ................................................................................................................

3.246

show ip protocols bgp (BGP) ................................................................................................................................

3.247

show route-map (Route Map) ..............................................................................................................................

3.248

synchronization (BGP and BGP4+)......................................................................................................................

3.249

timers (BGP and BGP4+) .........................................................................................................................................

3.250

undebug bgp (BGP)..................................................................................................................................................

3.251

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

C613-50032-01REV D

AlliedWare PlusTM Operating System - Software Version5.4.3-2.6

i.vii

 

Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches

 

i.viii

AlliedWare PlusTM Operating System - Software Version5.4.3-2.6

C613-50032-01REV D