mpls22s05l03

Upload: amit-baran-chatterjee

Post on 03-Jun-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 MPLS22S05L03

    1/15

    2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-1

    MPLS VPN Implementation

    Configuring an MP-BGP Session BetweenPE Routers

  • 8/13/2019 MPLS22S05L03

    2/15

    2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-2

    Outline

    Overview

    Configuring BGP Address Families

    Enabling BGP Neighbors

    Configuring MP-BGP

    Configuring MP-IBGP

    Configuring MP-BGP BGP Community Propagation

    Disabling IPv4 Route Exchange Summary

  • 8/13/2019 MPLS22S05L03

    3/15

    2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-3

    Configuring BGP Address Families

    The BGP process in an MPLS VPN-enabled routerperforms three separate tasks:

    Global BGP routes (Internet routing) are exchanged as intraditional BGP setup.

    VPNv4 prefixes are exchanged through MP-BGP.

    VPN routes are exchanged with CE routers through per-VRF External Border Gateway Protocol sessions.

    Address families (routing protocol contexts) are

    used to configure these three tasks in the sameBGP process.

  • 8/13/2019 MPLS22S05L03

    4/15

    2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-4

    router bgp as-numberRouter(config)#

    Selects global BGP routing process

    address-family vpnv4Router(config-router)#

    Selects configuration of VPNv4 prefix exchanges

    under MP-BGP sessions

    address-family ipv4 vrf vrf-nameRouter(config-router)# Selects configuration of per-VRF PE-CE EBGP

    parameters

    Configuring BGP Address Families (Cont.)

  • 8/13/2019 MPLS22S05L03

    5/15

    2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-5

    BGP Neighbors

    MP-BGP neighbors are configured under the BGProuting process:

    These neighbors need to be activated for each globaladdress family that they support.

    Per-address-family parameters can be configured forthese neighbors.

    VRF-specific EBGP neighbors are configuredunder corresponding address families.

  • 8/13/2019 MPLS22S05L03

    6/15

    2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-6

    Configuring MP-BGP

    MPLS VPN MP-BGP configuration steps:

    Configure MP-BGP neighbor under BGP routingprocess.

    Configure BGP address family VPNv4. Activate configured BGP neighbor for VPNv4 route

    exchange.

    Specify additional parameters for VPNv4 route

    exchange (filters, next hops, and so on).

  • 8/13/2019 MPLS22S05L03

    7/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-7

    router bgp as-number

    neighbor ip-addressremote-as as-number

    neighbor ip-addressupdate-source interface-type

    interface-number

    Router(config)#

    All MP-BGP neighbors have to be configured under global BGProuting configuration.

    MP-IBGP sessions have to run between loopback interfaces.

    address-family vpnv4

    Router(config-router)#

    This command starts configuration of MP-BGP routing for VPNv4route exchange.

    The parameters that apply only to MP-BGP exchange of VPNv4routes between already configured IBGP neighbors are configuredunder this address family.

    Configuring MP-IBGP

  • 8/13/2019 MPLS22S05L03

    8/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-8

    neighbor ip-addressactivate

    Router(config-router-af)#

    The BGP neighbor defined under BGP router configurationhas to be activated for VPNv4 route exchange.

    neighbor ip-addressnext-hop-self

    Router(config-router-af)#

    The next-hop-selfkeyword can be configured on the MP-IBGPsession for MPLS VPN configuration if EBGP is being runwith a CE neighbor.

    Configuring MP-IBGP (Cont.)

  • 8/13/2019 MPLS22S05L03

    9/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-9

    neighbor ip-addresssend-community [standard | extended

    | both]

    Router(config-router-af)#

    This command with the extendedoption is enabled by defaultby Cisco IOS software after the BGP neighbor has beenactivated for VPNv4 route exchange.

    The command can be used to enable propagation of standardBGP communities attached to VPNv4 prefixes.

    Usage guidelines:

    Extended BGP communities attached to VPNv4 prefixeshave to be exchangedbetween MP-BGP neighbors forproper MPLS VPN operation.

    To propagate standard BGP communities between

    MP-BGP neighbors, use the bothoption.

    MP-BGP Community Propagation

  • 8/13/2019 MPLS22S05L03

    10/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-10

    MP-BGP BGP Community Propagation(Cont.)

  • 8/13/2019 MPLS22S05L03

    11/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-11

    no bgp default ipv4-unicast

    Router(config-router)#

    The exchange of IPv4 routes between BGPneighbors is enabled by defaultevery configured

    neighbor will also receive IPv4 routes.

    This command disables the default exchange ofIPv4 routesneighbors that need to receive IPv4routes have to be activated for IPv4 route

    exchange. Use this command when the same router carries

    Internet and VPNv4 routes and you do not want topropagate Internet routes to some PE neighbors.

    Disabling IPv4 Route Exchange

  • 8/13/2019 MPLS22S05L03

    12/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-12

    Neighbor 172.16.32.14 receives only Internet routes. Neighbor 172.16.32.15 receives only VPNv4 routes.

    Neighbor 172.16.32.27 receives Internet and VPNv4 routes.

    router bgp 65173

    no bgp default ipv4-unicast

    neighbor 172.16.32.14 remote-as 65173neighbor 172.16.32.15 remote-as 65173

    neighbor 172.16.32.27 remote-as 65173

    ! Activate IPv4 route exchange

    neighbor 172.16.32.14 activate

    neighbor 172.16.32.27 activate

    ! Step#2 VPNv4 route exchange

    address-family vpnv4

    neighbor 172.16.32.15 activate

    neighbor 172.16.32.27 activate

    Disabling IPv4 Route Exchange (Cont.)

  • 8/13/2019 MPLS22S05L03

    13/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-13

    Summary

    Use the address-familycommand to select the routingcontext that you want to configure.

    Use the router bgpcommand to configure the BGProuting process, and configure VRF-specific EBGP

    neighbors under corresponding address families.

    To configure MPLS VPN MP-BGP, you need to:

    Configure MP-BGP neighbors.

    Configure MP-BGP address family to start VPNv4 routing.

    Activate configured MP-BGP neighbors.

    Specify additional parameters for VPNv4 route exchange.

  • 8/13/2019 MPLS22S05L03

    14/15 2006 Cisco Systems, Inc. All rights reserved. MPLS v2.25-14

    Summary (Cont.)

    These commands are used to configure MP-IBGP:

    neighbor remote-as

    neighbor update-source

    neighbor activate neighbor next-hop-self

    Use the neighbor send-communitycommand to supportstandard and extended communities.

    There are two ways to disable IPv4 route exchange:

    no neighbor activatecommand

    no bgp default ipv4-unicastcommand.

  • 8/13/2019 MPLS22S05L03

    15/15 2006 Cisco Systems Inc All rights reserved MPLS v2 2 5 15