basic BGP in Huawei CLI



Similar documents
APNIC elearning: BGP Basics. Contact: erou03_v1.0

APNIC elearning: BGP Attributes

Understanding Route Aggregation in BGP

Lab 10: Confi guring Basic Border Gateway Protocol

BGP Router Startup Message Flow

Border Gateway Protocol (BGP)

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

BGP Basics. BGP Uses TCP 179 ibgp - BGP Peers in the same AS ebgp - BGP Peers in different AS's Private BGP ASN. BGP Router Processes

Border Gateway Protocol BGP4 (2)

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

How To Understand Bg

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

Using the Border Gateway Protocol for Interdomain Routing

BGP Attributes and Path Selection

BSCI Module 6 BGP. Configuring Basic BGP. BSCI Module 6

Routing Protocol - BGP

BGP Best Path Selection Algorithm

Lecture 18: Border Gateway Protocol"

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

CS551 External v.s. Internal BGP

BGP1 Multihoming and Traffic Engineering

IPv6 over MPLS VPN. Contents. Prerequisites. Document ID: Requirements

E : Internet Routing

How To Set Up Bgg On A Network With A Network On A Pb Or Pb On A Pc Or Ipa On A Bg On Pc Or Pv On A Ipa (Netb) On A Router On A 2

Exterior Gateway Protocols (BGP)

BGP Link Bandwidth. Finding Feature Information. Contents

Analyzing Capabilities of Commercial and Open-Source Routers to Implement Atomic BGP

Configuring and Testing Border Gateway Protocol (BGP) on Basis of Cisco Hardware and Linux Gentoo with Quagga Package (Zebra)

Monitoring and Troubleshooting BGP Neighbor Sessions

- Border Gateway Protocol -

Chapter 49 Border Gateway Protocol version 4 (BGP-4)

BGP Link Bandwidth. Finding Feature Information. Prerequisites for BGP Link Bandwidth

Internet inter-as routing: BGP

BGP: Frequently Asked Questions

Configuring BGP. Cisco s BGP Implementation

Understanding Route Redistribution & Filtering

Chapter 6: Implementing a Border Gateway Protocol Solution for ISP Connectivity

BGP4 Case Studies/Tutorial

H3C large-scale network routing

Examination. IP routning på Internet och andra sammansatta nät, DD2491 IP routing in the Internet and other complex networks, DD2491

Application Note. Failover through BGP route health injection

