实验步骤

步骤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): xmit/recv

Enabled: Interface config

Hello interval: 5000 ms; Transport IP addr: 4.4.4.4

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

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

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

TCP
connection: 5.5.5.5.55110 - 4.4.4.4.646

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

Up
time: 00:18:28

LDP
discovery sources:

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

remote
binding: tsr: 4.4.4.4:0, tag: 401

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

tib entry: 5.5.5.0/24, rev 10

local
binding: tag: 203

remote
binding: tsr: 3.3.3.3:0, tag: 302

remote
binding: tsr: 4.4.4.4:0, tag: 403

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

R4

R4#show mpls ldp bindings

tib entry: 2.2.2.0/24, rev 4

local
binding: tag: 401

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

remote
binding: tsr: 5.5.5.5:0, tag: 500

…………………………

tib entry: 5.5.5.0/24, rev 10

local
binding: tag: 403

remote
binding: tsr: 2.2.2.2:0, tag: 203

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

R5#show mpls ldp bindings

tib entry: 2.2.2.0/24, rev 4

local
binding: tag: 500

remote
binding: tsr: 3.3.3.3:0, tag: 300

remote
binding: tsr: 4.4.4.4:0, tag: 401

tib entry: 5.5.5.0/24, rev 10

local
binding: tag: imp-null

remote
binding: tsr: 3.3.3.3:0, tag: 302

remote
binding: tsr: 4.4.4.4:0, tag: 403

此时利用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

Local Outgoing Prefix Bytes tag Outgoing Next Hop

tag tag or VC or Tunnel Id switched interface

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

Local Outgoing Prefix Bytes tag Outgoing Next Hop

tag tag or VC or Tunnel Id switched interface

500 401 2.2.2.0/24 0 Fa0/0
45.45.45.4

R5#

自制mpls ldp实验的更多相关文章

  1. 自制mpls ldp实验

    实验步骤 步骤1:完成EIGRP BGP 及宣告配置 步骤2:完成LDP 的配置 过程校验 步骤1:校验和理解LDP 邻居关系的发现和邻接关系的建立 R4#show mpls ldp discover ...

  2. 自制MPLS解决路由黑洞实验

    利用mpls解决BGP路由黑洞配置命令全解析 --By Jim 什么是BGP路由黑洞? BGP规定无论路由器是否启动bgp都要无条件地转发BGP消息和更新包(凌驾于IGP之上),违背了IGP" ...

  3. 实验 MPLS LDP配置

    实验 MPLS LDP配置 一.学习目的 掌握启用和关闭MPLS的方法 掌握启用和关闭MPLS LDP配置方法 掌握使用MPLS LDP配置LSP的方法 二.拓扑图 三.场景 你是公司的网管员,公司的 ...

  4. MPLS LDP随堂笔记2

    前一天排错 Acl 1 匹配所有ospf的数据包 (目的 ospf建立邻居关系 传递路由条目) 2 放行UDP报文 让LDP邻居能互相收发HELLO包 4 放行TCP报文 让LDP邻居能够建立TCP会 ...

  5. MPLS LDP随堂笔记1

    LDP 的使用原因(对于不同协议来说) LDP的四大功能 发现邻居 hello 5s 15s 224.0.0.2 发现邻居关系 R1 UDP 646端口 R2 UDP 646端口 此时形成邻居 建立邻 ...

  6. MPLS LDP随堂笔记2

    前一天排错 Acl 1 匹配所有ospf的数据包 (目的 ospf建立邻居关系 传递路由条目) 2 放行UDP报文 让LDP邻居能互相收发HELLO包 4 放行TCP报文 让LDP邻居能够建立TCP会 ...

  7. MPLS LDP随堂笔记1

    LDP 的使用原因(对于不同协议来说) LDP的四大功能 发现邻居 hello 5s 15s 224.0.0.2 发现邻居关系 R1 UDP 646端口 R2 UDP 646端口 此时形成邻居 建立邻 ...

  8. HCIP --- MPLS BGP 实验

    实验要求: 实验拓扑: 一.配置IP地址 二.给AS 2配置OSPF 1.R2-R7配置相同: 查看路由表: 可以看到,业务网段学的是32位的 修改:在R2-R7上都修改 [R2]int loo1[R ...

  9. 自制IPsec_vpn综合实验

    实验需求 R1.R2间tunnel建立私网: Vpn网关间配置ipsec实现数据加密: 使用tunnel模式下的ESP包头封装: 使用3des加密算法,md5摘要算法: 设置NAT旁路绕行流量: 利用 ...

随机推荐

  1. PIVOT行转列

    PIVOT通过将表达式某一列中的唯一值转换为输出中的多个列来旋转表值表达式,并在必要时对最终输出中所需的任何其余列值执行聚合. 测试数据 INSERT INTO [TestRows2Columns] ...

  2. windows下Ubuntu虚拟机联网配置 + Ubuntu虚拟机代理配置

    Ubuntu虚拟机网络连接方式设置: http://blog.csdn.net/u013052460/article/details/50039937 or http://www.gezila.com ...

  3. 移动Web学习笔记(第1天)-bootstrap框架的使用

    移动web前言 移动web : 移动端手机浏览器或者微信里面浏览的网页 移动APP : 手机上需要下载安装的应用程序 1. 移动web介绍 1.1 3 天 响应式开发 一套代码运行多个终端 优点:开发 ...

  4. centos7用户,组及文件权限管理

    centos7安装过程中如果没有创建用户的话,默认只有ROOT用户,这个用户是具有最高权限的帐户,可以做任何事情,但实际生产环境中我们一般不会使用这个用户,因为权限太大了,很危险. 所以在生产环境中就 ...

  5. txt文件怎么设置默认打开是用这个EditPlus软件打开

    1.如果是正常安装的Editplus,只需要右击“txt文件”,在“打开方式”中选择“打开程序”,再点击“浏览”,找到“Editplus”打开,再将“始终使用选择的程序打开这种文件”前面的“口”选中, ...

  6. openstack中dashboard页面RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.

    环境是centos7,直接跑在服务器上. 按照官网一步步安装openstack,到验证dashborad时出错. 登录http://192.168.1.73/dashboard ,输入域名,用户名,密 ...

  7. Eclipse中的Debug

    一.Debug的基本过程 设置断点(双击待设断点左边行号处) 进入Debug模式(在待调试类上右键>调试方式,根据需求选择) 开始调试 二.Debug中的常用操作 继续执行[F8]:继续运行程序 ...

  8. Loadrunner常见错误处理方法

    1.错误 -26601: 解压缩函数(wgzMemDecompressBuffer)失败,返回代码=-5 (Z_BUF_ERROR).inSize=0.inUse=0.outUse=0 用LR做压力测 ...

  9. React Native 系列(八) -- 导航

    前言 本系列是基于React Native版本号0.44.3写的.我们都知道,一个App不可能只有一个不变的界面,而是通过多个界面间的跳转来呈现不同的内容.那么这篇文章将介绍RN中的导航. 导航 什么 ...

  10. 在Entity Framework 中用 Code First 创建新的数据库

    在Entity Framework 中用 Code First 创建新的数据库 (原文链接) 本文将逐步介绍怎样用Code First 创建新数据库,使用在代码中定义类和API中提供的特性(Attri ...