当前位置:网站首页>MPLS basic experiment configuration
MPLS basic experiment configuration
2022-07-26 03:20:00 【Network siege lion summary】
MPLS advantage
- MPLS Is to forward data through tags , Speed up data forwarding efficiency .
- MPLS It can carry many different types of traffic .
- MPLS Be able to set the pre programmed fallback path , It can quickly switch the failure path .
- MPLS Be able to allocate traffic QoS function .
The topology

Experiment explanation
OSPF To configure , Ensure intra network communication
- This time MPLS Basic experiments include 4 Router , Use OSPF Dynamic routing protocol ensures the communication within the network , The following is OSPF Configuration of .
R1:
int g0/0/0
ip add 12.1.1.1 24
interface LoopBack0
ip address 1.1.1.1 32
ospf 1 router-id 1.1.1.1
area 0
network 1.1.1.1 0.0.0.0
network 12.1.1.0 0.0.0.255
R2:
int g0/0/0
ip add 12.1.1.2 24
interface LoopBack0
ip address 2.2.2.2 32
int g0/0/1
ip add 23.1.1.2 24
ospf 1 router-id 2.2.2.2
area 0
network 2.2.2.2 0.0.0.0
network 12.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
R3:
int g0/0/0
ip add 23.1.1.3 24
interface LoopBack0
ip address 3.3.3.3 32
int g0/0/1
ip add 34.1.1.3 24
ospf 1 router-id 3.3.3.3
area 0
network 3.3.3.3 0.0.0.0
network 34.1.1.0 0.0.0.255
network 23.1.1.0 0.0.0.255
R4:
int g0/0/0
ip add 34.1.1.4 24
interface LoopBack0
ip address 4.4.4.4 32
ospf 1 router-id 4.4.4.4
area 0
network 4.4.4.4 0.0.0.0
network 34.1.1.0 0.0.0.255
- Check it out ospf Configuration is successful :


To configure MPLS
R1:
mpls lsr-id 1.1.1.1 // Configure label switching router id Number
mpls // Enable MPLS
q
mpls ldp // Enable Label Distribution Protocol
q
int g0/0/0 // Enter the interface and enable it again MPLS
mpls
mpls ldp
q
R2:
mpls lsr-id 2.2.2.2
mpls
q
mpls ldp
q
int g0/0/0
mpls
mpls ldp
q
int g0/0/1
mpls
mpls ldp
q
R3:
mpls lsr-id 3.3.3.3
mpls
q
mpls ldp
q
int g0/0/0
mpls
mpls ldp
q
int g0/0/1
mpls
mpls ldp
q
R4:
mpls lsr-id 4.4.4.4
mpls
q
mpls ldp
q
int g0/0/0
mpls
mpls ldp
q
- verification MPLS Configuration is successful :
Use command dis mpls ldp peer View neighbor status ,R1 The neighbor has been successfully matched 2.2.2.2, That's the router R2, Find out the source is G0/0/0 mouth .
- R2 The router found two neighbors , The discovery sources are two interfaces G0/0/0 and G0/0/1.

- Use command
dis mpls lspCheck the label exchange protocol and label number .

- Use command
tracert lsp ip 4.4.4.4 32Check the tag status in the forwarding path , You can see that there was no label at first , To 12.1.1.2 When pressing a label 1026, To the last 34.1.1.4 Time label is 3, And the next jump type yes egress, Represents the next hop peel label , Data arrives 4.4.4.4.

- You can also see that the tag in the packet is 1026.

边栏推荐
- Summary of Huawei virtualization fusioncompute knowledge points
- Cloud native guide what is cloud native infrastructure
- Opencv报错:(parameter or structure field))Unrecognized or unsupported array type in functon ‘cvGetMat‘
- LeetCode·
- Canvas -- draw text -- modification of pie chart
- dataframe整理:datetime格式分拆;删除特定行;分组整合。
- [experience sharing] strong recommendation - screenshot gadget FastStone capture (FSC)
- Canvas - ECG design and how to clean the canvas
- 2022-07-21 group 4 polymorphism
- What are you interviewing for in a big factory? It's worth watching (I)
猜你喜欢

Intensive reading of the paper -yolov1:you only look once:unified, real time object detection

VR panoramic shooting and production of business center helps businesses effectively attract people

在混合云中管理数据库:八个关键注意事项

Etcdv3 actual combat (III) -prevkv description and related operations

QT笔记——临时的悬浮窗口

Opencv 以指定格式保存图片

ByteDance (Tiktok) software test monthly salary 23K post, technical two-sided interview questions are newly released

UDP和TCP可以使用同一个端口吗?

Use eventlog analyzer for log forensics analysis

称霸薪酬榜!什么行业大有“钱”途?
随机推荐
记一次SQL优化
2022-07-21 第四小组 多态
CMD CPM command summary
The difference between the world wide web, the Internet and the Internet
Is the galaxy VIP account opened by qiniu safe?
Easyexcel sets row hiding to solve the problem of sethidden (true) invalidation
离线数据仓库从0到1-阶段二软件安装
Service gateway (zuul)
Leetcode · daily question · 919. complete binary tree inserter · hierarchy traversal · BFS
What are you interviewing for in a big factory? It's worth watching (I)
els 回调函数、退出消息
Execution process behind shell commands
URDF 语法详解
tf.truncated_normal()用法
js中数组排序的方法有哪些
Managing databases in a hybrid cloud: eight key considerations
Alibaba Sentinel - cluster traffic control
STM32 - DMA notes
在混合云中管理数据库:八个关键注意事项
Why did Mr. Cao, a productionist in the field of high-end tea, choose Ruifeng L6 max?