BGP on IOS: Getting Started

Similar documents
BGP Enhancements for IPv6. ISP Training Workshops

Introduction to BGP. ISP/IXP Workshops

Introduction to BGP. ISP Workshops. Last updated 30 October 2013

Contents. Introduction. Prerequisites. Requirements. Components Used

Laura McDonnell 11 th June 2008

APNIC elearning: BGP Basics. 30 September :00 PM AEST Brisbane (UTC+10) Revision: 2.0

Configuring a BGP Route Server

Module 1 Device and Infrastructure Security Lab

BGP Tutorial AFNOG2000 Class IP Assignments

MD5 Authentication Between BGP Peers Configuration Example

BGP Support for 4-byte ASN

Multiprotocol BGP Extensions for IP Multicast Commands

Module 6 Implementing BGP

BGP Dynamic Neighbors

Achieve Optimal Routing and Reduce BGP Memory Consumption

Configuring IPv6 Provider Edge over MPLS (6PE)

BGP FlowSpec Route-reflector Support

CCIE R&Sv5 Mock Lab 1 Mohamed Jaziri 3xCCIE P a g e 1

2016/01/17 04:05 1/19 Basic BGP Lab

Border Gateway Protocol - BGP

2016/09/07 08:37 1/5 Internal BGP Lab. Set up Internal BGP (ibgp) within the each Group autonomous system to carry routing information within the AS.

South America Workshop WALC 2006 (Quito, Ecuador July 06)

Chapter 6 Lab 6-3, Configuring IBGP and EBGP Sessions, Local Preference, and MED

Troubleshooting High CPU Caused by the BGP Scanner or BGP Router Process

Lab Guide 2 - BGP Configuration

CCIE R&S Techtorial MPLS

BGP Table Version. Contents. Introduction. Network Diagram. Best Path

MPLS VPN Multipath Support for Inter-AS VPNs

BGP Attributes and Policy Control

BGP Attributes and Policy Control

Internetwork Expert s CCNP Bootcamp. Border Gateway Protocol (BGP) What Is BGP?

BGP Attributes and Path Selection

Module 10 An IPv6 Internet Exchange Point

BGP Policy Control. ISP Workshops. Last updated 17 May 2014

Chapter 5: Maintaining and Troubleshooting Routing Solutions

IPv6 Module 1c ibgp. Prerequisites: IPv6 Module 1a (OSPF) or IPv6 Module 1b (ISIS).

IPv6 Module 7 BGP Route Filtering and Advanced Features

BGP Policy Control. ISP Workshops

BGP Attributes and Policy Control

BGP Configuration for a Transit ISP

BGP Scaling (RR & Peer Group)

CCIE Service Provider Sample Lab. Part 1 of 7

Q&As. CCIP Configuring BGP on Cisco Routers (BGP) Pass Cisco Exam with 100% Guarantee

Networkers 2001, Australia

BGP route filtering and advanced features

BGP Nonstop Routing was made a default feature.

Configure the IPv6 BGP Local Preference Feature

How to Access and Use Quagga Shell using Avi CLI

Configuring a Basic BGP Network

IPv6 Module 6 ibgp and Basic ebgp

Module 3 BGP route filtering and advanced features

How to Access and Use Quagga Shell using Avi CLI

IPv4/IPv6 BGP Routing Workshop. Organized by:

Multihoming Techniques. bdnog8 May 4 8, 2018 Jashore, Bangladesh.

IPv6 Tunnel through an IPv4 Network

Troubleshooting BGP Philip Smith AfNOG 2003, Kampala, Uganda

BGP AS-Override Split-Horizon

LAB16: BGP IPv6. BGP: Route Reflector. Disclaimer

2015/07/23 23:32 1/8 More ibgp and Basic ebgp

Configuration and Management of Networks 2012

BGP Origin AS Validation

Troubleshooting BGP. Philip Smith NANOG February 2007 Toronto, Ontario Cisco Systems, Inc. All rights reserved.

address-family ipv4 vrf vrf-name - Selects a per-vrf instance of a routing protocol.

BGP Attributes and Policy Control. BGP Attributes. BGP Attributes. Agenda. What Is an Attribute? AS-Path. ISP/IXP Workshops.

From the given configuration taken from RTA and graphic, which network will be filtered from being propagated to RTC from RTA?

IPv6 Module 16 An IPv6 Internet Exchange Point

IPv6 Module 6x ibgp and Basic ebgp