How To Import Ipv4 From Global To Global On Cisco Vrf.Net (Vf) On A Vf-Net (Virtual Private Network) On Ipv2 (Vfs) On An Ipv3 (Vv

BGP Advanced Routing in SonicOS

BGP: Border Gateway Protocol

BGP-4 Case Studies. Nenad Krajnovic.

BGP Support for Next-Hop Address Tracking

MPLS VPN Route Target Rewrite

Route Discovery Protocols

Multihomed BGP Configurations

Based on Computer Networking, 4 th Edition by Kurose and Ross

Border Gateway Protocol Best Practices

Configuring MPLS Hub-and-Spoke Layer 3 VPNs

JUNOS Secure BGP Template

Internet inter-as routing: BGP

Load balancing and traffic control in BGP

BGP as an IGP for Carrier/Enterprise Networks

Edge-1#show ip route Routing entry for /24. Known via "bgp 65001", distance 200, metric 0. Tag 65300, type internal

--BGP 4 White Paper Ver BGP-4 in Vanguard Routers

Presentation_ID. 2001, Cisco Systems, Inc. All rights reserved.

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

Internet Routing Protocols Lecture 04 BGP Continued

GregSowell.com. Mikrotik Routing

Transitioning to BGP. ISP Workshops. Last updated 24 April 2013

This feature was introduced. This feature was integrated in Cisco IOS Release 12.2(11)T.

Computer Networks Administration Help Manual Sana Saadaoui Jemai Oliver Wellnitz

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

Border Gateway Protocol (BGP-4)

ECSE-6600: Internet Protocols Exam 2

Gateway of last resort is to network

IP Routing Tecnologie e Protocolli per Internet II rev 1

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Interdomain Routing. Outline

Introduction to Routing

Configuring BGP. The Cisco BGP Implementation

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering

DD2491 p Load balancing BGP. Johan Nicklasson KTHNOC/NADA

UPDATE = [Withdrawn prefixes (Optional)] + [Path Attributes] + [NLRIs].

Module 12 Multihoming to the Same ISP

Basic Configuration Examples for BGP

no aggregate-address address mask [as-set] [summary-only] [suppress-map map-name] [advertise-map map-name] [attribute-map map-name]

MPLS VPN over mgre. Finding Feature Information. Prerequisites for MPLS VPN over mgre

Understanding Virtual Router and Virtual Systems

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Bell Aliant. Business Internet Border Gateway Protocol Policy and Features Guidelines

Configuring BGP Services

BGP Routing. Course Description. Students Will Learn. Target Audience. Hands-On

Juniper Exam JN0-343 Juniper Networks Certified Internet Specialist (JNCIS-ENT) Version: 10.1 [ Total Questions: 498 ]

Introduction Inter-AS L3VPN

Implementing MPLS VPNs over IP Tunnels on Cisco IOS XR Software

HP Networking BGP and MPLS technology training

Introduction to TCP/IP

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Lab 4.2 Challenge Lab: Implementing MPLS VPNs

6.263 Data Communication Networks

Increasing Path Diversity using Route Reflector

Can Forwarding Loops Appear when Activating ibgp Multipath Load Sharing?

DD2491 p Inter-domain routing and BGP part I Olof Hagsand KTH/CSC

Transcription:

basic BGP in Huawei CLI BGP stands for Border Gateway Protocol. It is widely used among Internet Service Providers to make core routing decisions on the Internet. The current BGP version is BGP-4 defined in RFC 4271. BGP uses TCP port 179 as its underlying delivery mechanism to increase the reliability of the peer connection. BGP is called a path vector routing protocol. It uses a list of AS numbers through which the packet must pass in order to reach the destination. This list of AS numbers is associated with a BGP route and is called the AS_Path attribute. AS_Path is one of several path attributes associated with each BGP route. How does a BGP select best path to a destination network, you can read at how does BGP select routes. I do not want to describe BGP in details, as this is out of the scope of this article. What I want to do is to show you, how to configure basic BGP features using Huawei CLI. Especially I want to show you how to: run BGP protocol configure IBGP peering sessions using peer groups configure EBGP peering advertise networks. Let s assume that we have three Autonomous Systems (see topology below): AS50 with only one BGP router, terminating EBGP peering with AS100 AS100 with three routers forming IBGP full mesh using peer group AS55 where labnarior5 router will form two EBGP peering sessions with AS100. LabnarioR1 in AS50 will be advertising three prefixes, which will pass through AS100 to AS55. I want labnarior5 router to be able to receive these three routes and reach them (be able to ping them).

So let s start with BGP configuration. First I want to configure labnarior1 router to run BGP AS50 and form EBGP peering session with labnarior2 router in AS100 (interface IP addressing configuration is omitted): [labnarior1]bgp 50 [labnarior1-bgp]undo synchronization [labnarior1-bgp]undo summary automatic [labnarior1-bgp]peer 150.100.12.2 as-number 100 Now I can configure AS100. I want my three routers to form an IBGP full mesh. I will use physical interfaces to establish peering sessions for simplicity. Usually it is better to use loopback interfaces when multiple physical links exist inside AS. First I will configure EBGP session to AS50: [labnarior2]bgp 100 [labnarior2-bgp]undo synchronization [labnarior2-bgp]undo summary automatic [labnarior2-bgp]peer 150.100.12.1 as-number 50 Let s check if our EBGP session between AS50 and AS100 is established: [labnarior2-bgp]display bgp peer BGP local router ID : 150.100.12.2 Local AS number : 100 Total number of peers : 1 Peers in established state : 1 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 150.100.12.1 4 50 11 11 0 01:51:01 Established 0 EBGP session between AS50 and 100 is established, so I can start configuring my IBGP peering sessions in AS100. I will do that using a peer group named ibgp. Of course it is possible to specify every single peer and assign BGP specific parameters to it, but I want to use a peer group, where every BGP parameter will be assigned to it, including peering routers. [labnarior2-bgp]bgp 100 [labnarior2-bgp] group ibgp internal [labnarior2-bgp] peer ibgp next-hop-local [labnarior2-bgp] peer 172.16.23.3 group ibgp [labnarior2-bgp] peer 172.16.24.4 group ibgp As you see above, my ibgp peer group definition includes group type internal. When configuring peer group type internal, there is no need to assign AS number to this group. Every peer belonging to a group type internal, inherits AS number of the local AS. It is also possible to define a peer group type external. Let s check BGP configuration on labnarior2 router: bgp 100 peer 150.100.12.1 as-number 50 group ibgp internal peer 172.16.23.3 as-number 100 peer 172.16.23.3 group ibgp peer 172.16.24.4 as-number 100 peer 172.16.24.4 group ibgp

ipv4-family unicast undo synchronization peer 150.100.12.1 enable peer ibgp enable peer ibgp next-hop-local peer 172.16.23.3 enable peer 172.16.23.3 group ibgp peer 172.16.24.4 enable peer 172.16.24.4 group ibgp All the ibgp group parameters are assigned to peering routers. Now labnarior3 and labnarior4 routers can be configured in the same way. Both also should be configured to peer with AS55 and labnarior5 router: [labnarior3]bgp 100 [labnarior3-bgp] undo synchronization [labnarior3-bgp] undo summary automatic [labnarior3-bgp] group ibgp internal [labnarior3-bgp] peer ibgp next-hop-local [labnarior3-bgp] peer 172.16.23.2 group ibgp [labnarior3-bgp] peer 172.16.34.4 group ibgp [labnarior3-bgp] peer 155.100.35.5 as-number 55 [labnarior4]bgp 100 [labnarior4-bgp] undo synchronization [labnarior4-bgp] undo summary automatic [labnarior4-bgp] group ibgp internal [labnarior4-bgp] peer ibgp next-hop-local [labnarior4-bgp] peer 172.16.24.2 group ibgp [labnarior4-bgp] peer 172.16.34.3 group ibgp [labnarior4-bgp] peer 155.100.45.5 as-number 55 Let s check BGP configuration and IBGP peering sessions on labnarior3 and labnarior4: [labnarior3-bgp]dis this bgp 100 peer 155.100.35.5 as-number 55 group ibgp internal peer 172.16.23.2 as-number 100 peer 172.16.23.2 group ibgp peer 172.16.34.4 as-number 100 peer 172.16.34.4 group ibgp ipv4-family unicast undo synchronization peer 155.100.35.5 enable peer ibgp enable peer ibgp next-hop-local peer 172.16.23.2 enable peer 172.16.23.2 group ibgp peer 172.16.34.4 enable peer 172.16.34.4 group ibgp return [labnarior3-bgp]dis bgp peer BGP local router ID : 172.16.23.3 Local AS number : 100

Total number of peers : 3 Peers in established state : 3 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 155.100.35.5 4 55 0 0 0 00:00:16 Idle 0 172.16.23.2 4 100 41 41 0 00:37:50 Established 0 172.16.34.4 4 100 95 96 0 01:32:49 Established 0 [labnarior4-bgp]dis this bgp 100 peer 155.100.45.5 as-number 55 group ibgp internal peer 172.16.24.2 as-number 100 peer 172.16.24.2 group ibgp peer 172.16.34.3 as-number 100 peer 172.16.34.3 group ibgp ipv4-family unicast undo synchronization peer 155.100.45.5 enable peer ibgp enable peer ibgp next-hop-local peer 172.16.24.2 enable peer 172.16.24.2 group ibgp peer 172.16.34.3 enable peer 172.16.34.3 group ibgp return [labnarior4-bgp]dis bgp peer BGP local router ID : 172.16.24.4 Local AS number : 100 Total number of peers : 3 Peers in established state : 3 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 155.100.45.5 4 55 0 0 0 00:00:17 Idle 0 172.16.24.2 4 100 47 46 0 00:43:39 Established 0 172.16.34.3 4 100 101 101 0 01:38:38 Established 0 Of course to have EBGP session established, labnarior5 should be configured first ;). [labnarior5]bgp 55 [labnarior5-bgp] undo summary automatic [labnarior5-bgp] undo synchronization [labnarior5-bgp] peer 155.100.35.3 as-number 100 [labnarior5-bgp] peer 155.100.45.4 as-number 100 [labnarior5-bgp] [labnarior5-bgp]dis bgp peer BGP local router ID : 155.100.35.5 Local AS number : 55 Total number of peers : 2 Peers in established state : 2 Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv 155.100.35.3 4 100 46 46 0 00:43:55 Established 0 155.100.45.4 4 100 46 46 0 00:43:54 Established 0

