当前位置:网站首页>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.

边栏推荐
- ELS message loop
- [NOIP2001 普及组]装箱问题
- Canvas -- drawing of rectangle -- making of histogram
- Matlab simulation of vertical handover between MTD SCDMA and TD LTE dual networks
- LeetCode·
- 图解LeetCode——5. 最长回文子串(难度:中等)
- Opening method of win11 microphone permission
- Swin Transformer【Backbone】
- Unity快速搭建城市场景
- PXE高效批量网络装机
猜你喜欢

Leetcode · 83 biweekly match · 6128. best poker hand · simulation

经典面试问题——OOP语言的三大特征

There are a group of students in the class who have got the test results in Chinese and mathematics. Please select the students whose total score is the first

TCP experimental verification

称霸薪酬榜!什么行业大有“钱”途?

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

【创建交互式 Dice Roller 应用】

What are the methods of array sorting in JS

Alibaba Sentinel - 集群流量控制

LeetCode·83双周赛·6128.最好的扑克手牌·模拟
随机推荐
2022-07-21 study notes of group 4 self-cultivation class (every day)
ELS modify cursor, modify Icon
Get twice the result with half the effort: learn the web performance test case design model
An article allows you to understand the relevance of cloud native containerization
What are you interviewing for in a big factory? It's worth watching (I)
DDD落地的那叫一个高级
Managing databases in a hybrid cloud: eight key considerations
Jsd-2204-cool shark Mall (Management Commodity module) -day02
Opencv报错:(parameter or structure field))Unrecognized or unsupported array type in functon ‘cvGetMat‘
Leetcode · daily question · 919. complete binary tree inserter · hierarchy traversal · BFS
els 初始化窗口类
UDP和TCP可以使用同一个端口吗?
ByteDance (Tiktok) software test monthly salary 23K post, technical two-sided interview questions are newly released
Day 7 hcip notes sorting (OSPF configuration)
[STL]优先级队列priority_queue
tf.constant用法
[tensorflow & pytorch] image data enhancement API
2022-07-21 第四小组 多态
Alibaba Sentinel - 集群流量控制
QT notes - Q_ Q and Q_ D learning