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

Similar documents
DE-CIX Academy: BGP - Multihoming

DE-CIX Academy: BGP 05. Notice of Liability. Links visited during the webinar. The Big Picture

Multihoming with BGP and NAT

LAB16: BGP IPv6. BGP: Route Reflector. Disclaimer

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.

LAB1: BGP IPv4. BGP: Initial Config. Disclaimer

BGP4 workshop scenario

Lab Guide 2 - BGP Configuration

Module 4 BGP-LS Configuration Lab

Introduction to BGP ISP/IXP Workshops

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

BGP-RT and VPN Distinguisher Attribute Rewrite Wildcard

Connecting to a Service Provider Using External BGP

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

Border Gateway Protocol - BGP

BGP in the Internet Best Current Practices

CertifyMe. CertifyMe

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

Introduction to BGP. ISP/IXP Workshops

BGP made easy. John van Oppen Spectrum Networks / AS11404

Asymmetric Satellite Services. Introduction and Background. Transmit Interface Command. Agenda. Asymmetric Satellite Services

Lab 2 BGP route filtering and advanced features

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355

IPv4/IPv6 BGP Routing Workshop. Organized by:

Chapter 6 Lab 6-4, BGP Route Reflectors and Route Filters

Configuring BGP on Cisco Routers Volume 1

BGP and the Internet

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

Configuring BGP. Cisco s BGP Implementation

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

MPLS VPN Route Target Rewrite

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

BGP Commands: M through N

Module 18 Transit. Objective: To investigate methods for providing transit services. Prerequisites: Modules 12 and 13, and the Transit Presentation

Module 14 Transit. Objective: To investigate methods for providing transit services. Prerequisites: Modules 12 and 13, and the Transit Presentation

ETS110: Internet Protocol Routing Lab Assignment

Module 13 Multihoming to Different ISPs

HPE FlexFabric 5940 Switch Series

BGP Tutorial AFNOG2000 Class IP Assignments

BGP and the Internet

HP 5920 & 5900 Switch Series

BGP Cost Community. Prerequisites for the BGP Cost Community Feature

This appendix contains supplementary Border Gateway Protocol (BGP) information and covers the following topics:

BGP Attributes and Path Selection

BGP-VPN Distinguisher Attribute

CCNP ROUTE LAB MANUAL

Contents. Introduction. Prerequisites. Requirements. Components Used

Multihoming Case Study

BGP Configuration for a Transit ISP

Chapter 17 BGP4 Commands

MPLS VPN C H A P T E R S U P P L E M E N T. BGP Advertising IPv4 Prefixes with a Label

Module 12 Multihoming to the Same ISP

Configure the IPv6 BGP Local Preference Feature

BGP. BGP Overview. BGP Operation. BGP Neighbors

BGP Scaling (RR & Peer Group)

BGP and the Internet. Enterprise Multihoming. Enterprise Multihoming. Medium/Large ISP Multihoming. Enterprise Multihoming. Enterprise Multihoming

Lab 3 Multihoming to the Same ISP

Complex MPLS VPN with OSPF on CE-PE Routers

Connecting to a Service Provider Using External BGP

HP FlexFabric 5930 Switch Series

BGP for Internet Service Providers

BGP Attributes and Policy Control

ECMP Load Balancing. MPLS: Layer 3 VPNs Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series) 1

BGP Commands. Network Protocols Command Reference, Part 1 P1R-355

BGP Graceful Shutdown

MPLS VPN Multipath Support for Inter-AS VPNs

Module 11 Advanced Router Configuration

Module 6 Implementing BGP

HP FlexFabric 7900 Switch Series

Module 8 Multihoming Strategies Lab

Topology for: EIGRP, BGP, Redistribution

BGP Protocol & Configuration. Scalable Infrastructure Workshop AfNOG2008

Page1. Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.2(4)M1, DEVELOPMENT TEST SOFTWARE

Chapter 13 RIP Commands

Advanced IPv6 Training Course. Lab Manual. v1.3 Page 1

LAB 9: Configure BGP Confederation

FiberstoreOS BGP Command Line Reference

FiberstoreOS BGP Configuration

Module 7 BGP Route Reflector Lab

prefix filtering netkit-lab-bgp-1

Exam : Title : BGP + MPLS Exam (BGP + MPLS)

IPv6 Module 16 An IPv6 Internet Exchange Point

Hands-on Routing configuration / Local laboratory

IPv6 Module 6 ibgp and Basic ebgp

Module 2 More ibgp, and Basic ebgp Configuration

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

BraindumpStudy. BraindumpStudy Exam Dumps, High Pass Rate!

Module 19 Internet Exchange Points

This chapter explores the various aspects of BGP policy control: Policy control techniques Conditional advertisement Aggregation and deaggregation

Brocade Vyatta Network OS Routing Policies Configuration Guide, 5.2R1

InterAS Option B. Information About InterAS. InterAS and ASBR

Module 16 An Internet Exchange Point

Service Provider Multihoming

BGP Feed Configuration Memo

BGP Routing and BGP Policy. BGP Routing. Agenda. BGP Routing Information Base. L47 - BGP Routing. L47 - BGP Routing

BGP Attributes and Policy Control

Intelligent WAN Multiple VRFs Deployment Guide

BGP Multihoming ISP/IXP Workshops

How BGP Routers Use the Multi Exit Discriminator for Best Path Selection

BGP on IOS: Getting Started

Transcription:

Notice of Liability Despite careful checking of content, we accept no liability for the content of external links. Content on linked sites is exclusively the responsibility of the respective website operator. BGP Configuration Examples All examples are for Cisco IOS Translation to other systems should not be too hard - ask your local network engineer Network Diagram for all examples

