
本帖最后由 宅男女神 于 2016-1-7 15:30 编辑 思科中文 技术配置手册 红盟过客_mpls_V-P-N自学命令与配置手册
课程介绍、目录及截图:
思科中文 技术配置手册 红盟过客_mpls_V-P-N自学命令与配置手册
ce2(config)#ip cef
ce2(config)#end
第四步,增加ce 到pe 的路由。可以是静态,ospf eigrp 或是ebgp ripv2
ce1(config)#ip route 5.5.5.5 255.255.255.255 192.168.1.2
pe1(config)#ip route 1.1.1.1 255.255.255.255 192.168.1.1
pe2(config)#ip route 5.5.5.5 255.255.255.255 192.168.2.2
ce2(config)#ip route 1.1.1.1 255.255.255.255 192.168.2.1
第五步,将静态路由重分布到ospf 中。注意,这里是用来验证mpls 的lable 交换。
pe1(config)#router ospf 10
pe1(config-router)#red static sub
pe1(config-router)#end
pe2(config)#router ospf 10
pe2(config-router)#red static subnets
pe2(config-router)#end
验证现在的路由是基于每一跳
ce1#ping 5.5.5.5 so 1.1.1.1 由源地址为1.1.1.1 去ping 目标5.5.5.5。注意有的ios 不支
持。
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/47/88 ms
pe1#sh mpls ldp nei
因为没有起用mpls 所以没有ldp 邻居
ce1#trace
Protocol [ip]:
Target IP address: 5.5.5.5
Source address: 1.1.1.1
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]:
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
版权归原作者所有 本资料只供试读 更多资源请访问 攻城狮论坛 http://bbs.vlan5.com/
攻城狮论坛(技术+生活)群 2258097 CCNA|CCNP免费答疑题库 284340425
12
Tracing the route to 5.5.5.5
1 192.168.1.2 12 msec 32 msec 40 msec
2 10.1.1.2 20 msec 20 msec 16 msec
3 10.1.1.6 40 msec 88 msec 40 msec
4 192.168.2.2 84 msec * 36 msec
可以看到,因为没有起用mpls. 虽然能ping 通5.5.5.5 但是还是传统的跳。先经过
192.168.1.2.然后到达10.1.1.2 在经过10.1.1.6 最后一台路由器是192.168.2.2,到达
5.5.5.5
通过这个实验可以看到,没有启用mpls 的路由是如何一跳一跳到达目标的。
第六步启用mpls ip 注意,是在pe 与p 相连的接口上启用mpls ip.
pe1(config)#int f0/1
pe1(config-if)#mpls ip
pe1(config-if)#end
p(config)#int f0/0
p(config-if)#mpls ip
p(config-if)#int f0/1
p(config-if)#mpls ip
p(config-if)#end
pe2(config)#int f0/0
pe2(config-if)#mpls ip
pe2(config-if)#end
查看ldp 邻居
pe1#sh mpls ldp nei
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0 可以看到ldp 邻居及ldp id
TCP connection: 3.3.3.3.41057 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 10/9; Downstream
Up time: 00:01:27
LDP discovery sources:
FastEthernet0/1, Src IP addr: 10.1.1.2
Addresses bound to peer LDP Ident:
10.1.1.5 10.1.1.2 3.3.3.3
p#sh mpls ldp nei
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0
TCP connection: 2.2.2.2.646 - 3.3.3.3.41057
State: Oper; Msgs sent/rcvd: 9/10; Downstream
下载链接:
|
|