HuaWei ❀ 配置靜態LSP

配置靜態LSP

如下圖所示,LSR A、LSR B、LSR C、LSR D爲骨幹網絡,要求在骨幹網上創建公網隧道來承載L2VPN業務,其中LSR A到LSR D的路徑爲LSR A-LSR B-LSR D,從LSR D-LSR C-LSR A;
在這裏插入圖片描述
配置接口IP地址:

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24

配置OSPF協議:

[r1]ospf 100
[r1-ospf-100]area 0
[r1-ospf-100-area-0.0.0.0]network 1.1.1.1 0.0.0.0 
[r1-ospf-100-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[r1-ospf-100-area-0.0.0.0]network 14.1.1.0 0.0.0.255
[r1-ospf-100-area-0.0.0.0]quit
[r1-ospf-100]quit

配置節點使用MPLS功能:

[r1]mpls lsr-id 1.1.1.1
[r1]mpls

配置接口MPLS功能:

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]mpls

配置LSR A-LSR D的靜態LSP:

[r1]static-lsp ingress atod destination 4.4.4.4 32 nexthop 12.1.1.2 out-label 20
[r2]static-lsp transit atod incoming-interface g0/0/0 in-label 20 nexthop 23.1.1.2 out-label 40
[r3]static-lsp egress atod incoming-interface g0/0/1 in-label 40

配置LSR D-LSR A的靜態LSP:

[r3]static-lsp ingress dtoa destination 1.1.1.1 32 nexthop 34.1.1.2 out-label 30
[r4]static-lsp transit dtoa incoming-interface g0/0/0 in-label 30 nexthop 14.1.1.1 out-label 60
[r1]static-lsp egress dtoa incoming-interface g0/0/1 in-label 60

查看配置結果:

[r3]display mpls static-lsp
TOTAL          :        2       STATIC LSP(S)
UP             :        2       STATIC LSP(S)
DOWN           :        0       STATIC LSP(S)
Name                FEC                I/O Label    I/O If                Status
atod                -/-                40/NULL      GE0/0/1/-             Up    
dtoa                1.1.1.1/32         NULL/30      -/GE0/0/0             Up 

[r2]display mpls static-lsp verbose 
No             :        1 
LSP-Name       :        atod
LSR-Type       :        Transit 
FEC            :        -/-
In-Label       :        20
Out-Label      :        40
In-Interface   :        GigabitEthernet0/0/0
Out-Interface  :        GigabitEthernet0/0/1
NextHop        :        23.1.1.2
Static-Lsp Type:        Normal
Lsp Status     :        Up
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章