好消息,超酷的在线虚拟网络实验室上线了!点击开始实验

为获得更好的浏览效果,建议您使用 Firefox 或者 Chrome 浏览器



MSR系列路由器

MPLS TE Static-cr-lsp功能的配置

关键字:MSR;MPLS;TE;Static-cr-lsp

一、组网需求

RTARTBRTC建立一条RTARTC的静态CR-LSP

设备清单:MSR系列路由器3

二、组网图:

三、配置步骤:

设备和版本:MSR系列、Version 5.20, Release 1509

RTA配置

#

 router id 1.1.1.1

#

mpls lsr-id 1.1.1.1

#

mpls

 //全局使能MPLS TE

 mpls te

#

interface Ethernet0/0

 port link-mode route

 description connects to RTB

 ip address 1.2.0.1 255.255.255.0

mpls

//接口使能MPLS TE

 mpls te

#

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

#

//用于流量工程的Tunnel

interface Tunnel0

 ip address 1.3.0.1 255.255.255.0

 //指定隧道协议

 tunnel-protocol mpls te

 //指定隧道终点

 destination 3.3.3.3

 //指定TE的信令协议为static

 mpls te signal-protocol static

//使TE生效

 mpls te commit

#

ospf 1

 area 0.0.0.0

  network 1.1.1.1 0.0.0.0

  network 1.2.0.0 0.0.0.255

#

 //引入TE隧道流量的静态路由

ip route-static 3.3.3.3 255.255.255.255 Tunnel0 preference 1 description te-lsp

#

 //建立Ingress Static-cr-lsp

static-cr-lsp ingress Tunnel0 destination 3.3.3.3 nexthop 1.2.0.2 out-label 20 bandwidth bc0 0

#

RTB配置

#

router id 2.2.2.2

#

mpls lsr-id 2.2.2.2

#

mpls

//全局使能TE

 mpls te

#

interface Ethernet0/0

 port link-mode route

 description connects to RTA

 ip address 1.2.0.2 255.255.255.0

 mpls

//接口使能TE

 mpls te

#

interface Ethernet0/1

 port link-mode route

 description connects to RTC

 ip address 2.3.0.2 255.255.255.0

 mpls

 //接口使能TE

 mpls te

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

#

ospf 1

 area 0.0.0.0

  network 2.2.2.2 0.0.0.0

  network 1.2.0.0 0.0.0.255

  network 2.3.0.0 0.0.0.255

#

//建立一条静态transit Static-cr-lsp

static-cr-lsp transit ac incoming-interface Ethernet0/0 in-label 20 nexthop 2.3.0.3 out-label 30 bandwidth bc0 0

#

RTC配置

#

router id 3.3.3.3

#

mpls lsr-id 3.3.3.3

#

mpls

 //全局使能TE

 mpls te

#

interface LoopBack0

 ip address 3.3.3.3 255.255.255.255

#

interface Ethernet0/0

 port link-mode route

 description connects to RTB

 ip address 2.3.0.3 255.255.255.0

 mpls

 //接口使能TE

 mpls te

#

ospf 1

 area 0.0.0.0

  network 3.3.3.3 0.0.0.0

  network 2.3.0.0 0.0.0.255

#

 //定义一条静态egress Static-cr-lsp

 static-cr-lsp egress ac incoming-interface Ethernet0/0 in-label 30

#

四、配置关键点

1) Static-cr-LSP配置需要前后匹配

2) 全局和接口都是使能MPLS TE

X Close
X Close