|
  
- UID
- 5321
- 帖子
- 369
- 积分
- 1134
- 经验
- 1134 点
- 威望
- 1 点
- 阅读权限
- 100
- 在线时间
- 2 小时
- 最后登录
- 2009-8-22
|
1#
发表于 2008-8-15 16:15
| 只看该作者
MPLS系列实验文档 NO.2
Traceroute In MPLS VPN
参考(原文档)(原文档)The Traceroute Command in MPLS
TOPO如下:
基本配置如下:
R1完整配置
!
hostname r1
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet2/0
ip address 12.1.1.1 255.255.255.0
duplex auto
speed auto
!
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
R2完整配置
!
hostname r2
ip vrf a
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip cef
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip vrf forwarding a
ip address 12.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet2/0
ip address 23.1.1.2 255.255.255.0
duplex auto
speed auto
tag-switching ip
!
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router ospf 100 vrf a
log-adjacency-changes
redistribute bgp 1 subnets
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 5.5.5.5 remote-as 1
neighbor 5.5.5.5 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 send-community extended
no auto-summary
exit-address-family
!
address-family ipv4 vrf a
redistribute ospf 100 match internal
no auto-summary
no synchronization
exit-address-family
!
R3完整配置
!
hostname r3
!
ip cef
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 23.1.1.3 255.255.255.0
duplex auto
speed auto
tag-switching ip
!
interface FastEthernet2/0
ip address 34.1.1.3 255.255.255.0
duplex auto
speed auto
tag-switching ip
!
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
R4完整配置
!
hostname r4
!
ip cef
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
ip address 34.1.1.4 255.255.255.0
duplex auto
speed auto
tag-switching ip
!
interface FastEthernet2/0
ip address 45.1.1.4 255.255.255.0
duplex auto
speed auto
tag-switching ip
!
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
R5完整配置
!
hostname r5
!
ip vrf a
rd 1:100
route-target export 1:100
route-target import 1:100
!
ip cef
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface Loopback10
no ip address
!
interface FastEthernet0/0
ip address 45.1.1.5 255.255.255.0
duplex auto
speed auto
tag-switching ip
!
interface FastEthernet2/0
ip vrf forwarding a
ip address 56.1.1.5 255.255.255.0
duplex auto
speed auto
!
router ospf 10
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
router ospf 100 vrf a
log-adjacency-changes
redistribute bgp 1 subnets
network 0.0.0.0 255.255.255.255 area 0
!
router bgp 1
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community extended
no auto-summary
exit-address-family
!
address-family ipv4 vrf a
redistribute ospf 100
no auto-summary
no synchronization
exit-address-family
!
R6完整配置
!
hostname r6
!
interface Loopback0
ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
ip address 56.1.1.6 255.255.255.0
duplex auto
speed auto
!
router ospf 100
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0
!
测试:
(1)从r1traceroute 6.6.6.6
r1#traceroute
Protocol [ip]:
Target IP address: 6.6.6.6
Source address: 1.1.1.1
Numeric display [n]:
Timeout in seconds [3]:
Probe count [3]: 1
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Port Number [33434]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Type escape sequence to abort.
Tracing the route to 6.6.6.6
1 12.1.1.2 44 msec
2 23.1.1.3 [MPLS: Labels 18/21 Exp 0] 248 msec
3 34.1.1.4 [MPLS: Labels 17/21 Exp 0] 212 msec
4 56.1.1.5 [MPLS: Label 21 Exp 0] 136 msec
5 56.1.1.6 248 msec
R1并没有运行mpls,它是怎么跟踪到标签的(注意有的IOS版本可以识别,有的不能识别)我们抓一下包,看看R1收到的ICMP包中是否带有标签的标识,注意请使用比较新的抓包工具,这样才能查看到MPLS Extensions
|
附件: 您所在的用户组无法下载或查看附件
|