Interface addresses A Loopback interface is needed (it never goes down) IP addresses of all interfaces have to be redistributed by a routing protocol In this example we are using OSPF for that Config shown is for R2, other routers are similar Config for R2 ip address 192.168.1.2 255.255.255.255 ip address 192.168.2.14 255.255.255.252 ip address 192.168.2.1 255.255.255.252 router ospf 65501 redistribute connected subnets tag 2 network 192.168.2.0 0.0.0.255 area 0 ibgp A peer group is used for common config statements Best is to use an interface which cannot go "down" to tie ibgp on: Loopback0 Then only one line of config is needed for each ibgp peer Remember: ibgp needs to be fully meshed. Config for R2 neighbor internal peer-group neighbor internal remote-as 65501 neighbor internal s-community both neighbor internal update-source Loopback0 neighbor 192.168.1.1 peer-group internal neighbor 192.168.1.3 peer-group internal neighbor 192.168.1.4 peer-group internal

Adding routes to BGP General Control what you announce Do not allow any prefixes uncontrolled into BGP You need to have the route in your routing table Easiest is a static route which will never go away - just route it to the Null0 interface You can do this on one or on all ibgp routers. ip route 10.2.0.0 255.255.0.0 Null0 Using a "network" statement This tells BGP to announce this prefix if it is in the routing table network 10.2.0.0 mask 255.255.0.0 Using a "redistribute" statement Again, route needs to be in the routing table Also create an access list with all prefixes and matching netmask you want in BGP Use a route-map with the access list to filter ip prefix-list customer-routes seq 5 permit 10.2.0.0/16 ip prefix-list customer-routes seq 99999 deny 0.0.0.0/0 route-map static-to-bgp permit 10 match ip address prefix-list customer-routes redistribute static route-map static-to-bgp ebgp Use peer groups whenever possible Configure common statements inside the group config Add individual information like AS number with the peer Use Route-Maps

Appix - Router configurations Find below initial router configurations for GNS3 network emulator In this example, all routers are Cisco 72xx style routers with 1-3 (Gig)Ethernet interfaces. Only relevant parts of the configurations are listed. Router R1 hostname R1 ip bgp-community new-format ip address 192.168.1.1 255.255.255.255 ip address 192.168.2.13 255.255.255.252 ip address 192.168.2.9 255.255.255.252 router ospf 65501 redistribute connected subnets tag 1 network 192.168.2.0 0.0.0.255 area 0 bgp log-neighbor-changes neighbor internal peer-group neighbor internal remote-as 65501 neighbor internal s-community both neighbor internal update-source Loopback0 neighbor 192.168.1.2 peer-group internal neighbor 192.168.1.3 peer-group internal neighbor 192.168.1.4 peer-group internal

Router R2 (this one will be changed) hostname R2 interface GigabitEthernet0/0 ip address 192.168.3.1 255.255.255.252 ip address 192.168.2.14 255.255.255.252 ip address 192.168.2.1 255.255.255.252 Router R3 hostname R3 ip address 192.168.1.3 255.255.255.255 ip address 192.168.2.5 255.255.255.252 ip address 192.168.2.10 255.255.255.252 router ospf 65501 redistribute connected subnets tag 3 network 192.168.2.0 0.0.0.255 area 0

bgp log-neighbor-changes neighbor internal peer-group neighbor internal remote-as 65501 neighbor internal update-source Loopback0 neighbor internal s-community both neighbor 192.168.1.1 peer-group internal neighbor 192.168.1.2 peer-group internal neighbor 192.168.1.4 peer-group internal ip bgp-community new-format Router R4 hostname R4 ip address 192.168.1.4 255.255.255.255 ip address 192.168.2.6 255.255.255.252 ip address 192.168.2.2 255.255.255.252 router ospf 65501 redistribute connected subnets tag 4 network 192.168.2.0 0.0.0.255 area 0 bgp log-neighbor-changes neighbor internal peer-group neighbor internal remote-as 65501 neighbor internal update-source Loopback0 neighbor internal s-community both

neighbor 192.168.1.1 peer-group internal neighbor 192.168.1.2 peer-group internal neighbor 192.168.1.3 peer-group internal ip bgp-community new-format Router R5 (this one will be changed) hostname R5 ip address 172.16.1.1 255.255.255.255 interface GigabitEthernet0/0 ip address 192.168.3.2 255.255.255.252 router bgp 65000 no bgp enforce-first-as bgp log-neighbor-changes redistribute static route-map static-to-bgp neighbor upstream peer-group neighbor upstream s-community both neighbor upstream soft-reconfiguration inbound neighbor upstream route-map upstream-in in neighbor upstream route-map upstream-out out neighbor 192.168.3.1 remote-as 65501 neighbor 192.168.3.1 peer-group upstream ip bgp-community new-format ip community-list expanded announce-to-upstream permit 65000:5(1 3 7).* ip community-list expanded scrub-incoming permit 65000:.* ip community-list expanded announce-to-peering permit 65000:5(2 3 7).* ip route 172.16.0.0 255.255.0.0 Null0 ip prefix-list customer-routes seq 5 permit 172.16.0.0/16

ip prefix-list customer-routes seq 99999 deny 0.0.0.0/0 route-map upstream-in permit 10 set comm-list scrub-incoming delete route-map upstream-out permit 10 match community announce-to-upstream set extcommunity rt 6695:4200000000 4200000000:6695 route-map static-to-bgp permit 10 description customer routes match ip address prefix-list customer-routes set community 65000:53001