天天看點

自制mpls ldp實驗

實驗步驟

步驟1:完成EIGRP BGP 及宣告配置

步驟2:完成LDP 的配置

過程校驗

步驟1:校驗和了解LDP 鄰居關系的發現和鄰接關系的建立

R4#show mpls ldp discovery detail

Local LDP Identifier:

4.4.4.4:0

Discovery Sources:

Interfaces:

    FastEthernet0/0

(ldp): xmit/recv

Enabled: Interface config

Hello interval: 5000 ms; Transport IP addr: 4.4.4.4

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

Src IP addr: 45.45.45.5; Transport IP addr: 5.5.5.5

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

Reachable via 5.5.5.0/24

    FastEthernet0/1

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

Src IP addr: 24.24.24.2; Transport IP addr: 2.2.2.2

Reachable via 2.2.2.0/24

步驟2:校驗鄰接關系是否建立

R4#show mpls ldp neighbor

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

    TCP

connection: 2.2.2.2.646 - 4.4.4.4.58866

    State:

Oper; Msgs

sent/rcvd: 32/33; Downstream

    Up

time: 00:18:54

    LDP

discovery sources:

FastEthernet0/1, Src IP addr: 24.24.24.2

Addresses bound to peer LDP

Ident:

12.12.12.2 24.24.24.2

23.23.23.2 2.2.2.2

Peer LDP Ident: 5.5.5.5:0; Local LDP Ident 4.4.4.4:0

connection: 5.5.5.5.55110 - 4.4.4.4.646

Oper; Msgs sent/rcvd: 32/33; Downstream

time: 00:18:28

FastEthernet0/0, Src IP addr: 45.45.45.5

Addresses bound to peer LDP Ident:

45.45.45.5 56.56.56.5 35.35.35.5 5.5.5.5

步驟3:校驗LDP 的标簽配置設定、分發、關聯

3.1 檢視LIB

R2

R2#show mpls ldp bindings

tib entry: 2.2.2.0/24, rev 4

    local

binding: tag: imp-null

    remote

binding: tsr: 3.3.3.3:0, tag: 300

binding: tsr: 4.4.4.4:0, tag: 401

……………………………………

tib entry: 5.5.5.0/24, rev 10

binding: tag: 203

binding: tsr: 3.3.3.3:0, tag: 302

binding: tsr: 4.4.4.4:0, tag: 403

…………………………………

R4

R4#show mpls ldp bindings

binding: tag: 401

binding: tsr: 2.2.2.2:0, tag: imp-null

binding: tsr: 5.5.5.5:0, tag: 500

…………………………

binding: tag: 403

binding: tsr: 2.2.2.2:0, tag: 203

binding: tsr: 5.5.5.5:0, tag: imp-null

R5#show mpls ldp bindings

binding: tag: 500

此時利用show mpls ldp neighbor 擷取對端裝置共享的綁定位址

利用show ip route 檢視目标網絡真實下一跳位址

确認擁有下一跳位址和綁定位址重樣的裝置遠端标簽被關聯

3.2 檢視LFIB 确認正确的了解和分析了标簽關聯過程

R2#show mpls forwarding-table

Local Outgoing Prefix Bytes tag Outgoing Next Hop

tag tag or VC or Tunnel Id switched interface

200 400 35.35.35.0/24 0 Fa0/1 24.24.24.4

201 Pop tag 3.3.3.0/24 0 Se1/0 point2point

202 Pop tag 4.4.4.0/24 0 Fa0/1 24.24.24.4

203 403 5.5.5.0/24 0 Fa0/1

24.24.24.4

204 Pop tag 45.45.45.0/24 0 Fa0/1 24.24.24.4

R4#show mpls forwarding-table

400 Pop tag 35.35.35.0/24 0 Fa0/0 45.45.45.5

401 Pop tag 2.2.2.0/24 8444

Fa0/1 24.24.24.2

402 501 3.3.3.0/24 0 Fa0/0 45.45.45.5

201 3.3.3.0/24 0 Fa0/1 24.24.24.2

403 Pop tag 5.5.5.0/24 5258

Fa0/0 45.45.45.5

404 Pop tag 23.23.23.0/24 0 Fa0/1 24.24.24.2

R4#

R5#show mpls forwarding-table

500 401 2.2.2.0/24 0 Fa0/0

45.45.45.4

R5#