Segment Routing on Cisco Nexus 9500, 9300, 9200, 3200, and 3100 Platform Switches

Module 6 IPv6 ibgp and Basic ebgp

2015/07/23 23:31 1/7 ibgp

ibgp Multipath Load Sharing

DE-CIX Academy: BGP - Multihoming

Route Policy Language. Set Object

H3C BGP Configuration Examples

Module 4 BGP-LS Configuration Lab

Module 16 An Internet Exchange Point

BGP Graceful Shutdown

LACNIC XIII. Using BGP for Traffic Engineering in an ISP

BGP Support for Next-Hop Address Tracking

scope scope {global vrf vrf-name} no scope {global vrf vrf-name} Syntax Description

Rev External BGP

Multihoming Case Study

Lecture 07c Routing Border Gateway Protocol

Module 6 ibgp and Basic ebgp

DE-CIX Academy: BGP Introduction. Notice of Liability. BGP Configuration Examples. Network Diagram for all examples. Links and Examples

BGP Named Community Lists

DNS Anycast with Cisco Prime Network Registrar

Connecting to a Service Provider Using External BGP

RealCiscoLAB.com. Chapter 6 Lab 6-1, Configuring BGP with Default Routing. Configure BGP to exchange routing information with two ISPs.

BGP Best Current Practices. ISP/IXP Workshops

Table of Contents. Chapter 1 Border Gateway Protocol (BGP) 1. Chapter 3 Enhanced Interior Gateway Routing 91 Protocol (EIGRP)

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

BGP Commands: M through N

IPv6 Module 11 Advanced Router Configuration

BGP-4 Border Gateway Protocol 4 (BGP-4) Primer

InterAS Option B. Information About InterAS. InterAS and ASBR

MPLS VPN Explicit Null Label Support with BGP. BGP IPv4 Label Session

All participants will work within their groups in pairs. Each group has three routers and three switches to work with.

IPv6 Commands: n to re

Module 2 More ibgp, and Basic ebgp Configuration

Transcription:

BGP on IOS: Getting Started ISP Workshops Last updated 30 October 2013 1

IOS Good Practices p ISPs should start off with the following BGP commands as a basic template: router bgp 64511 bgp deterministic-med distance bgp 200 200 200 no synchronization no auto-summary Replace with public ASN Standard MED comparison rules Make ebgp and ibgp distance the same Legacy IOS defaults (turned off in most recent IOS, but still included in most operator templates) 2

Cisco IOS Good Practices p p p BGP in Cisco IOS is permissive by default Configuring BGP peering without using filters means: n All best paths on the local router are passed to the neighbour n n All routes announced by the neighbour are received by the local router Can have disastrous consequences Good practice is to ensure that each ebgp neighbour has inbound and outbound filter applied: router bgp 64511 neighbor 1.2.3.4 remote-as 64510 neighbor 1.2.3.4 prefix-list as64510-in in neighbor 1.2.3.4 prefix-list as64510-out out 3

BGP Configuration p Cisco IOS assumes that all BGP neighbours will be IPv4 unicast neighbours n We need to remove this assumption router bgp 100 no bgp default ipv4-unicast p Failing to do this will result in all neighbours being defined as IPv4 unicast neighbours n Non-IPv4 neighbours will have no specific unicast IPv4 configuration n Cluttered configuration, confusing troubleshooting and diagnosis 4

BGP Configuration IPv4 and IPv6 router bgp 10 no bgp default ipv4-unicast neighbor 2001:db8:1:1019::1 remote-as 20 neighbor 172.16.1.2 remote-as 30 address-family ipv4 neighbor 172.16.1.2 activate neighbor 172.16.1.2 prefix-list ipv4-ebgp in neighbor 172.16.1.2 prefix-list v4out out network 172.16.0.0 exit-address-family address-family ipv6 neighbor 2001:db8:1:1019::1 activate neighbor 2001:db8:1:1019::1 prefix-list ipv6-ebgp in neighbor 2001:db8:1:1019::1 prefix-list v6out out network 2001:db8::/32 exit-address-family Continued --> 5

BGP Configuration IPv4 and IPv6 ip prefix-list ipv4-ebgp permit 0.0.0.0/0 le 32 ip prefix-list v4out permit 172.16.0.0/16 ipv6 prefix-list ipv6-ebgp permit ::/0 le 128 ipv6 prefix-list v6out permit 2001:db8::/32 p Compare IPv4 prefix filters with IPv6 prefix filters ip prefix-list <name> permit deny <ipv4 address> ipv6 prefix-list <name> permit deny <ipv6 address> 6

