天天看点

mpls的基本部署

配置MPLS的几个步骤:

1、启用CEF

2、指定使用的标签分发协议    (可选)

3、MPLS LDP router-id lo0  fo强制更改 (可选)

4、MPLS label range 200

299  (可选)

5、运行LDP

6、修改MTU值   (可选)

查询命令:

show mpls

interfaces       //查看启用MPLS的接口

show mpls ldp

neighbor     //查看LDP的邻居表

bindings     //查看LIB表

forwarding-table    //查看标签转发表LFIB

show mpls ip

binding       //可以直接看到一条路由的入标签和出标签

show ip cef                //查看FIB表

show mpls ldp discovery

detail      //可看到transport-address

基本命令:

rouer(config)#ip cef

rouer(config)#int s0/0

rouer(config-if)#mpls

ip    //在接口下启用MPLS

可选命令:

rouer(config)#mpls

label protocol ldp  //指定使用LDP

rouer(config)#mpls ldp router-id lo0   //指定lo0为router-id

继续阅读