- 经验
- 2
- 分贝
- 0
- 家园分
- 93
- 在线时间:
- 0 小时
- 最后登录:
- 2017-4-25
- 帖子:
- 1
- 精华:
- 0
- 注册时间:
- 2007-7-4
- UID:
- 170289
注册:2007-7-4
|
发表于 2017-4-25 01:12:48
|显示全部楼层
1.实验环境
- 设备互联网段为10.1.xy.0/24,其中xy为设备编号,x小y大
- 所有设备的loopback0地址空间为x.x.x.x/32,x为设备编号
- 全网运行OSPF,宣告直连和loopback接口
- R3为ABR,连接area0及area1
- 在R1上建立一个TE Tunnel,源为自身的loopback0,目的为R4的4.4.4.4
2.实验步骤
- 完成基本的IP配置(配置省略)
- 所有路由器运行OSPF
- 全局激活MPLS TE tunnel,并设定MPLS 标签空间
- 为每台路由器的OSPF激活MPLS TE的扩展,并且手工设置用于MPLS TE 的RouterID
- 每台路由器的接口都激活RSVP及MPLS TE tunnel的支撑
- 在R1上完成MPLS TE的配置
- 测试数据流的传输过程,观察现象
3.配置命令
R2的配置如下(所有配置都省去了接口IP的配置):
Ip cef
mpls traffic-eng tunnels
mpls label range 200 299
!
router ospf 1
router-id 2.2.2.2
network 10.1.12.2 0.0.0.0 area 0
network 10.1.23.2 0.0.0.0 area 0
mpls traffic-eng router-id loopback0
mpls traffic-eng area 0
!
interface eth0 0/0
mpls traffic-eng tunnels
ip rsvp bandwidth
interface eth0 1/0
mpls traffic-eng tunnels
ip rsvp bandwidth
(原创博文,红茶三杯 http://weibo.com/vinsoney 版权所有,转载保留原编辑信息及出处)
R3的配置如下(注意,area0和area1都要激活MPLS TE):
Ip cef
mpls traffic-eng tunnels
mpls label range 300 399
!
router ospf 1
router-id 3.3.3.3
network 10.1.34.3 0.0.0.0 area 1
network 10.1.23.2 0.0.0.0 area 0
mpls traffic-eng router-id loopback0
mpls traffic-eng area 0
mpls traffic-eng area 1 !!注意area0和area1都要激活MPLS TE
!
interface eth0 0/0
mpls traffic-eng tunnels
ip rsvp bandwidth
interface eth0 1/0
mpls traffic-eng tunnels
ip rsvp bandwidth
R4的配置如下
Ip cef
mpls traffic-eng tunnels
mpls label range 400 499
!
router ospf 1
router-id 4.4.4.4
network 10.1.34.4 0.0.0.0 area 1
network 10.1.45.4 0.0.0.0 area 1
mpls traffic-eng router-id loopback0
mpls traffic-eng area 1
!
interface eth0 0/0
mpls traffic-eng tunnels
ip rsvp bandwidth
interface eth0 1/0
mpls traffic-eng tunnels
ip rsvp bandwidth
R5的配置如下
Ip cef
mpls traffic-eng tunnels
mpls label range 500 599
!
router ospf 1
router-id 5.5.5.5
network 5.5.5.5 0.0.0.0 area 1
network 10.1.45.5 0.0.0.0 area 1
mpls traffic-eng router-id loopback0
mpls traffic-eng area 1
!
interface eth0 0/0
mpls traffic-eng tunnels
ip rsvp bandwidth
接下去在R1上配置:
Ip explicit R1toR5
next-address 10.1.12.2 !!本区域内直接用strict下一跳
next-address 10.1.23.3
next-address loose 10.1.34.4 !!跨区域的话必须用loose下一跳
next-address loose 10.1.45.5 !!这条就可要可不要了,你懂的
!
interface Tunnel0
ip unnumbered Loopback0
tunnel destination 5.5.5.5
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 7 7
tunnel mpls traffic-eng bandwidth 50000
tunnel mpls traffic-eng path-option 10 explicit name R1toR5
(原创博文,红茶三杯 http://weibo.com/vinsoney 版权所有,转载保留原编辑信息及出处)
R1#show mpls traffic-eng tunnels
Name: R1_t0 (Tunnel0) Destination: 5.5.5.5
Status:
Admin: up Oper: up Path: valid Signalling: connected
path option 10, type explicit test (Basis for Setup, path weight 20)
Config Parameters:
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: disabled LockDown: disabled Loadshare: 0 bw-based
auto-bw: disabled
Active Path Option Parameters:
State: explicit path option 10 is active
BandwidthOverride: disabled LockDown: disabled Verbatim: disabled
InLabel : -
OutLabel : Ethernet0/0, 201
RSVP Signalling Info:
Src 1.1.1.1, Dst 5.5.5.5, Tun_Id 0, Tun_Instance 9
RSVP Path Info:
My Address: 10.1.12.1
Explicit Route: 10.1.12.2 10.1.23.2 10.1.23.3 10.1.34.4*
10.1.45.5*
Record Route:
Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
RSVP Resv Info:
Record Route: 10.1.23.2 10.1.34.3 10.1.45.4 10.1.45.5
Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
History:
Tunnel:
Time since created: 11 minutes, 42 seconds
Time since path change: 10 seconds
Number of LSP IDs (Tun_Instances) used: 9
Current LSP:
Uptime: 10 seconds
Selection: reoptimization
Prior LSP:
ID: path option 10 [8]
Removal Trigger: configuration changed
(原创博文,红茶三杯 http://weibo.com/vinsoney 版权所有,转载保留原编辑信息及出处)
|
|