Top Banner
BGP Overview Sumanta Das Gajendra Mahapatra
35

BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Dec 27, 2015

Download

Documents

Charlotte Watts
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Overview

Sumanta Das Gajendra Mahapatra

Page 2: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Content

1. Introduction

2. Session Establishment

3. Route processing

4. Basic Configuration

5. BGP Police

Page 3: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Introduction to BGP

- BGP : Broader Gateway Protocol

- Why Need BGP

Page 4: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Introduction to BGP

Page 5: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Introduction to BGP

Page 6: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Introduction to BGP

Page 7: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Introduction to BGP

BGP Characteristics :1. BGP is distance vector protocol with

enhancement - reliable update - Triggered updates only - Rich metrics (called path attributes)Designed to scale to huge internetworks

Page 8: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Introduction to BGP

IBGPEBGP

Page 9: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Session Establishment

-Neighbor discovery - Hold Times-Keepalive

Page 10: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Session Establishment

Page 11: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Session Establishment

Page 12: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Session Establishment

Page 13: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Route Processing

Page 14: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Route Processing

Page 15: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Route Processing

Routing Loop:

IBGP: Split Horizon

EBGP: AS path info

Page 16: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Basic BGP Configuration

-Configuration command -Monitoring Command-Debug Command

Page 17: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Basic BGP Configuration

BGP Routing process :Router(config)#router bgp as-number

Configuring External Neighbors :Router(config-router)#neighbor ip-address remote-as as-number

To temporarily disable a BGP neighbor:Router(config-router)#neighbor ip-address shutdown

Configuring BGP Timers:Router(config-router)#timers bgp keepalive holdtime

Per Specific neighbor:Router(config-router)#neighbor [ ip address | peer group name ] timers keepalive holdtime

Page 18: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Basic BGP Configuration

Configuring MD5 Authentication:Router(config-router)#neighbor ip-address password string

Router(config-router)#no auto-summary

Aggregating BGP networksRouter(config-router)#aggregate-address address-prefix mask Router(config-router)#aggregate-address address-prefix mask

summary-only

Page 19: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Basic BGP Configuration

Page 20: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Basic BGP Configuration

BGP command for monitoring:

Monitorior neighber info:Router>show ip bgp summary

Monitor BGP neighbors on details:Router>show ip bgp neighbor ip-address

Monitor bgp table:Router > show ip bgp

Page 21: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

Basic BGP Configuration

Debugging BGP :

Display all tcp transaction :

Router#debug ip tcp transactions

Display significant BGP event

Router#Debug ip bgp events

Debug BGp keepalive packets :

Router#debug ip bgp keepaklives

Display all incoming and outgoing BGp updates :

Router#debug ip bgp updates

Page 22: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Policies

Needs of BGP policy

Page 23: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

Page 24: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters:

Page 25: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

Page 26: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- As-Path Filters

- Prefix-List Filters

- Outbound Filters

- Route-Maps

Page 27: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- As-Path Filters

Page 28: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- As-Path Filters

Configuring BGP AS-Path Filters

Router(Config)#ip as-path access-list number permit | deny regexp

Router(Config-router)#neighbor ip-address filter-list as-path-filter in|out

Page 29: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- prefix-Based Filters

Page 30: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- prefix-Based Filters

Configuration:

router(config-router)#neighbor {ip address| peer-group-name } prefix-list list {in| out}

Router(config-routeer)#distribution-list prefix-list prefix-list out routing-process

Page 31: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- Outbound Router Filter

Page 32: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

Outbound Router Filter ORF format

ORF message consist of the following fields

-AFI/SAFI

-ORF type

-When to refresh

-List of ORF entries

ORF entries depends on the ORF type

ORF capability needs to be negotiated for every supported ORF type

Page 33: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- Route-map BGP Filters :

Page 34: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- Route-map BGP Filters :

Page 35: BGP Overview Sumanta Das Gajendra Mahapatra. Content 1.Introduction 2.Session Establishment 3.Route processing 4.Basic Configuration 5.BGP Police.

BGP Police

BGP Filters :

- Route-map BGP Filters :