MPLS 配置笔记

来源:互联网 发布:ubuntu系统字体 编辑:程序博客网 时间:2024/05/22 06:05

90年代初,随着Internet的快速普及,由于当时硬件技术的限制,采用最长匹配查找的IP技术已经成为限制网络转发性能的一大瓶颈。而异步传输模式ATM(Asynchronous Transfer Mode)技术采用定长标签,并且只需要维护比路由表规模小得多的标签表,能够提供比IP路由方式高得多的转发性能。

传统的IP技术简单,但性能受到限制。ATM技术性能高,但其复杂的控制信令和高昂的部署成本使得它很难普及。多协议标签交换技术MPLS(Multiprotocol Label Switching)技术就是在这种背景下产生的,它把IP和ATM的优势很好地结合在一起。

MPLS最初是为了提高设备的转发速度而提出的。随着ASIC(Application Specific Integrated Circuit)技术的发展,路由查找速度已经不是阻碍网络发展的瓶颈。这使得MPLS在提高转发速度方面不再具备明显的优势。但是MPLS支持多层标签、转发平面面向连接和控制平面面向无连接的特性,使其在VPN(Virtual Private Network)、流量工程、QoS(Quality of Service)等方面得到广泛应用。

配置案例:



1. mpls 配置的前提是首先配置 mpls lsr-id 不然全局与接口都不能使能MPLS

2. 

[LSRA] static-lsp ingress RAtoRC destination 4.4.4.9 32 nexthop 10.1.1.2 out-label 20

# 配置Transit LSRB。

[LSRB] static-lsp transit RAtoRC incoming-interface ethernet 1/0/0 in-label 20 nexthop 10.2.1.2 out-label 40

# 配置Egress LSRC。

[LSRC] static-lsp egress RAtoD incoming-interface ethernet 1/0/0 in-label 40
注意: lsr-name 只有本地有效 ,故在LSRC上配置为 RAtoD 与LSRA、LSRB上配置的名称 RAtoRC不一致,也可以。
同时 ,LSP 路径是单向的,配置完去方向还要配置回来方向。
在LSRC上配置:
static-lsp ingress RCtoA destination 1.1.1.9 32 nexthop 10.2.1.1 out-label 30
在LSRB上配置:
static-lsp transit RCtoRA incoming-interface g0/0/1 in-label 30 nexthop 10.1.1.1 out-label 60
在LSRA上配置:
static-lsp egress RCtoRA incoming-interface g0/0/0 in-label 60 
配置完即可 ping通 。
Ping lsp ip 1.1.1.9 32 测试即可。
0 0
原创粉丝点击