两步骤:
1。配置CEF
2。在接口上配置MPLS
可选步骤:配置MTU大小
---------------------------------------------------------------------------------
一、配置CEF
非常简单,在配置模式下输入ip cef [distributed]
Router(config)#ip cef
检验命令:
show ip cef summary
show ip cef detail
二、配置MPLS
1.在接口上开启标签交换
Router(config-if)#mpls ip
2.选择标签分发协议
在全局模式或接口模式下输入命令mpls label protocol [tdp | ldp | both]
Router(config-if)#mpls label protocol tdp
默认的,路由器用以LDP协议分发标签。
LDP is the default protocol on Cisco IOS software Release 12.4(3) and later. In the older releases, TDP was the default protocol.
检验MPLS:
show tag tdp blindings
show tag forwarding-bable
show ip cef detail
tracertroute *.*.*.*
三、(可选)配置MTU
Because MTU is not automatically increased on LAN interfaces, you have to increase it
manually using mpls mtu command.
在接口模式下命令mpls mtu bytes,例如:
Router(config-if)#mpls mtu 1512
The minimum MTU is 64 bytes. The maximum depends on the type of interface medium.