All my BGP peering sessions are configured now. As the next step I want my AS50 to advertise some prefixes. These prefixes should pass to AS55. I will use loopback interfaces to simulate some networks: [labnarior1]interface LoopBack0 [labnarior1-loopback0] ip address 11.10.10.1 255.255.255.0 [labnarior1-loopback0] interface LoopBack1 [labnarior1-loopback1] ip address 12.10.10.1 255.255.255.0 [labnarior1-loopback1] interface LoopBack2 [labnarior1-loopback2] ip address 13.10.10.1 255.255.255.0 [labnarior1]bgp 50 [labnarior1-bgp] network 11.10.10.0 255.255.255.0 [labnarior1-bgp] network 12.10.10.0 255.255.255.0 [labnarior1-bgp] network 13.10.10.0 255.255.255.0 Remember to use the same network mask under the BGP process and the corresponding interface. Let s check if labnarior1 is advertising my prefixes: [labnarior1]dis bgp routing-table BGP Local router ID is 150.100.12.1 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP,? - incomplete Total Number of Routes: 3 Network NextHop MED LocPrf PrefVal Path/Ogn *> 11.10.10.0/24 0.0.0.0 0 0 i *> 12.10.10.0/24 0.0.0.0 0 0 i *> 13.10.10.0/24 0.0.0.0 0 0 i LabnarioR1 now advertises three prefixes. These prefixes should pass through AS100 to AS55. Let s check labnarior5 BGP table: [labnarior5]dis bgp routing-table BGP Local router ID is 155.100.35.5 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP,? - incomplete Total Number of Routes: 6 Network NextHop MED LocPrf PrefVal Path/Ogn *> 11.10.10.0/24 155.100.35.3 0 100 50i * 155.100.45.4 0 100 50i *> 12.10.10.0/24 155.100.35.3 0 100 50i * 155.100.45.4 0 100 50i *> 13.10.10.0/24 155.100.35.3 0 100 50i * 155.100.45.4 0 100 50i

LabnarioR5 router has all three prefixes in its BGP table. It prefers labnarior3 router as its next hop to reach these prefixes. Does this mean that labnarior5 can ping these networks? Let s check: <labnarior5>ping 11.10.10.1 PING 11.10.10.1: 56 data bytes, press CTRL_C to break --- 11.10.10.1 ping statistics --- 5 packet(s) transmitted 0 packet(s) received 100.00% packet loss Why is it like that? Read my next article about BGP.