BGP Configuration IPv4 and IPv6 p When configuring the router, recommendation is: n Put all IPv6 configuration directly into IPv6 address family n Put all IPv4 configuration directly into IPv4 address family p Router will sort generic from specific address family configuration when the configuration is saved to NVRAM or displayed on the console p Example follows n Notice how activate is added by the router to indicate that the peering is activated for the particular address family 7

BGP Address Families Applied Configuration router bgp 10 no bgp default ipv4-unicast Generic Configuration address family ipv4 neighbor 172.16.1.2 remote-as 30 neighbor 172.16.1.2 prefix-list ipv4-ebgp in neighbor 172.16.1.2 prefix-list v4out out network 172.16.0.0 Specific Configuration address-family ipv6 neighbor 2001:db8:1:1019::1 remote-as 20 neighbor 2001:db8:1:1019::1 prefix-list ipv6-ebgp in neighbor 2001:db8:1:1019::1 prefix-list v6out out network 2001:db8::/32 ip prefix-list ipv4-ebgp permit 0.0.0.0/0 le 32 ip prefix-list v4out permit 172.16.0.0/16 ipv6 prefix-list ipv6-ebgp permit ::/0 le 128 ipv6 prefix-list v6out permit 2001:db8::/32 8

BGP Address Families End result router bgp 10 no bgp default ipv4-unicast neighbor 2001:db8:1:1019::1 remote-as 20 neighbor 172.16.1.2 remote-as 30 address-family ipv4 neighbor 172.16.1.2 activate neighbor 172.16.1.2 prefix-list ipv4-ebgp in neighbor 172.16.1.2 prefix-list v4out out network 172.16.0.0 exit-address-family address-family ipv6 neighbor 2001:db8:1:1019::1 activate neighbor 2001:db8:1:1019::1 prefix-list ipv6-ebgp in neighbor 2001:db8:1:1019::1 prefix-list v6out out network 2001:db8::/32 exit-address-family ip prefix-list ipv4-ebgp permit 0.0.0.0/0 le 32 ip prefix-list v4out permit 172.16.0.0/16 ipv6 prefix-list ipv6-ebgp permit ::/0 le 128 ipv6 prefix-list v6out permit 2001:db8::/32 Generic Configuration Specific Configuration 9

BGP Status Commands (IPv4) p Display summary information regarding the state of the BGP neighbours show ip bgp summary Router1#sh ip bgp sum BGP router identifier 10.10.15.224, local AS number 10 BGP table version is 22, main routing table version 22 17 network entries using 2448 bytes of memory 26 path entries using 2080 bytes of memory 9/8 BGP path/bestpath attribute entries using 1224 bytes of memory 4 BGP AS-PATH entries using 96 bytes of memory 0 BGP route-map cache entries using 0 bytes of memory 0 BGP filter-list cache entries using 0 bytes of memory BGP using 5848 total bytes of memory BGP activity 32/0 prefixes, 49/0 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.10.15.14 4 40 13 16 28 0 0 00:04:22 9 10.10.15.225 4 10 15 12 28 0 0 00:04:16 16 10.10.15.226 4 10 11 12 28 0 0 00:04:16 11 10 Neighbour Information BGP Messages Activity

BGP Status Commands (IPv6) p Display summary information regarding the state of the BGP neighbours show bgp ipv6 unicast summary Router1>sh bgp ipv6 uni sum BGP router identifier 10.10.15.224, local AS number 10 BGP table version is 28, main routing table version 28 18 network entries using 2880 bytes of memory 38 path entries using 3040 bytes of memory 9/6 BGP path/bestpath attribute entries using 1152 bytes of memory 4 BGP AS-PATH entries using 96 bytes of memory 0 BGP route-map cache entries using 0 bytes of memory 0 BGP filter-list cache entries using 0 bytes of memory BGP using 7168 total bytes of memory BGP activity 37/1 prefixes, 95/19 paths, scan interval 60 secs Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 2001:DB8::2 4 10 185 182 28 0 0 02:36:11 16 2001:DB8::3 4 10 180 181 28 0 0 02:36:08 11 2001:DB8:0:4::1 4 40 153 152 28 0 0 02:05:39 9 11 Neighbour Information BGP Messages Activity

BGP on IOS: Getting Started ISP Workshops Last updated 28 October 2013 12