实验拓扑
配置接口地址
配置OSPF协议
测试网络连通性
配置动态MPLS
AR1:
[R1]mpls lsr-id 1.1.1.1 [R1]mpls [R1-mpls]mpls ldp [R1-GigabitEthernet0/0/0]mpls [R1-GigabitEthernet0/0/0]mpls ldp
AR2
[R2]mpls lsr-id 2.2.2.2 [R2]mpls [R2-mpls]mpls ldp [R2-GigabitEthernet0/0/0]mpls [R2-GigabitEthernet0/0/0]mpls ldp [R2-GigabitEthernet0/0/1]mpls [R2-GigabitEthernet0/0/1]mpls ldp
AR3
[R3]mpls lsr-id 3.3.3.3 [R3]mpls [R3-mpls]mpls ldp [R3-GigabitEthernet0/0/0]mpls [R3-GigabitEthernet0/0/0]mpls ldp [R3-GigabitEthernet0/0/1]mpls [R3-GigabitEthernet0/0/1]mpls ldp
AR4
[R4]mpls lsr-id 4.4.4.4 [R4]mpls [R4-mpls]mpls ldp [R4-GigabitEthernet0/0/0]mpls [R4-GigabitEthernet0/0/0]mpls ldp [R4-GigabitEthernet0/0/1]mpls [R4-GigabitEthernet0/0/1]mpls ldp
查看lsp