手机站
网通分站
电信主站
密 码:
用户名:
当前位置 : 主页>网络知识>Cisco技术>列表

Cisco IOS Cookbook 中文精简版第二十六章MPLS

来源:互联网 作者:west263.com 时间:2008-02-23
西部数码-全国虚拟主机10强!40余项虚拟主机管理功能,全国领先!双线多线虚拟主机南北访问畅通无阻!免费赠送企业邮局,.CN域名,自助建站480元起,免费试用7天,满意再付款! P4主机租用799元/月.月付免压金!

26.1. 配置基本的MPLS P路由器

提问 配置MPLS核心网络里面的P路由器

回答

Router-P1#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

Router-P1(config)#ip cef

Router-P1(config)#mpls ip

Router-P1(config)#interface FastEthernet0/0

Router-P1(config-if)#description connection to Router-PE2

Router-P1(config-if)#ip address 10.1.2.11 255.255.255.0

Router-P1(config-if)#mpls ip

Router-P1(config-if)#exit

Router-P1(config)#interface Serial0/0

Router-P1(config-if)#description connection to Router-PE1

Router-P1(config-if)#ip address 10.1.1.14 255.255.255.252

Router-P1(config-if)#mpls ip

Router-P1(config-if)#exit

Router-P1(config)#interface Serial0/1

Router-P1(config-if)#description connection to Router-PE3

Router-P1(config-if)#ip address 10.1.1.10 255.255.255.252

Router-P1(config-if)#mpls ip

Router-P1(config-if)#exit

Router-P1(config)#interface Loopback0

Router-P1(config-if)#ip address 10.0.0.11 255.255.255.255

Router-P1(config-if)#exit

Router-P1(config)#router ospf 99

Router-P1(config-router)#router-id 10.0.0.11

Router-P1(config-router)#network 10.0.0.0 0.255.255.255 area 0

Router-P1(config-router)#exit

Router-P1(config)#end

Router-P1#

注释 对于P路由器就是启用CEF和在端口启用MPLS,对于tag-switching ip instead mpls ip两个命令都基本一致,对于是否配置ldp或者tdp也不是必要的,路由器会自动适应。有三个验证命令:

Router-P1#show mpls interfaces

Interface IP Tunnel Operational

FastEthernet0/0 Yes (tdp) No Yes

Serial0/0 Yes (tdp) No Yes

Serial0/1 Yes (tdp) No Yes

Router-P1#show mpls ldp neighbor

Peer TDP Ident: 10.0.0.2:0; Local TDP Ident 10.0.0.11:0

TCP connection: 10.0.0.2.711 - 10.0.0.11.28185

State: Oper; PIEs sent/rcvd: 0/82; Downstream

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!