Top Banner
www.china-ccie.com 1 页共 159 MPLS / MPLS_VPN 目录 IP包头交换过程 ............................................................................................................ 4 1. 帧中继 PVC 交换方式 ............................................................................................ 4 2.非IP数字包头交换方式 ......................................................................................... 5 3. 交换方式总结......................................................................................................... 6 4.MPLS(多协议标签交换)....................................................................................... 7 MPLS优势: ..................................................................................................................... 8 思科MPLS历史................................................................................................................ 10 MPLS标签....................................................................................................................... 10 MPLS标签栈 ................................................................................................................... 11 MPLS设备类型................................................................................................................ 11 LSR操作过程................................................................................................................... 13 标签交换路径LSP ............................................................................................................ 13 转发等价类(FEC........................................................................................................ 13 MPLS标签交换过程......................................................................................................... 14 打标签 ........................................................................................................................... 15 标签分发方式................................................................................................................. 16 1. 在现有的路由协议中分发 ..................................................................................... 16 2. 标签分发协议....................................................................................................... 16 标签分发协议LDP ........................................................................................................... 17 标签分发模式................................................................................................................. 18 1. 标签分发模式: ................................................................................................... 19 2. 标签保存模式....................................................................................................... 19 3.LSP控制模式 ......................................................................................................... 20 MPLS负载均衡................................................................................................................ 21 MPLS未知标签................................................................................................................ 21 MPLS保留标签................................................................................................................ 21 MPLS TTL行为 ................................................................................................................. 22 MPLS MTU ...................................................................................................................... 23 MPLS最大接收单元(MRU........................................................................................... 23 MTU路径发现................................................................................................................. 24 标签分发........................................................................................................................ 24 LDP运行 ......................................................................................................................... 24
159

Mpls Mpls VPN

Dec 24, 2015

Download

Documents

misraoui
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
  • www.china-ccie.com

    1 159

    MPLS / MPLS_VPN

    IP ............................................................................................................ 41. PVC ............................................................................................ 4

    2IP ......................................................................................... 5

    3. ......................................................................................................... 6

    4.MPLS ....................................................................................... 7

    MPLS ..................................................................................................................... 8MPLS ................................................................................................................ 10

    MPLS ....................................................................................................................... 10

    MPLS ................................................................................................................... 11

    MPLS ................................................................................................................ 11

    LSR ................................................................................................................... 13LSP ............................................................................................................ 13

    FEC ........................................................................................................ 13

    MPLS ......................................................................................................... 14

    ........................................................................................................................... 15

    ................................................................................................................. 161. ..................................................................................... 16

    2. ....................................................................................................... 16

    LDP ........................................................................................................... 17

    ................................................................................................................. 18

    1. ................................................................................................... 192. ....................................................................................................... 19

    3.LSP ......................................................................................................... 20

    MPLS ................................................................................................................ 21

    MPLS ................................................................................................................ 21

    MPLS ................................................................................................................ 21MPLS TTL ................................................................................................................. 22

    MPLS MTU ...................................................................................................................... 23

    MPLSMRU ........................................................................................... 23

    MTU ................................................................................................................. 24

    ........................................................................................................................ 24LDP ......................................................................................................................... 24

  • www.china-ccie.com

    2 159

    MPLS ....................................................................................................................... 25

    1. ....................................................................... 26

    2.MTU ............................................................................. 263.CEF .................................................................................. 27

    4.LDP ........................................................................................ 27

    5.LDP .................................................................................................. 29

    6.LDP ........................................................................................... 34

    7. ......................................................................................... 438. ................................................................................................ 51

    9. ............................................................................................ 57

    10. ........................................................................................... 58

    LDP .................................................................................................................. 61

    LDP .................................................................................................................. 621. ....................................................................................................... 63

    2. ................................................................................................ 64

    3. ................................................................................................ 68

    IGPLDP ................................................................................................................. 72

    ........................................................................................................................ 721.IGPLDP ............................................................................................. 73

    2. .............................................................................................................. 74

    3.Holddown ...................................................................................................... 75

    4. ................................................................................................... 75

    RD ......................................................................................................... 80VRF ........................................................................................................ 81

    RT ............................................................................................................. 83

    MP-BGP .......................................................................................................................... 86

    MP-BGP ................................................................................................................... 87

    PE-CE ............................................................................................................... 88 ................................................................................................................. 88

    1. .............................................................................................................. 89

    2.RIPv2 .................................................................................................................... 89

    3.OSPF ..................................................................................................................... 90

    4.EIGRP ................................................................................................................... 915.EBGP .................................................................................................................... 92

    MPLS_VPN ............................................................................................................... 94

    1.MPLS ............................................................................................................. 94

    2.BGP ........................................................................................................ 96

    3.PEVRF ..................................................................................................... 974.PECEVRF ................................................................................ 98

    5.PEVRF ................................................................................ 98

    6.MP-BGP ........................................................................................................101

    7.MP-BGPVRF ........................................................................................102

  • www.china-ccie.com

    3 159

    8.MP-BGPVRF ...............................................................................................103

    9.RTVRF ......................................................................................103

    10.PE-CE .........................................................................................10411.PEVRF ...........................................................................................106

    12.MP-BGP .....................................................................................107

    13.MP-BGP ...............................................................................................108

    14.VRF ......................................................................................................109

    15.CE ........................................................................................................11216. .............................................................................................114

    17.PECE ....................................................................................................117

    OSPF Sham-Link ..............................................................................................................119

    OSPF Sham-Link ................................................................................................121

    .......................................................................................................................1341.PELANVRF ...........................................................................................135

    2.PE-CE ..............................................................................................136

    3.EIGRPBGP ........................................................................................136

    4.MP-BGPVRF .................................................................................137

    5.RTVRF ......................................................................................1386.VRF .............................................................................................138

    7.LAN .........................................................................................141

    CE ................................................................................................................142

    1.VRF ................................................................................................143

    2.PE-CETunnel ...........................................................................................144PE-CE .......................................................................................................145

    1.VRF ....................................................................................................145

    2.PE-CEEBGP .............................................................................................147

    Multi-VRF CE / VRF-Lite ...................................................................................................149

    1.MPLS ...........................................................................................1502.MP-BGP ........................................................................................................151

    3.CEVRF ...........................................................................151

    4.VRF ...........................................................................152

    5.PE-CEOSPF ..............................................................................................153

    6.PEVRF ....................................................................................................1547.PEOSPF ..................................................................................................155

    8.MP-BGPOSPF ...................................................................................155

    9.CEVRF .........................................................................................156

    10. ........................................................................................................158

  • www.china-ccie.com

    4 159

    MPLS

    IP

    1. PVC

    IP IP

    IP

    IP

    IP IP

    IP

    Frame Relay

    PVC IP PVC

    PVC

  • www.china-ccie.com

    5 159

    PVC

    PVC

    PVC

    PVC PVC

    PVC

    PVC

    PVC

    PVC N

    PVC

    PVC

    2 IP

  • www.china-ccie.com

    6 159

    IP

    IP

    IP

    3.

    IPIP

    PVC

    PVC

    PVC 1024

    IP

    10

    10 IP

  • www.china-ccie.com

    7 159

    IP

    PVC

    IP

    4.MPLS

    IP IP

    IP

    IP

    IP

    PVC

    IP,

    MPLS

    IP

    IP

    MPLS

    MPLS

    MPLS

    IP IP

    MPLS

    MPLS

    MPLS

    MPLS

  • www.china-ccie.com

    8 159

    MPLS

    1 IP

    2MPLS

    ASIC MPLS

    MPLS

    MPLSMPLS

    IPv4,IPv6, HDLCPPP

    MPLS MPLSAToM

    MPLS BGP

  • www.china-ccie.com

    9 159

    BGP IP

    BGP

    BGP IGP

    BGP

    IGP BGP

    BGP

    BGP BGP

    MPLS BGP MPLS

    BGP BGP

    BGP

    MPLS

  • www.china-ccie.com

    10 159

    MPLS

    Cisco IPtag switching

    TFIB

    IOSRSVP

    MPLS

    32 bit

    20 0 2 20 1048575

    16bit 21 23bit 3EXP

    QOS

    24 Bos 0 1

    25 32 8 bit TTL

  • www.china-ccie.com

    11 159

    MPLS

    MPLS

    BOS 1 0

    MPLS VPN AToMMPLS VPN

    MPLS IP

    MPLS

    MPLS

  • www.china-ccie.com

    12 159

    MPLS LSR

    3 LSR

    LSR

    LSR LSR

    LSR IP MPLS

    LSR

    LSR

  • www.china-ccie.com

    13 159

    LSR

    LSR

    LSR

    LSR

    LSR

    MPLS VPN LSR PE LSR P

    PE P MPLS VPN

    LSP

    LSP 20503568

    LSP 20-50-35-68LSP LSR MPLS

    MPLSLSPLSP

    LSR LSR LSR LSR

    FEC

    FEC

    FEC

    FEC EXP FEC LSR FEC

    LSP

  • www.china-ccie.com

    14 159

    FEC FEC

    FEC

    FEC

    MPLS

    LSR

    LSR

    LSR

    LSR LSR

  • www.china-ccie.com

    15 159

    LSR

    LSR

    R4 24 R6

    24 R4 LSR R4

    24 R4 24

    R3 LSR R3 24

    24 R4

    R3 23 23

    R3 24 R4 R3 23 R2

    R2 22 R2

    22 23 R3 R2 22

    R1 R1 R2 22 R2

    R1 LSR IP

    LSR

    22 R2 R6 LSR

    R4 R4 R6 IP

    LSR MPLS

    LSR

    LSR

  • www.china-ccie.com

    16 159

    LSR

    LSR PVC

    LSR

    LSR

    1 IP

    2

    1.

    EIGRP

    OSPF ISIS

    IGP BGP

    BGP

    2.

    LSR

    TDP

  • www.china-ccie.com

    17 159

    LDP

    RSVP

    TDP LDP

    LDP IETF LDP TDP

    RSVP MPLS TE

    LDP

    IP IGP LSR

    LSR

    LIB LDP

    MPLS PVC

    MPLS

  • www.china-ccie.com

    18 159

    LSR LSR

    EIGRP

    MPLS LSR EIGRP

    LIB EIGRP

    IGP

    LFIB

    EIGRP

    IOSLDP BGP IPv4

    IGP

    LDP TE RSVP MPLS VPN BGP

    MPLS

    , LSR

    LSR

    FEC

    LSR

    : IOS ATMLC-ATM

    CCIE R&S

    LSR

    1

    2

  • www.china-ccie.com

    19 159

    3LSP

    1.

    1 DOD

    2 UD

    1 DOD LSR

    LSR

    2 UDLSR

    UD LSR

    DOD LSR LIB

    UD

    IOS LC-ATM UD

    2.

    LSR

    1LLR

    2CLR

    1 LLR LSR LIB LFIB

    LIB LIB

    2 CLR LSR LFIB LIB

  • www.china-ccie.com

    20 159

    IOS LC-ATM LLR LIB

    3.LSP

    LSR

    1 LSP

    2 LSP

    1LSR LSR

    2LSR FEC LSR

    LSP LSP LSR

    LSR

    :IOS LSP FECATM

    LSR 20bit LFIB

    IP IP CEF

    LFIB

    CEF IP

    CEF

    CEF MPLS

    CEF

    10.1.1.0 CEF

  • www.china-ccie.com

    21 159

    show ip cef 10.1.1.0

    MPLS

    IPv4 metric

    LSR

    MPLS VPN MPLS VPNP

    IP

    MPLS

    LSR

    IOS

    MPLS

    MPLS

    0-150 null,3 1 14

    OAM

    3

    MPLSP PE

    MPLS IP MPLS PE

    PE IP IP

    IP PEPE

    LFIB LFIB

    IP IP

    IP PE

    IP LFIB

    PE IP

  • www.china-ccie.com

    22 159

    PE IP

    PE IP

    PE PE

    PE

    3 3 LSR

    PHP LSR

    outgoing pop

    IOSPHP

    3 3

    IPv4 0IPv6 2

    EXP QOS

    0 0 LFIB EXP

    QOS

    1

    20 bit 16-1048575,IOS 16-10 0000,IGP

    BGP

    MPLS TTL

    TTL 0 ICMP 11

    0() TTL IP

    MPLS

    IP MPLS IP TTL PE 1

    TTL MPLSPE TTL

    IP TTL 1 TTL IP TTL

    1 P

    TTL

  • www.china-ccie.com

    23 159

    TTL 0 MPLS LSP

    IPv4 IPv6

    MPLS VPN TTL PE CE P

    ICMP

    MPLS MTU

    OSI

    MTU MTU

    MTU

    MPLS

    MTU

    MPLS MTU MPLS

    MTU MPLS

    4 MTU 8

    MTU MPLS

    MPLSMRU

    sh mpls forwarding-table 1.1.1.1 detail

    MPLS MTU IP LSR

    IP IP

    DFLSR ICMP

    3 4 LSP

  • www.china-ccie.com

    24 159

    MTU

    MTU

    ICMP

    IGP

    LDP BGP BGP

    LDP BGP IPv4

    LDP

    LDP

    1 LDP LSR

    2

    3

    4

    LDP OSPF helloLDP

    hello hello UDP 646 224.0.0.2

    hello 5 15 hello

    hello LDP Link Hello

  • www.china-ccie.com

    25 159

    LDP LSR LDP LDP

    TCP

    LDP sessionsLDP hello 60 180 LDP

    LDP

    MPLS

    MPLSMPLS R1R2R3R4 R1

    R4 MPLS IP MPLS

    looback0

    X.X.X.X/32,XR2 loopback02.2.2.2/32,R5

  • www.china-ccie.com

    26 159

    loopback0 5.5.5.5/32 OSPF

    loopback0 OSPF OSPF

    1.

    1:

    R1#sh mpls label range

    Downstream Generic label region: Min/Max label: 16/100000

    R1#

    16 100000

    2

    R1(config)#mpls label range 16 1010000

    R1#sh mpls label range

    Downstream Generic label region: Min/Max label: 16/1010000

    R1#

    :16 1010000

    2. MTU

    1 MTU:

    R1#show mpls int s1/1 detail

  • www.china-ccie.com

    27 159

    2 MTU:

    R1(config)#int s1/1

    R1 (config-if)#mpls mtu 1508

    R1 (config)#int s1/1

    R1 (config-if)#mtu 2000

    : IOS MTU

    3

    swconfig#system jumbomtu 2000

    sw(config)#system mtu 2000

    3. CEF

    IOS IOS

    r1(config)#ip cef

    4. LDP

    1 LDP:

    LDP LDP

    r1(config)#mpls label protocol ldp

    2 LDP:

  • www.china-ccie.com

    28 159

    LDP

    r1(config)#int s1/1

    r1(config-if)# mpls label protocol ldp

    3 hello:

    r1(config)#int s1/1

    r1(config-if)#mpls ip

    mpls ip

    IOS tag-switching mpls ip,

    LDP MPLS LDP

    hello LDP

    R1

    r1(config)#int s1/1

    r1(config-if)# mpls label protocol ldp

    r1(config-if)#mpls ip

    R2

    R2(config)#mpls label protocol ldp

    R2(config)#int s1/0

    R2(config-if)#mpls ip

    R2(config-if)#exit

  • www.china-ccie.com

    29 159

    R2(config)#int s1/1

    R2(config-if)#mpls ip

    R3

    R3(config)#mpls label protocol ldp

    R3(config)#int s1/0

    R3(config-if)#mpls ip

    R3(config-if)#exit

    R3(config)#int s1/1

    R3(config-if)#mpls ip

    R4

    R4(config)#int s1/1

    R4(config-if)#mpls label protocol ldp

    R4(config-if)#mpls ip

    5. LDP

    1 mpls

    r1#sh mpls interfaces

    Interface IP Tunnel Operational

  • www.china-ccie.com

    30 159

    Serial1/1 Yes (ldp) No Yes

    r1#

    R1 S1/1 LDP

    2 LDP hello

    r1#sh mpls ldp parameters

    Protocol version: 1

    Downstream label generic region: min label: 16; max label: 100000

    Session hold time: 180 sec; keep alive interval: 60 sec

    Discovery hello: holdtime: 15 sec; interval: 5 sec

    Discovery targeted hello: holdtime: 90 sec; interval: 10 sec

    Downstream on Demand max hop count: 255

    Downstream on Demand Path Vector Limit: 255

    LDP for targeted sessions

    LDP initial/maximum backoff: 15/120 sec

    LDP loop detection: off

    r1#

    hello hold 5s 15s hello hold

    60s 180s

    3:

    :

    hello:

    r1(config)#mpls ldp discovery hello interval 3

  • www.china-ccie.com

    31 159

    r1(config)#exi

    r1#sh mpls ldp parameters

    Protocol version: 1

    Downstream label generic region: min label: 16; max label: 100000

    Session hold time: 180 sec; keep alive interval: 60 sec

    Discovery hello: holdtime: 15 sec; interval: 3 sec

    Discovery targeted hello: holdtime: 90 sec; interval: 10 sec

    Downstream on Demand max hop count: 255

    Downstream on Demand Path Vector Limit: 255

    LDP for targeted sessions

    LDP initial/maximum backoff: 15/120 sec

    LDP loop detection: off

    : hello 3s

    r1#sh mpls ldp discovery detail

    Local LDP Identifier:

    12.1.1.1:0

    Discovery Sources:

    Interfaces:

    Serial1/1 (ldp): xmit/recv

  • www.china-ccie.com

    32 159

    Enabled: Interface config

    Hello interval: 3000 ms; Transport IP addr: 12.1.1.1

    LDP Id: 2.2.2.2:0; no host route to transport addr

    Src IP addr: 12.1.1.2; Transport IP addr: 12.1.1.2

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 12.1.1.0/24

    r1#

    : hello 3s

    r1(config)#mpls ldp discovery hello interval 8

    r1#sh mpls ldp parameters

    Protocol version: 1

    Downstream label generic region: min label: 16; max label: 100000

    Session hold time: 180 sec; keep alive interval: 60 sec

    Discovery hello: holdtime: 15 sec; interval: 8 sec

    Discovery targeted hello: holdtime: 90 sec; interval: 10 sec

    Downstream on Demand max hop count: 255

    Downstream on Demand Path Vector Limit: 255

    LDP for targeted sessions

    LDP initial/maximum backoff: 15/120 sec

  • www.china-ccie.com

    33 159

    LDP loop detection: off

    r1#

    : hello 8s

    r1#sh mpls ldp discovery detail

    Local LDP Identifier:

    12.1.1.1:0

    Discovery Sources:

    Interfaces:

    Serial1/1 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 12.1.1.1

    LDP Id: 2.2.2.2:0; no host route to transport addr

    Src IP addr: 12.1.1.2; Transport IP addr: 12.1.1.2

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 12.1.1.0/24

    r1#

    : hello 5s

    r1(config)#mpls ldp holdtime 150

  • www.china-ccie.com

    34 159

    r1#sh adjacency detail

    *Mar 1 01:32:03.063: %SYS-5-CONFIG_I: Configured from console by console

    r1#sh mpls ldp parameters

    Protocol version: 1

    Downstream label generic region: min label: 16; max label: 100000

    Session hold time: 150 sec; keep alive interval: 50 sec

    Discovery hello: holdtime: 15 sec; interval: 8 sec

    Discovery targeted hello: holdtime: 90 sec; interval: 10 sec

    Downstream on Demand max hop count: 255

    Downstream on Demand Path Vector Limit: 255

    LDP for targeted sessions

    LDP initial/maximum backoff: 15/120 sec

    LDP loop detection: off

    r1#

    hold 150s

    6. LDP

    (1) R1 LDP discovery:

    r1#sh mpls ldp discovery detail

    Local LDP Identifier:

    1.1.1.1:0

  • www.china-ccie.com

    35 159

    Discovery Sources:

    Interfaces:

    Serial1/1 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 1.1.1.1

    LDP Id: 2.2.2.2:0; no route to transport addr

    Src IP addr: 12.1.1.2; Transport IP addr: 2.2.2.2

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    r1#

    :Local LDP Identifier LSR ID 6 4

    Rotuer-ID loopback

    OSPF Rotuer-ID 2

    01.1.1.1:0 1.1.1.1

    R1 Rotuer-ID 0 Transport IP

    IP Rotuer-ID

    Transport IP R1 R2

    hello Transport IP 2.2.2.2 loopback0

    OSPF R1no route to

    transport addr

    2 R2 LDP discovery:

    r2#sh mpls ldp discovery detail

    Local LDP Identifier:

    2.2.2.2:0

    Discovery Sources:

    Interfaces:

  • www.china-ccie.com

    36 159

    Serial1/0 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 2.2.2.2

    LDP Id: 3.3.3.3:0; no route to transport addr

    Src IP addr: 23.1.1.3; Transport IP addr: 3.3.3.3

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Serial1/1 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 2.2.2.2

    LDP Id: 1.1.1.1:0; no route to transport addr

    Src IP addr: 12.1.1.1; Transport IP addr: 1.1.1.1

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    r2#

    :R2 Rotuer-ID 2.2.2.2 Transport IP R1

    Transport IP 1.1.1.1

    LDP

    (3)

    : Transport IP Transport IP

    Rotuer-ID IP Rotuer-ID Transport

    IP

    R1Router-Id S1/1

  • www.china-ccie.com

    37 159

    r1(config)#mpls ldp router-id serial 1/1 force force

    r1(config)#exi

    r1#sh mpls ldp discovery detail

    Local LDP Identifier:

    12.1.1.1:0

    Discovery Sources:

    Interfaces:

    Serial1/1 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 12.1.1.1

    LDP Id: 2.2.2.2:0; no route to transport addr

    Src IP addr: 12.1.1.2; Transport IP addr: 2.2.2.2

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    r1#

    : Rotuer-ID S1/1 12.1.1.1Transport IP

    12.1.1.1

    R1 Transport IP R2 R2 Transport IP

    loopbackR1Transport IP Rotuer-ID

    Transport IP R2

    Transport IP S1/1Rotuer-ID

  • www.china-ccie.com

    38 159

    r2#sh mpls ldp discovery detail

    Local LDP Identifier:

    2.2.2.2:0

    Discovery Sources:

    Interfaces:

    Serial1/0 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 2.2.2.2

    LDP Id: 3.3.3.3:0; no route to transport addr

    Src IP addr: 23.1.1.3; Transport IP addr: 3.3.3.3

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Serial1/1 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 2.2.2.2

    LDP Id: 12.1.1.1:0; no host route to transport addr

    Src IP addr: 12.1.1.1; Transport IP addr: 12.1.1.1

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 12.1.1.0/24

    r2#conf t

  • www.china-ccie.com

    39 159

    r2(config)#int s1/1

    r2(config-if)#mpls ldp discovery transport-address interface

    r2(config-if)#exi

    r2#sh mpls ldp discovery detail

    Local LDP Identifier:

    2.2.2.2:0

    Discovery Sources:

    Interfaces:

    Serial1/0 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 2.2.2.2

    LDP Id: 3.3.3.3:0; no route to transport addr

    Src IP addr: 23.1.1.3; Transport IP addr: 3.3.3.3

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Serial1/1 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 12.1.1.2

    LDP Id: 12.1.1.1:0; no host route to transport addr

  • www.china-ccie.com

    40 159

    Src IP addr: 12.1.1.1; Transport IP addr: 12.1.1.1

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 12.1.1.0/24

    r2#

    :s1/1 Transport IP Router-ID

    S1/0 Router-ID

    R2 Transport IP

    r2#cle mpls ldp neighbor *

    r2#

    r2#sh mpls ldp neighbor

    Peer LDP Ident: 12.1.1.1:0; Local LDP Ident 2.2.2.2:0

    TCP connection: 12.1.1.1.646 - 12.1.1.2.11155

    State: Oper; Msgs sent/rcvd: 9/9; Downstream

    Up time: 00:00:43

    LDP discovery sources:

    Serial1/1, Src IP addr: 12.1.1.1

    Addresses bound to peer LDP Ident:

    15.1.1.1 12.1.1.1 1.1.1.1

    r2#

    : 646

  • www.china-ccie.com

    41 159

    4 R2 R3

    R2R3 S1/0Transport IPRouter-ID2.2.2.2

    R3 2.2.2.2 R2 R3 LDP

    R2 R1 S1/0 Transport IP

    r2(config)#int s1/0

    r2(config-if)#mpls ldp discovery transport-address interface

    r2(config-if)#exi

    R3 Transport IP Router-ID 3.3.3.3 R2

    R3 OSPF R2 ping

    LDP

    r3(config)#router ospf 2

    r3(config-router)#network 3.3.3.3 0.0.0.0 area 0

    r3(config-router)#exi

    R2 LDP

    r2#sh mpls ldp discovery detail

    Local LDP Identifier:

    2.2.2.2:0

    Discovery Sources:

    Interfaces:

    Serial1/0 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 23.1.1.2

    LDP Id: 3.3.3.3:0

  • www.china-ccie.com

    42 159

    Src IP addr: 23.1.1.3; Transport IP addr: 3.3.3.3

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 3.3.3.3/32

    Serial1/1 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 12.1.1.2

    LDP Id: 12.1.1.1:0; no host route to transport addr

    Src IP addr: 12.1.1.1; Transport IP addr: 12.1.1.1

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 12.1.1.0/24

    r2#

    :R2 R3 S1/0 Transport IP 23.1.1.2

    R2 R3 LDP

    r2#sh mpls ldp neighbor

    Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0

    TCP connection: 3.3.3.3.646 - 23.1.1.2.61206

    State: Oper; Msgs sent/rcvd: 10/9; Downstream

    Up time: 00:00:09

    LDP discovery sources:

    Serial1/0, Src IP addr: 23.1.1.3

  • www.china-ccie.com

    43 159

    Addresses bound to peer LDP Ident:

    23.1.1.3 34.1.1.3 3.3.3.3

    Peer LDP Ident: 12.1.1.1:0; Local LDP Ident 2.2.2.2:0

    TCP connection: 12.1.1.1.646 - 12.1.1.2.44954

    State: Oper; Msgs sent/rcvd: 10/10; Downstream

    Up time: 00:00:03

    LDP discovery sources:

    Serial1/1, Src IP addr: 12.1.1.1

    Addresses bound to peer LDP Ident:

    15.1.1.1 12.1.1.1 1.1.1.1

    r2#

    : R2 R3 LDP

    5R3 R4

    R3 Router-ID OSPF R4 R4

    Loopback loop OSPF R3 LDP

    : LDP R1 R2 R2 R3 R3 R4

    7.

    : R4 loopback0 4.4.4.4/32

    1 R4 LFIB 4.4.4.4

  • www.china-ccie.com

    44 159

    r4#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 Pop tag 23.1.1.0/24 0 Se1/1 34.1.1.3

    17 16 12.1.1.0/24 0 Se1/1 34.1.1.3

    18 18 15.1.1.0/24 0 Se1/1 34.1.1.3

    19 Pop tag 3.3.3.3/32 0 Se1/1 34.1.1.3

    r4#

    :R4 LFIB

    2 R4 CEF 4.4.4.4

    CEF

    r4#sh ip cef 4.4.4.4

    4.4.4.4/32, version 15, epoch 0, connected, receive

    tag information set

    local tag: implicit-null

    r4#

    :R4 CEF 4.4.4.4 implicit-null(

    MPLS)

    4.4.4.4

    3 R3 CEF 4.4.4.4

    r3#sh ip cef 4.4.4.4

  • www.china-ccie.com

    45 159

    4.4.4.4/32, version 19, epoch 0, cached adjacency 34.1.1.4

    0 packets, 0 bytes

    tag information set

    local tag: 19

    via 34.1.1.4, Serial1/1, 0 dependencies

    next hop 34.1.1.4, Serial1/1

    valid cached adjacency

    tag rewrite with Se1/1, 34.1.1.4, tags imposed: {}

    r3#

    :4.4.4.4 R4 implicit-null R3

    R3 R4 R3 4.4.4.4

    R3 4.4.4.4

    R3 4.4.4.4

    19 19

    4 R3 LFIB

    r3#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 Pop tag 12.1.1.0/24 0 Se1/0 23.1.1.2

    17 Pop tag 46.1.1.0/24 0 Se1/1 34.1.1.4

    18 18 15.1.1.0/24 0 Se1/0 23.1.1.2

    19 Pop tag 4.4.4.4/32 0 Se1/1 34.1.1.4

    r3#

  • www.china-ccie.com

    46 159

    : R3 4.4.4.4 19

    Pop tag R3

    19 S1/0

    5 R3 FIB

    LSR FIB LFIB

    LFIB

    r3#sh mpls ip binding

    2.2.2.2/32

    out label: imp-null lsr: 2.2.2.2:0

    3.3.3.3/32

    in label: imp-null

    out label: 19 lsr: 2.2.2.2:0

    out label: 19 lsr: 4.4.4.4:0

    4.4.4.4/32

    in label: 19

    out label: imp-null lsr: 4.4.4.4:0 inuse

    out label: 20 lsr: 2.2.2.2:0

    12.1.1.0/24

    in label: 16

    out label: imp-null lsr: 2.2.2.2:0 inuse

    out label: 17 lsr: 4.4.4.4:0

    15.1.1.0/24

  • www.china-ccie.com

    47 159

    in label: 18

    out label: 18 lsr: 2.2.2.2:0 inuse

    out label: 18 lsr: 4.4.4.4:0

    23.1.1.0/24

    in label: imp-null

    out label: imp-null lsr: 2.2.2.2:0

    out label: 16 lsr: 4.4.4.4:0

    34.1.1.0/24

    in label: imp-null

    out label: 16 lsr: 2.2.2.2:0

    out label: imp-null lsr: 4.4.4.4:0

    46.1.1.0/24

    in label: 17

    out label: 17 lsr: 2.2.2.2:0

    out label: imp-null lsr: 4.4.4.4:0 inuse

    r3#

    : 4.4.4.4 in 19,

    20 imp-null imp-null inuse imp-null

    6 R2 LFIB

    r2#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

  • www.china-ccie.com

    48 159

    tag tag or VC or Tunnel Id switched interface

    16 Pop tag 34.1.1.0/24 0 Se1/0 23.1.1.3

    17 17 46.1.1.0/24 0 Se1/0 23.1.1.3

    18 Pop tag 15.1.1.0/24 0 Se1/1 12.1.1.1

    19 Pop tag 3.3.3.3/32 0 Se1/0 23.1.1.3

    20 19 4.4.4.4/32 0 Se1/0 23.1.1.3

    r2#

    : R3 19 S1/1 R4 R2

    R3 19 19R2

    4.4.4.4 19 20 R2

    20 19 S1/0 R3

    R3 R4R2 4.4.4.4 20

    20

    7 R2 CEF 4.4.4.4

    r2#sh ip cef 4.4.4.4

    4.4.4.4/32, version 25, epoch 0, cached adjacency 23.1.1.3

    0 packets, 0 bytes

    tag information set

    local tag: 20

    fast tag rewrite with Se1/0, 23.1.1.3, tags imposed: {19}

    via 23.1.1.3, Serial1/0, 0 dependencies

    next hop 23.1.1.3, Serial1/0

    valid cached adjacency

  • www.china-ccie.com

    49 159

    tag rewrite with Se1/0, 23.1.1.3, tags imposed: {19}

    r2#

    :R2 4.4.4.4 20 1919 R3

    8 R1 LFIB

    r1#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 16 34.1.1.0/24 0 Se1/1 12.1.1.2

    17 Pop tag 23.1.1.0/24 0 Se1/1 12.1.1.2

    18 17 46.1.1.0/24 0 Se1/1 12.1.1.2

    19 19 3.3.3.3/32 0 Se1/1 12.1.1.2

    20 20 4.4.4.4/32 0 Se1/1 12.1.1.2

    r1#

    : R2 4.4.4.4 20 R1

    R1 20 R1 4.4.4.4 20

    R1 20

    20 S1/1

    9 R1 4.4.4.4

    r1#traceroute 4.4.4.4

    Type escape sequence to abort.

    Tracing the route to 4.4.4.4

  • www.china-ccie.com

    50 159

    1 12.1.1.2 [MPLS: Label 20 Exp 0] 156 msec 220 msec 156 msec

    2 23.1.1.3 [MPLS: Label 19 Exp 0] 168 msec 188 msec 196 msec

    3 34.1.1.4 160 msec * 140 msec

    r1#

    : 4.4.4.4R4 R3R3 R2

    19, R2 19 R3 R2 R1 20 R1

    20 R2 traceroute 12.1.1.2(R2)

    20, 23.1.1.3R3 19, R3 34.1.1.4R4

    10 IP R5 traceroute 4.4.4.4

    r5#traceroute 4.4.4.4

    Type escape sequence to abort.

    Tracing the route to 4.4.4.4

    1 15.1.1.1 136 msec 72 msec 84 msec

    2 12.1.1.2 300 msec 368 msec 192 msec

    3 23.1.1.3 252 msec 296 msec 148 msec

    4 34.1.1.4 216 msec * 188 msec

    r5#

    :IP MPLS

    MPLS

  • www.china-ccie.com

    51 159

    8.

    : 6.6.6.6 R4

    IP IP

    6.6.6.6 R6 R4

    6.6.6.6R4

    1 R4 6.6.6.6

    r4#sh mpls ip binding

    3.3.3.3/32

    in label: 19

    out label: imp-null lsr: 3.3.3.3:0 inuse

    4.4.4.4/32

    in label: imp-null

    out label: 19 lsr: 3.3.3.3:0

    6.6.6.6/32

    in label: 20

    out label: 20 lsr: 3.3.3.3:0

    12.1.1.0/24

    in label: 17

    out label: 16 lsr: 3.3.3.3:0 inuse

    15.1.1.0/24

    in label: 18

    out label: 18 lsr: 3.3.3.3:0 inuse

  • www.china-ccie.com

    52 159

    23.1.1.0/24

    in label: 16

    out label: imp-null lsr: 3.3.3.3:0 inuse

    34.1.1.0/24

    in label: imp-null

    out label: imp-null lsr: 3.3.3.3:0

    46.1.1.0/24

    in label: imp-null

    out label: 17 lsr: 3.3.3.3:0

    r4#

    : 4.4.4.4 R4in label

    6.6.6.6

    in label 20

    2 R4CEF 6.6.6.6

    r4#sh ip cef 6.6.6.6

    6.6.6.6/32, version 20, epoch 0, cached adjacency 46.1.1.6

    0 packets, 0 bytes

    tag information set

    local tag: 20

    via 46.1.1.6, Serial1/0, 0 dependencies

    next hop 46.1.1.6, Serial1/0

    valid cached adjacency

  • www.china-ccie.com

    53 159

    tag rewrite with Se1/0, 46.1.1.6, tags imposed: {}

    r4#

    :6.6.6.6 4.4.4.46.6.6.6

    20.

    3 R3 6.6.6.6:

    r3#sh ip cef 6.6.6.6

    6.6.6.6/32, version 20, epoch 0, cached adjacency 34.1.1.4

    0 packets, 0 bytes

    tag information set

    local tag: 20

    fast tag rewrite with Se1/1, 34.1.1.4, tags imposed: {20}

    via 34.1.1.4, Serial1/1, 0 dependencies

    next hop 34.1.1.4, Serial1/1

    valid cached adjacency

    tag rewrite with Se1/1, 34.1.1.4, tags imposed: {20}

    r3#

    :R3 6.6.6.6 ,() 20,,

    ()

    4 R3 LFIB

    r3#sh mpls forwarding-table

  • www.china-ccie.com

    54 159

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 Pop tag 12.1.1.0/24 1672 Se1/0 23.1.1.2

    17 Pop tag 46.1.1.0/24 0 Se1/1 34.1.1.4

    18 18 15.1.1.0/24 540 Se1/0 23.1.1.2

    19 Pop tag 4.4.4.4/32 1132 Se1/1 34.1.1.4

    20 20 6.6.6.6/32 540 Se1/1 34.1.1.4

    r3#

    :R3 6.6.6.6 20

    5R2 6.6.6.6

    r2#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 Pop tag 34.1.1.0/24 0 Se1/0 23.1.1.3

    17 17 46.1.1.0/24 0 Se1/0 23.1.1.3

    18 Pop tag 15.1.1.0/24 520 Se1/1 12.1.1.1

    19 Pop tag 3.3.3.3/32 0 Se1/0 23.1.1.3

    20 19 4.4.4.4/32 756 Se1/0 23.1.1.3

    21 20 6.6.6.6/32 540 Se1/0 23.1.1.3

    r2#

  • www.china-ccie.com

    55 159

    :R3 20 R2 20 R2 6.6.6.6

    21

    6 R1 6.6.6.6

    r1#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 16 34.1.1.0/24 0 Se1/1 12.1.1.2

    17 Pop tag 23.1.1.0/24 0 Se1/1 12.1.1.2

    18 17 46.1.1.0/24 0 Se1/1 12.1.1.2

    19 19 3.3.3.3/32 0 Se1/1 12.1.1.2

    20 20 4.4.4.4/32 0 Se1/1 12.1.1.2

    21 21 6.6.6.6/32 0 Se1/1 12.1.1.2

    r1#

    :R1 R2 2121

    7 R1

    r1#traceroute 6.6.6.6

    Type escape sequence to abort.

    Tracing the route to 6.6.6.6

    1 12.1.1.2 [MPLS: Label 21 Exp 0] 356 msec 284 msec 204 msec

  • www.china-ccie.com

    56 159

    2 23.1.1.3 [MPLS: Label 20 Exp 0] 388 msec 196 msec 192 msec

    3 34.1.1.4 [MPLS: Label 20 Exp 0] 152 msec 268 msec 260 msec

    4 46.1.1.6 244 msec * 172 msec

    r1#

    : R4 6.6.6.6 R3 20

    R3 R2 20R2 R1 21 R1

    R212.1.1.2 21R2 R3 20 R3

    R4 20

    8 IP R5 6.6.6.6

    r5#traceroute 6.6.6.6

    Type escape sequence to abort.

    Tracing the route to 6.6.6.6

    1 15.1.1.1 180 msec 92 msec 60 msec

    2 12.1.1.2 308 msec 256 msec 264 msec

    3 23.1.1.3 368 msec 200 msec 200 msec

    4 34.1.1.4 232 msec 252 msec 144 msec

    5 46.1.1.6 248 msec * 408 msec

    r5#

    IP R5

  • www.china-ccie.com

    57 159

    9.

    : LSR

    1 R3 4.4.4.4

    r3#sh mpls forwarding-table 4.4.4.4 detail

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    19 Pop tag 4.4.4.4/32 1744 Se1/1 34.1.1.4

    MAC/Encaps=4/4, MRU=1504, Tag Stack{}

    4CA18847

    No output feature configured

    Per-packet load-sharing

    r3

    2 R3 6.6.6.6

    r3#sh mpls forwarding-table 6.6.6.6 detail

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    20 20 6.6.6.6/32 2028 Se1/1 34.1.1.4

    MAC/Encaps=4/8, MRU=1500, Tag Stack{20}

    4CA18847 00014000

    No output feature configured

    Per-packet load-sharing

  • www.china-ccie.com

    58 159

    10.

    : LSR LSR

    1

    : R1 6.6.6.6

    r1(config)#access-list 6 permit 6.6.6.6

    r1(config)#mpls ldp neighbor 12.1.1.2 labels accept 6

    : 12.1.1.2 ACL 6

    2 LFIB

    r1#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 Untagged 34.1.1.0/24 0 Se1/1 12.1.1.2

    17 Untagged 23.1.1.0/24 0 Se1/1 12.1.1.2

    18 Untagged 46.1.1.0/24 0 Se1/1 12.1.1.2

    19 Untagged 3.3.3.3/32 0 Se1/1 12.1.1.2

    20 Untagged 4.4.4.4/32 0 Se1/1 12.1.1.2

    21 21 6.6.6.6/32 0 Se1/1 12.1.1.2

    r1#

  • www.china-ccie.com

    59 159

    : 6.6.6.6 21

    3

    : LSR

    R3 6.6.6.6 R2

    R2

    r2#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 Pop tag 34.1.1.0/24 0 Se1/0 23.1.1.3

    17 17 46.1.1.0/24 0 Se1/0 23.1.1.3

    18 Pop tag 15.1.1.0/24 3340 Se1/1 12.1.1.1

    19 Pop tag 3.3.3.3/32 0 Se1/0 23.1.1.3

    20 19 4.4.4.4/32 972 Se1/0 23.1.1.3

    21 20 6.6.6.6/32 1188 Se1/0 23.1.1.3

    : 6.6.6.6

    4 R3 6.6.6.6 R2

    r3(config)#access-list 2 permit 2.2.2.2 Router-ID

    r3(config)#access-list 6 permit 6.6.6.6

  • www.china-ccie.com

    60 159

    ldp advertise-labels

    r3(config)#mpls ldp advertise-labels for 6 to 2

    r3(config)#exi

    5 R2 6.6.6.6:

    r2#sh mpls forwarding-table

    Local Outgoing Prefix Bytes tag Outgoing Next Hop

    tag tag or VC or Tunnel Id switched interface

    16 Untagged 34.1.1.0/24 0 Se1/0 23.1.1.3

    17 Untagged 46.1.1.0/24 0 Se1/0 23.1.1.3

    18 Untagged 15.1.1.0/24 3340 Se1/1 12.1.1.1

    19 Untagged 3.3.3.3/32 0 Se1/0 23.1.1.3

    20 Untagged 4.4.4.4/32 972 Se1/0 23.1.1.3

    21 20 6.6.6.6/32 1188 Se1/0 23.1.1.3

    : 6.6.6.6

    6 R3

    r3#sh mpls ldp bindings advertisement-acls

    Advertisement spec:

    Prefix acl = 6; Peer acl = 2

    tib entry: 2.2.2.2/32, rev 13

  • www.china-ccie.com

    61 159

    tib entry: 3.3.3.3/32, rev 4

    tib entry: 4.4.4.4/32, rev 15

    tib entry: 6.6.6.6/32, rev 18

    Advert acl(s): Prefix acl 6; Peer acl 2

    tib entry: 12.1.1.0/24, rev 8

    tib entry: 15.1.1.0/24, rev 12

    tib entry: 23.1.1.0/24, rev 6

    tib entry: 34.1.1.0/24, rev 2

    tib entry: 46.1.1.0/24, rev 10

    r3#

    LDP

    :

    1 R2 R1 cisco R1:

    r2(config)#mpls ldp neighbor 12.1.1.1 password 0 cisco

    r2(config)#

    : Router-ID,0

  • www.china-ccie.com

    62 159

    LDP

    LDPLDP hello hello

    hello hello LDP Link Hello

    LDP LDP sessionsLDP

    hello LDP Targeted Hello targeted

    session LSR

    LSR

    targeted session LSR

    LSR

    Targeted Hello

    targeted session

  • www.china-ccie.com

    63 159

    :R1 loopback0 1.1.1.1/32R2 loopback0 2.2.2.2/32R3 loopback0

    3.3.3.3/32OSPF loopback OSPFLDP

    R1 R2 S1/0 R1 R2

    LDP R1 R2 R3

    1.

    1 R1

    R1(config)# mpls ldp session protection

    2 R2

    R2(config)# mpls ldp session protection

    3 ACL

    router(config)#access 1 per 1.1.1.1

  • www.china-ccie.com

    64 159

    router(config)#mpls ldp session protection for 1 duration 90s

    2.

    1

    r1#sh mpls ld neighbor

    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0

    TCP connection: 2.2.2.2.23261 - 1.1.1.1.646

    State: Oper; Msgs sent/rcvd: 9/9; Downstream

    Up time: 00:00:04

    LDP discovery sources:

    Serial1/0, Src IP addr: 12.1.1.2

    Addresses bound to peer LDP Ident:

    23.1.1.2 12.1.1.2 2.2.2.2

    :

    2

    r1#sh mpls ld neighbor

    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0

    TCP connection: 2.2.2.2.39052 - 1.1.1.1.646

    State: Oper; Msgs sent/rcvd: 11/11; Downstream

    Up time: 00:02:27

    LDP discovery sources:

  • www.china-ccie.com

    65 159

    Serial1/0, Src IP addr: 12.1.1.2

    Targeted Hello 1.1.1.1 -> 2.2.2.2, active, passive

    Addresses bound to peer LDP Ident:

    23.1.1.2 12.1.1.2 2.2.2.2

    r1#

    : R2

    3 discovery

    r1#sh mpls ld discovery detail

    Local LDP Identifier:

    1.1.1.1:0

    Discovery Sources:

    Interfaces:

    Serial1/0 (ldp): xmit/recv

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 1.1.1.1

    LDP Id: 2.2.2.2:0

    Src IP addr: 12.1.1.2; Transport IP addr: 2.2.2.2

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 2.2.2.2/32

    Serial1/1 (ldp): xmit

    Enabled: Interface config

  • www.china-ccie.com

    66 159

    Hello interval: 5000 ms; Transport IP addr: 1.1.1.1

    Targeted Hellos:

    1.1.1.1 -> 2.2.2.2 (ldp): active/passive, xmit/recv

    Hello interval: 10000 ms; Transport IP addr: 1.1.1.1

    LDP Id: 2.2.2.2:0

    Src IP addr: 2.2.2.2; Transport IP addr: 2.2.2.2

    Hold time: 90 sec; Proposed local/peer: 90/90 sec

    Reachable via 2.2.2.2/32

    r1#

    :

    4 R1 R2:

    r1#sh mpls ld discovery detail

    Local LDP Identifier:

    1.1.1.1:0

    Discovery Sources:

    Interfaces:

    Serial1/1 (ldp): xmit

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 1.1.1.1

    Targeted Hellos:

  • www.china-ccie.com

    67 159

    1.1.1.1 -> 2.2.2.2 (ldp): active/passive, xmit/recv

    Hello interval: 10000 ms; Transport IP addr: 1.1.1.1

    LDP Id: 2.2.2.2:0

    Src IP addr: 2.2.2.2; Transport IP addr: 2.2.2.2

    Hold time: 90 sec; Proposed local/peer: 90/90 sec

    Reachable via 2.2.2.2/32

    r1#

    r1#sh mpls ld neighbor

    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0

    TCP connection: 2.2.2.2.39052 - 1.1.1.1.646

    State: Oper; Msgs sent/rcvd: 15/13; Downstream

    Up time: 00:03:27

    LDP discovery sources:

    Targeted Hello 1.1.1.1 -> 2.2.2.2, active, passive

    Addresses bound to peer LDP Ident:

    23.1.1.2 12.1.1.2 2.2.2.2

    r1#

    :R1 R2LDP

  • www.china-ccie.com

    68 159

    3.

    :

    1 R1

    : Router-ID

    r1(config)#mpls ldp neighbor 2.2.2.2 targeted ldp LDP TDP

    2R2

    R2(config)#mpls ldp neighbor 1.1.1.1 targeted ldp

    3:

    r1#sh mpls ld neighbor

    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0

    TCP connection: 2.2.2.2.23261 - 1.1.1.1.646

    State: Oper; Msgs sent/rcvd: 9/9; Downstream

    Up time: 00:00:04

    LDP discovery sources:

    Serial1/0, Src IP addr: 12.1.1.2

    Addresses bound to peer LDP Ident:

    23.1.1.2 12.1.1.2 2.2.2.2

    r1#

    :

  • www.china-ccie.com

    69 159

    r1#sh mpls ldp neighbor

    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0

    TCP connection: 2.2.2.2.23261 - 1.1.1.1.646

    State: Oper; Msgs sent/rcvd: 10/10; Downstream

    Up time: 00:01:23

    LDP discovery sources:

    Serial1/0, Src IP addr: 12.1.1.2

    Targeted Hello 1.1.1.1 -> 2.2.2.2, active, passive

    Addresses bound to peer LDP Ident:

    23.1.1.2 12.1.1.2 2.2.2.2

    r1#

    r1#sh mpls ld discovery detail

    Local LDP Identifier:

    1.1.1.1:0

    Discovery Sources:

    Interfaces:

    Serial1/0 (ldp): xmit/recv

    Enabled: Interface config

  • www.china-ccie.com

    70 159

    Hello interval: 5000 ms; Transport IP addr: 1.1.1.1

    LDP Id: 2.2.2.2:0

    Src IP addr: 12.1.1.2; Transport IP addr: 2.2.2.2

    Hold time: 15 sec; Proposed local/peer: 15/15 sec

    Reachable via 2.2.2.2/32

    Serial1/1 (ldp): xmit

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 1.1.1.1

    Targeted Hellos:

    1.1.1.1 -> 2.2.2.2 (ldp): active/passive, xmit/recv

    Hello interval: 10000 ms; Transport IP addr: 1.1.1.1

    LDP Id: 2.2.2.2:0

    Src IP addr: 2.2.2.2; Transport IP addr: 2.2.2.2

    Hold time: 90 sec; Proposed local/peer: 90/90 sec

    Reachable via 2.2.2.2/32

    r1#

    : R2

    4 R1 R2:

    r1#sh mpls ld discovery detail

    Local LDP Identifier:

  • www.china-ccie.com

    71 159

    1.1.1.1:0

    Discovery Sources:

    Interfaces:

    Serial1/1 (ldp): xmit

    Enabled: Interface config

    Hello interval: 5000 ms; Transport IP addr: 1.1.1.1

    Targeted Hellos:

    1.1.1.1 -> 2.2.2.2 (ldp): active/passive, xmit/recv

    Hello interval: 10000 ms; Transport IP addr: 1.1.1.1

    LDP Id: 2.2.2.2:0

    Src IP addr: 2.2.2.2; Transport IP addr: 2.2.2.2

    Hold time: 90 sec; Proposed local/peer: 90/90 sec

    Reachable via 2.2.2.2/32

    r1#

    r1#sh mpls ldp neighbor

    Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0

    TCP connection: 2.2.2.2.23261 - 1.1.1.1.646

    State: Oper; Msgs sent/rcvd: 15/13; Downstream

    Up time: 00:02:50

    LDP discovery sources:

  • www.china-ccie.com

    72 159

    Targeted Hello 1.1.1.1 -> 2.2.2.2, active, passive

    Addresses bound to peer LDP Ident:

    23.1.1.2 12.1.1.2 2.2.2.2

    r1#

    :R1 R2LDP

    IGP LDP

    LDP

    IGP IP LDP

    IGP LDP LSR

    IGP LDP

    IGP LDP mpls ip

    OSPF LDPOSPF LDP

    holddown OSPF holddownLDP

    OSPF LDP

    Metric 65536

  • www.china-ccie.com

    73 159

    : OSPF R1 R2 R1 R3 LDP R1 R2

    R1 loopback0 1.1.1.1/32R2 loopback0 2.2.2.2/32

    R3 loopback0 3.3.3.3/32 loopback OSPF

    1. IGP LDP

    : R1 IGP LDP

    1 OSPF IGP LDP

    mpls ip

    R1(config)#router os 2

    R1(config-router)#mpls ldp sync

  • www.china-ccie.com

    74 159

    2.

    r1#sh ip ospf mpls ldp interface

    Serial1/1

    Process ID 2, Area 0

    LDP is not configured through LDP autoconfig

    LDP-IGP Synchronization : Not required

    Holddown timer is disabled

    Interface is up

    Serial1/0

    Process ID 2, Area 0

    LDP is not configured through LDP autoconfig

    LDP-IGP Synchronization : Required

    Holddown timer is configured : 10000 msecs

    Holddown timer is not running

    Interface is up and sending maximum metric

    Loopback0

    Process ID 2, Area 0

    LDP is not configured through LDP autoconfig

    LDP-IGP Synchronization : Not required

    Holddown timer is disabled

    Interface is up

  • www.china-ccie.com

    75 159

    r1#

    : S1/0 mpls ip

    Holddown

    r1(config)#mpls ldp igp sync holddown 10000

    3. Holddown

    OSPF LDP

    Holddown LDPOSPF

    4.

    : R2 LDP R1 LDP

    HolddownOSPFLDP

    OSPF R1 R2 Metric

    65536

    1 R1 R2 OSPF

    R3 R2 R1 R1 Metric 65536

    r1#sh ip route

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

  • www.china-ccie.com

    76 159

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    1.0.0.0/32 is subnetted, 1 subnets

    C 1.1.1.1 is directly connected, Loopback0

    2.0.0.0/32 is subnetted, 1 subnets

    O 2.2.2.2 [110/65536] via 12.1.1.2, 00:00:55, Serial1/0

    3.0.0.0/32 is subnetted, 1 subnets

    O 3.3.3.3 [110/65] via 13.1.1.3, 00:00:55, Serial1/1

    23.0.0.0/24 is subnetted, 1 subnets

    O 23.1.1.0 [110/74] via 13.1.1.3, 00:00:55, Serial1/1

    12.0.0.0/24 is subnetted, 1 subnets

    C 12.1.1.0 is directly connected, Serial1/0

    13.0.0.0/24 is subnetted, 1 subnets

    C 13.1.1.0 is directly connected, Serial1/1

    r1#

    :R1 R2 2.2.2.2Metric 65546

    2 R3

    r3#sh ip route

  • www.china-ccie.com

    77 159

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    1.0.0.0/32 is subnetted, 1 subnets

    O 1.1.1.1 [110/65] via 13.1.1.1, 00:00:08, Serial1/1

    2.0.0.0/32 is subnetted, 1 subnets

    O 2.2.2.2 [110/65600] via 13.1.1.1, 00:00:08, Serial1/1

    3.0.0.0/32 is subnetted, 1 subnets

    C 3.3.3.3 is directly connected, Loopback0

    23.0.0.0/24 is subnetted, 1 subnets

    C 23.1.1.0 is directly connected, FastEthernet0/0

    12.0.0.0/24 is subnetted, 1 subnets

    O 12.1.1.0 [110/128] via 13.1.1.1, 00:00:08, Serial1/1

    13.0.0.0/24 is subnetted, 1 subnets

  • www.china-ccie.com

    78 159

    C 13.1.1.0 is directly connected, Serial1/1

    r3#

    : R3 R1 2.2.2.2 Metric 65536

    64 65600

    MPLS_VPN

    MPLS

    MPLS

    VPN VPN VPN

    IPSec VPN MPLS_VPN VPN

    IP

    IP

    MPLS IP

    IPSec VPN

    MPLS_VPN

    MPLS_VPN VPN

    MPLS_VPN

    MPLS_VPN

    MPLS

    MPLS_VPN

    MPLS_VPN IPSec VPN

    IPSec VPN

    VPN

    IPSec VPN VPN

    MPLS_VPN

  • www.china-ccie.com

    79 159

    Internet

    IP192.168.0.0172.16.0.010.0.0.0

    Internet Internet

    Internet

    Internet

    Internet

    Internet MPLS MPLS LSR

    IP MPLS

    MPLS

    MPLS

  • www.china-ccie.com

    80 159

    RD

    Internet MPLS

    MPLS MPLS

    MPLS Internet

    Internet IP

    Internet

    BGP MPLS BGP

    BGP

    MPLS MPLS IP

    Internet

  • www.china-ccie.com

    81 159

    Internet

    BGP

    192.168.0.0 172.16.0.0

    BGP BGP

    BGP

    BGP

    BGP

    BGP

    BGP

    RD BGP

    RDBGP RD BGPMP-BGP

    MP-BGP MPLS_VPN

    32 bit RD 64 bit

    RD 96 bit vpnv4

    RD

    RD

    ASN:nn IP-address:nn

    ASN BGP ASnn

    10.1.1.0/24RD 100:1 vpnv4

    100:1:10.1.1.0/24

    VRF

  • www.china-ccie.com

    82 159

    VPN

    Internet

    192.168.0.0/24 MP-BGP

    192.168.0.0 BGP

    R1

    192.168.0.0

    192.168.0.0 192.168.0.0

    192.168.0.0

    192.168.0.0

    R1

  • www.china-ccie.com

    83 159

    192.168.0.0

    VRF

    VPN

    RT

    VRF VRF VPN1

    BGP RD

  • www.china-ccie.com

    84 159

    VPN1

    RD RD 100

    1 RD 1002

    VRF VPN1 RD 100

    1 RD 1002 RD 100:1

    VPN1

    RT

    VRF

    VPN2 RD 1002 RT RD 1002

    VPN2

    RD VRF RT

    VRF CCIE RD 1001

    1002 1003 RD 1003 CCIE

    CCIE RT 1003 RD 1003

    VRF CCIE RD 1001 1002RT

    BGP RD

    VRF VRF RD RD RT

    RD

    RD VRF RT VRF

    RD RD

    VRF RD VRF

  • www.china-ccie.com

    85 159

    R1 R2

    VRF RD 1001

    VRF RD 1002 VRF RD

    1001 1002 VRF

    RD

    RD VRF RT

    RD

    RTRD BGP

    VRFRT VRF

    ISP P PE PEP P PE

    MPLS

  • www.china-ccie.com

    86 159

    CE CCE ISP MPLS

    CE PECE

    PE PE

    VPN P VPN VPN MPLS

    P BGP

    PEPE

    MP-BGP

    LAN1 Internet LAN2 Internet

    LAN1 LAN2 MPLS_VPN

    MPLS_VPN Internet MPLS

    MPLS LSR P MPLS LSR PE

    PE CE C

    PE BGP PE

    RD RD vpnv4 PE vpnv4 MP-BGP

    MP-BGP vpnv4 MPLS BGP vpnv4

  • www.china-ccie.com

    87 159

    BGP vpnv4 RD BGP

    vpnv4 BGP RD

    VRF VRF CE BGP vpnv4

    MP-BGP

    MPLS LSR

    MP-BGP vpnv4 MPLS

    BGP RD

    MPLS_VPN

    MP-BGP

    BGP address-family MP-BGP

    BGP IPv4 address-family

    ipv4 IP address-family ipv4

    unicast BGP ipv4 address-family ipv4 multicast

    IPv6 address-family ipv6 unicast ipv6

    multicast

    address-family

    ipv4 ipv4 ipv6 vpnv4

    MP-BGP vpnv4 vpnv4 vpnv4 address-family

    VRF vpn4 VRF

    BGP BGPMP-BGP vpnv4

    IOS vpnv4 MPLS

  • www.china-ccie.com

    88 159

    PE-CE

    MPLS_VPN PE

    PE MP-BGP MP-BGP

    PE PE

    PE CE

    PE

    PE MP-BGP

    MP-BGP CE

    PEMP-BGP CE

    MP-BGP PE CE BGP

    IGP MP-BGP

    PE CE VRF

    CE VRF

    PE CE

    RIPv2

    OSPF

    EIGRP

    IS-IS

    PE CE

  • www.china-ccie.com

    89 159

    PE CE

    1.

    1PE VRF:

    r4(config)#ip route 0.0.0.0 0.0.0.0 14.1.1.4

    2 PE MP-BGP:

    r1(config)#router bgp 100

    r1(config-router)#address-family ipv4 vrf vpn1

    r1(config-router-af)#redistribute static

    r1(config-router-af)#exi

    (3)CE PE:

    r4(config)#ip route 0.0.0.0 0.0.0.0 14.1.1.1

    2.RIPv2

    RIP metric 15 RIP

    metric RIP metric

    default-metric

    1PE RIP:

    r1(config)#router rip

    r1(config-router)#version 2

    r1(config-router)#no auto-summary

  • www.china-ccie.com

    90 159

    r1(config-router)#address-family ipv4 vrf vpn1

    r1(config-router-af)#no auto-summary

    r1(config-router-af)#network 14.0.0.0

    r1(config-router-af)#redistribute bgp 100 metric 1

    2 RIP MP-BGP:

    r1(config)#router bgp 100

    r1(config-router)#address-family ipv4 vrf vpn1

    r1(config-router-af)#redistribute rip

    3CE RIP:

    r4(config)#router rip

    r4(config-router)#version 2

    r4(config-router)#no auto-summary

    r4(config-router)#network 14.0.0.0

    r4(config-router)#network 10.0.0.0

    3.OSPF

    :OSPF Sham-lin CCIE R&S

    v4.0!

    1 PE OSPF:

  • www.china-ccie.com

    91 159

    r3(config)#router ospf 100 vrf vpn1

    r3(config-router)#router-id 36.1.1.3

    r3(config-router)#network 36.1.1.3 0.0.0.0 area 0

    r3(config-router)#redistribute bgp 100 subnets

    2 OSPP MP-BGP:

    r3(config)#router bgp 100

    r3(config-router)#address-family ipv4 vrf vpn1

    r3(config-router-af)#redistribute ospf 100

    3CE OSPF:

    r6(config)#router ospf 100

    r6(config-router)#router-id 6.6.6.6

    r6(config-router)#network 36.1.1.6 0.0.0.0 area 0

    r6(config-router)#network 192.168.1.6 0.0.0.0 area 0

    r6(config-router)#exit

    r6(config)#

    4.EIGRP

    1 PE EIGRP:

    r3(config)#router eigrp 1

  • www.china-ccie.com

    92 159

    r3(config-router)#no auto-summary

    r3(config-router)#address-family ipv4 vrf vpn2

    r3(config-router-af)#no auto-summary

    r3(config-router-af)#network 83.1.1.3 0.0.0.0

    r3(config-router-af)#autonomous-system 1

    r3(config-router-af)#redistribute bgp 100 metric 10000 100 255 1 1500

    2 EIGRP MP-BGP:

    r3(config)#router bgp 100

    r3(config-router)#address-family ipv4 vrf vpn2

    r3(config-router-af)#redistribute eigrp 1

    3CE EIGRP:

    r8(config)#router eigrp 1

    r8(config-router)#no auto-summary

    r8(config-router)#network 172.16.1.8 0.0.0.0

    r8(config-router)#network 83.1.1.8 0.0.0.0

    IS-IS

    5.

    IOS CE PE EBGP

    EBGP

    1PE EBGP:

  • www.china-ccie.com

    93 159

    r1(config)#router bg 100

    r1(config-router)#address-family ipv4 vrf vpn1

    r1(config-router-af)#neighbor 14.1.1.4 remote-as 200

    r1(config-router-af)#neighbor 14.1.1.4 activate

    2 CE EBGP MP-BGP:

    3CE EBGP:

    r4(config)#router bgp 200

    r4(config-router)#neighbor 14.1.1.1 remote

    r4(config-router)#neighbor 14.1.1.1 remote-as 100

    r4(config-router)#network 10.1.1.0 mask 255.255.255.0

    r4(config-router)#

    ASCE AS

    r1(config)#router bgp 100

    r1(config-router)#address-family ipv4 vrf vpn1

    r1(config-router-af)#neighbor 14.1.1.4 as-override

    PE CEhub-spokenei allowas-in 1-10

  • www.china-ccie.com

    94 159

    MPLS_VPN

    MPLS_VPN R1R2R3

    loopback0 1.1.1.1/322.2.2.2/323.3.3.3/32 OSPF

    MPLS loopback

    1. MPLS

    :MP-BGP MPLS_VPN MPLS_VPN

    MPLS loopback

    1 MPLS MPLS

    2 MPLS_VPN R1 R3 MP-BGP

    loopback loopback

  • www.china-ccie.com

    95 159

    r1#traceroute 3.3.3.3

    Type escape sequence to abort.

    Tracing the route to 3.3.3.3

    1 12.1.1.2 [MPLS: Label 17 Exp 0] 104 msec 120 msec 140 msec

    2 23.1.1.3 72 msec * 112 msec

    r1#

    :R1 R3 loopback0

    r3#traceroute 1.1.1.1

    Type escape sequence to abort.

    Tracing the route to 1.1.1.1

    1 23.1.1.2 [MPLS: Label 16 Exp 0] 100 msec 140 msec 196 msec

    2 12.1.1.1 160 msec * 224 msec

    r3#

    :R3 R1 loopback0

  • www.china-ccie.com

    96 159

    2. BGP

    : R1 R3 BGPMP-BGP BGP

    1 R1 BGP

    r1(config)#router bgp 100

    r1(config-router)#neighbor 3.3.3.3 remote-as 100

    r1(config-router)#neighbor 3.3.3.3 update-source loopback 0

    2 R2 BGP

    r3(config)#router bgp 100

    r3(config-router)#neighbor 1.1.1.1 remote-as 100

    r3(config-router)#neighbor 1.1.1.1 update-source loopback 0

    3 R1 R3 BGP

    r1#sh ip bgp summary

    BGP router identifier 1.1.1.1, local AS number 100

    BGP table version is 1, main routing table version 1

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

    3.3.3.3 4 100 3 3 1 0 0 00:00:51 0

    r1#

    : R1 R3 BGP

    4 R3 R1 BGP

  • www.china-ccie.com

    97 159

    r3#sh ip bgp summary

    BGP router identifier 3.3.3.3, local AS number 100

    BGP table version is 1, main routing table version 1

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

    1.1.1.1 4 100 4 4 1 0 0 00:01:07 0

    r3#

    : R3 R1 BGP

    3. PE VRF

    : PE VRF RD

    VRF RD

    1 R1 VRF RD

    r1(config)#ip vrf vpn1

    r1(config-vrf)#rd 100:1

    2 R3 VRF RD

    r3(config)#ip vrf vpn1

    r3(config-vrf)#rd 100:1

  • www.china-ccie.com

    98 159

    4. PE CE VRF

    : PE CE VRF

    VRF VRF

    1 R1 CE R4 s1/1 VRF:

    r1(config)#int s1/1

    r1(config-if)#ip vrf forwarding vpn1

    % Interface Serial1/1 IP address 14.1.1.1 removed due to enabling VRF vpn1

    r1(config-if)# ip add 14.1.1.1 255.255.255.0

    : VRF

    IP

    (2) R3 CE R6 s1/0 VRF:

    r3(config)#int s1/0

    r3(config-if)#ip vrf forwarding vpn1

    % Interface Serial1/0 IP address 36.1.1.3 removed due to enabling VRF vpn1

    r3(config-if)#ip add 36.1.1.3 255.255.255.0

    5. PE VRF

    : PEPE VRF

    PE VRF

    1 R1 VRF vpn1:

  • www.china-ccie.com

    99 159

    r1#sh ip route vrf vpn1

    Routing Table: vpn1

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    14.0.0.0/24 is subnetted, 1 subnets

    C 14.1.1.0 is directly connected, Serial1/1

    r1#

    :PE CE R4 s1/1 VRF vpn1 VRF

    vpn1

    2 PE R1 CE s1/1

    r1#sh ip route

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

  • www.china-ccie.com

    100 159

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    1.0.0.0/32 is subnetted, 1 subnets

    C 1.1.1.1 is directly connected, Loopback0

    2.0.0.0/32 is subnetted, 1 subnets

    O 2.2.2.2 [110/65] via 12.1.1.2, 00:14:25, Serial1/0

    3.0.0.0/32 is subnetted, 1 subnets

    O 3.3.3.3 [110/129] via 12.1.1.2, 00:14:25, Serial1/0

    23.0.0.0/24 is subnetted, 1 subnets

    O 23.1.1.0 [110/128] via 12.1.1.2, 00:14:25, Serial1/0

    12.0.0.0/24 is subnetted, 1 subnets

    C 12.1.1.0 is directly connected, Serial1/0

    r1#

  • www.china-ccie.com

    101 159

    6. MP-BGP

    : PE VRFVRF

    MP-BGP

    6 (1) PE R1 MP-BGP

    r1(config)#router bgp 100

    r1(config-router)#address-family vpnv4

    r1(config-router-af)#neighbor 3.3.3.3 activate

    r1(config-router-af)#neighbor 3.3.3.3 send-community both

    : vpnv4 address-family vpnv4

    BGP vpnv4 BGP

    2 PE R3 MP-BGP

    r3(config)#router bgp 100

    r3(config-router)#address-family vpnv4

    r3(config-router-af)#neighbor 1.1.1.1 activate

    r3(config-router-af)#neighbor 1.1.1.1 send-community both

    3 MP-BGP

    r1#sh ip bgp all summary

    For address family: IPv4 Unicast

    BGP router identifier 1.1.1.1, local AS number 100

  • www.china-ccie.com

    102 159

    BGP table version is 1, main routing table version 1

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

    3.3.3.3 4 100 23 23 1 0 0 00:03:18 0

    For address family: VPNv4 Unicast

    BGP router identifier 1.1.1.1, local AS number 100

    BGP table version is 1, main routing table version 1

    Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd

    3.3.3.3 4 100 23 23 1 0 0 00:03:18 0

    r1#

    :R1 R3 BGP MP-BGP

    7. MP-BGP VRF

    r1#sh ip bgp vpnv4 all

    r1#

    : PE MP-BGP BGP VRF BGP

    VRF VRF

  • www.china-ccie.com

    103 159

    8. MP-BGP VRF

    :MP-BGP VRF

    VRF VRF

    1 R1 MP-BGP VRF vpn1:

    r1(config)#router bgp 100

    r1(config-router)#address-family ipv4 vrf vpn1

    2 R3 MP-BGP VRF vpn1:

    r3(config)#router bgp 100

    r3(config-router)#address-family ipv4 vrf vpn1

    3 VRF:

    r1#sh ip bgp vpnv4 all

    r1#

    r1#sh ip bgp vpnv4 vrf vpn1

    r1#

    :BGP VRF

    9. RT VRF

    : MP-BGP VRF RT

    MP-BGP VRF RT RT

    RD VRF

  • www.china-ccie.com

    104 159

    1 R1 VRF RT

    r1(config)#ip vrf vpn1

    r1(config-vrf)#route-target both 100:1

    VRF vpn1 RD 100:1

    2 R3 VRF RT

    r3(config)#ip vrf vpn1

    r3(config-vrf)#route-target both 100:1

    10. PE-CE

    : MP-BGP VRF PE

    MP-BGP VRF MP-BGP

    VRF CE

    MP-BGP VRF

    1 PE R1 RIP:

    :PE-CE RIP 2

    r1(config)#router rip

    r1(config-router)#version 2

    r1(config-router)#no auto-summary

    r1(config-router)#address-family ipv4 vrf vpn1

    r1(config-router-af)#no auto-summary

    r1(config-router-af)#network 14.0.0.0

    r1(config-router-af)#redistribute bgp 100 metric 1

  • www.china-ccie.com

    105 159

    address-family

    MP-BGP RIP CE

    2 CE R4 RIP:

    : CE PE

    r4(config)#router rip

    r4(config-router)#version 2

    r4(config-router)#no auto-summary

    r4(config-router)#network 14.0.0.0

    r4(config-router)#network 10.0.0.0

    3 PE R3 OSPF:

    :MP-BGP OSPF CE

    r3(config)#router ospf 100 vrf vpn1

    r3(config-router)#router-id 36.1.1.3

    r3(config-router)#network 36.1.1.3 0.0.0.0 area 0

    r3(config-router)#redistribute bgp 100 subnets

    4 CE R6 OSPP:

    :CE OSPF OSPF

    r6(config)#router ospf 100

    r6(config-router)#router-id 6.6.6.6

  • www.china-ccie.com

    106 159

    r6(config-router)#network 36.1.1.6 0.0.0.0 area 0

    r6(config-router)#network 192.168.1.6 0.0.0.0 area 0

    r6(config-router)#exit

    r6(config)#

    11. PE VRF

    : PE CE PE

    (1) R1 CE R4 10.1.1.0/24:

    r1#sh ip route vrf vpn1

    Routing Table: vpn1

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

  • www.china-ccie.com

    107 159

    10.0.0.0/24 is subnetted, 1 subnets

    R 10.1.1.0 [120/1] via 14.1.1.4, 00:00:27, Serial1/1

    14.0.0.0/24 is subnetted, 1 subnets

    C 14.1.1.0 is directly connected, Serial1/1

    r1#

    :PE R1 RIP

    (2) MP-BGP VRF

    r1#sh ip bgp vpnv4 all

    r1#

    :MP-BGP VRF PE CE

    IGP IGP MP-BGP VRF

    12. MP-BGP

    :PE-CE IGP MP-BGP

    1 R1 RIP MP-BGP:

    r1(config)#router bgp 100

    r1(config-router)#address-family ipv4 vrf vpn1

    r1(config-router-af)#redistribute rip

  • www.china-ccie.com

    108 159

    2 R3 OSPP MP-BGP:

    r3(config)#router bgp 100

    r3(config-router)#address-family ipv4 vrf vpn1

    r3(config-router-af)#redistribute ospf 100

    13. MP-BGP

    :MP-BGP IGP

    1 R1 MP-BGP VRF:

    r1#sh ip bgp vpnv4 all

    BGP table version is 9, local router ID is 1.1.1.1

    Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

    r RIB-failure, S Stale

    Origin codes: i - IGP, e - EGP, ? - incomplete

    Network Next Hop Metric LocPrf Weight Path

    Route Distinguisher: 100:1 (default for vrf vpn1)

    *> 10.1.1.0/24 14.1.1.4 1 32768 ?

    *> 14.1.1.0/24 0.0.0.0 0 32768 ?

    *>i36.1.1.0/24 3.3.3.3 0 100 0 ?

    *>i192.168.1.6/32 3.3.3.3 65 100 0 ?

  • www.china-ccie.com

    109 159

    r1#

    :

    2 R3 MP-BGP VRF:

    r3#sh ip bgp vpnv4 all

    BGP table version is 9, local router ID is 3.3.3.3

    Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

    r RIB-failure, S Stale

    Origin codes: i - IGP, e - EGP, ? - incomplete

    Network Next Hop Metric LocPrf Weight Path

    Route Distinguisher: 100:1 (default for vrf vpn1)

    *>i10.1.1.0/24 1.1.1.1 1 100 0 ?

    *>i14.1.1.0/24 1.1.1.1 0 100 0 ?

    *> 36.1.1.

    0/24 0.0.0.0 0 32768 ?

    *> 192.168.1.6/32 36.1.1.6 65 32768 ?

    r3#

    14. VRF

    :MP-BGP VRF

  • www.china-ccie.com

    110 159

    1 R1 VRF

    r1#show ip route vrf vpn1

    Routing Table: vpn1

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    36.0.0.0/24 is subnetted, 1 subnets

    B 36.1.1.0 [200/0] via 3.3.3.3, 00:02:50

    10.0.0.0/24 is subnetted, 1 subnets

    R 10.1.1.0 [120/1] via 14.1.1.4, 00:00:04, Serial1/1

    192.168.1.0/32 is subnetted, 1 subnets

    B 192.168.1.6 [200/65] via 3.3.3.3, 00:02:50

    14.0.0.0/24 is subnetted, 1 subnets

  • www.china-ccie.com

    111 159

    C 14.1.1.0 is directly connected, Serial1/1

    r1#

    :PE R1 VRF VRF

    2 R3 VRF

    r3#show ip route vrf vpn1

    Routing Table: vpn1

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    36.0.0.0/24 is subnetted, 1 subnets

    C 36.1.1.0 is directly connected, Serial1/0

    10.0.0.0/24 is subnetted, 1 subnets

  • www.china-ccie.com

    112 159

    B 10.1.1.0 [200/1] via 1.1.1.1, 00:04:57

    192.168.1.0/32 is subnetted, 1 subnets

    O 192.168.1.6 [110/65] via 36.1.1.6, 00:04:01, Serial1/0

    14.0.0.0/24 is subnetted, 1 subnets

    B 14.1.1.0 [200/0] via 1.1.1.1, 00:04:57

    r3#

    :PE R1 VRF VRF

    15. CE

    : PE PE CE

    CE

    1 CE R4

    r4#sh ip route

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

  • www.china-ccie.com

    113 159

    Gateway of last resort is not set

    36.0.0.0/24 is subnetted, 1 subnets

    R 36.1.1.0 [120/1] via 14.1.1.1, 00:00:26, Serial1/1

    10.0.0.0/24 is subnetted, 1 subnets

    C 10.1.1.0 is directly connected, Serial1/0

    192.168.1.0/32 is subnetted, 1 subnets

    R 192.168.1.6 [120/1] via 14.1.1.1, 00:00:26, Serial1/1

    14.0.0.0/24 is subnetted, 1 subnets

    C 14.1.1.0 is directly connected, Serial1/1

    r4#

    r4#

    :CE R4

    2 CE R6

    r6#sh ip route

    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP

    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

    E1 - OSPF external type 1, E2 - OSPF external type 2

    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2

  • www.china-ccie.com

    114 159

    ia - IS-IS inter area, * - candidate default, U - per-user static route

    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    36.0.0.0/24 is subnetted, 1 subnets

    C 36.1.1.0 is directly