实验条件
网络拓朴
环境配置
在我的资源里可以下载(就在这篇文章的开头也可以下载)
开始配置
R1<->R2:EBGP
R2<->R5:IBGP,OSPF
R5<->R6:EBGP
配置MPLS
R2/R5:
mpls ldp router-id loopback 0
interface e0/1
mpls ip
R3/R4:
mpls ldp router-id loopback 0
interface range e0/0-1
mpls ip
R1访问R6检测结果
R1#ping 6.6.6.6 so lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, 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 = 1/1/1 ms
R1#
网络通了
通过traceroute查看:中间MPLS域的确是通过label进行交换转发的
R1#traceroute 6.6.6.6 source lo 0
Type escape sequence to abort.
Tracing the route to 6.6.6.6
VRF info: (vrf in name/id, vrf out name/id)
1 12.1