61阅读

ccie实验指南第1卷-CRS-1实验指南

发布时间:2017-08-17 所属栏目:信息与通信

一 : CRS-1实验指南

IOXR实验指南

ISIS实验

crs-058 CRS-1实验指南

6509做二层交换机

cc07-6500-4(config-if)#do sh run int ten 1/1 Building configuration...

Current configuration : 98 bytes !

interface TenGigabitEthernet1/1 switchport

load-interval 30

spanning-tree portfast edge end

crs-058 CRS-1实验指南

cc07-6500-4(config-if)#do sh run int ten 1/3

Building configuration...

Current configuration : 98 bytes

!

interface TenGigabitEthernet1/3

switchport

load-interval 30

spanning-tree portfast edge

end

ch09-crs-1的ISIS配置:

RP/0/RP0/CPU0:ch09-crs-1#sh run router isis

Fri Jul 30 22:48:25.147 AEST

router isis 100

net 00.0001.0000.0000.0002.00

address-family ipv4 unicast

metric-style wide

!

interface TenGigE1/6/0/0

address-family ipv4 unicast

!

!

interface TenGigE1/6/1/0

address-family ipv4 unicast

!

!

interface TenGigE1/6/2/0

address-family ipv4 unicast

!

!

!

Ch03-crs-1的ISIS配置

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh run router isis Fri Jul 30 22:51:23.626 AEST

router isis 100

net 00.0001.0000.0000.0001.00

address-family ipv4 unicast

metric-style wide

crs-058 CRS-1实验指南

!

interface TenGigE0/1/0/0

address-family ipv4 unicast

!

!

interface TenGigE0/1/1/0

address-family ipv4 unicast

!

!

interface TenGigE0/1/2/0

address-family ipv4 unicast

metric 100 //该接口metric大,所以优选从ten0/1/0/0学到的路由 !

!

!

分别记录CH09和CH03路由器收到的ISIS 邻居, 路由条目数目,记录路由路径。(www.61k.com]

RP/0/RP0/CPU0:ch03-crs-1#sh isis nei

Fri Jul 30 23:09:16.058 AEST

IS-IS 100 neighbors:

System Id Interface SNPA State Holdtime Type IETF-NSF

ch09-crs-1 Te0/1/0/0 0017.0e8f.25f7 Up 8 L1L2 Capable

ch09-crs-1 Te0/1/2/0 0017.0e8f.260f Up 9 L1L2 Capable

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route summ

Fri Jul 30 23:00:18.448 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552

local 5 0 0 620

static 3 0 0 372

isis 100 7500 4 0 930496

bgp 1001 0 0 0 0

ospf 100 1 0 0 180

Total 7513 4 0 932220

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route isis

Fri Jul 30 23:00:27.653 AEST

i L2 20.29.76.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

crs-058 CRS-1实验指南

i L2 20.29.77.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.78.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.79.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.80.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.81.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.82.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

RP/0/RP0/CPU0:ch09-crs-1#sh route summ

Fri Jul 30 23:00:07.902 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552

local 5 0 0 620

static 2 0 0 248

dagr 0 0 0 0

isis 100 7500 4 0 930720

bgp 1001 0 0 0 0

ospf 100 1 0 0 180

Total 7512 4 0 932320

RP/0/RP0/CPU0:ch09-crs-1#

RP/0/RP0/CPU0:ch09-crs-1#

RP/0/RP0/CPU0:ch09-crs-1#sh route isis

Fri Jul 30 23:01:33.720 AEST

i L2 20.29.76.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.77.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.78.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.79.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.80.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.81.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.82.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.83.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.84.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

RP/0/RP0/CPU0:ch09-crs-1#sh isis nei

Fri Jul 30 23:09:41.339 AEST

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

IS-IS 100 neighbors:

System Id Interface SNPA State Holdtime Type IETF-NSF ch03-crs-1 Te1/6/0/0 0012.80ae.9476 Up 24 L1L2 Capable ch03-crs-1 Te1/6/2/0 0012.80ae.948e Up 24 L1L2 Capable 0010.9400.0002 Te1/6/1/0 0010.9400.0002 Up 25 L2 Unable

crs-058 CRS-1实验指南

Total neighbor count: 3

不启用BFD for ISIS, 观察当非直连链路断掉后路由收敛效果。(www.61k.com)

非直连链路断掉情况模拟(链路断掉,但接口仍然处于UP状态

cc07-6500-4(config)#int ten 1/3

cc07-6500-4(config-if)#switchport access vlan 100

不启用BFD,需要较长时间路由(5,6秒)才能跟新到备用路

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route isis

Fri Jul 30 23:05:44.369 AEST

i L2 20.29.76.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.77.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.78.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.79.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.80.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.81.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.82.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.83.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.84.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

启用BFD for ISIS, 观察当非直连链路断掉后路由收敛效果 非直连链路断掉情况模拟(链路断掉,但接口仍然处于UP状态

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh run router isis

Fri Jul 30 22:51:23.626 AEST

router isis 100

interface TenGigE0/1/0/0

bfd minimum-interval 15 !hello包间隔

bfd multiplier 2 !bfd hello包timout数目

bfd fast-detect ipv4 !启用bfd功能

crs-058 CRS-1实验指南

address-family ipv4 unicast

!

RP/0/RP0/CPU0:ch09-crs-1#sh run router isis

Fri Jul 30 22:48:25.147 AEST

router isis 100

interface TenGigE1/6/0/0

bfd minimum-interval 15

bfd multiplier 2

bfd fast-detect ipv4

address-family ipv4 unicast

!

RP/0/RP0/CPU0:ch03-crs-1#sh bfd ipv4 session

Fri Jul 30 23:50:17.070 AEST

Interface Dest Addr Local det time(int*mult) State Echo Async -------------------- --------------- ---------------- ---------------- ---------

Te0/1/0/0 10.1.10.1 30ms(15ms*2) 4s(2s*2) UP 启用BFD,瞬时ISIS(200-300 ms)就切换到备用路 cc07-6500-4(config)#int ten 1/3

cc07-6500-4(config-if)#switchport access vlan 100

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route isis

Fri Jul 30 23:05:44.369 AEST

i L2 20.29.76.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.77.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.78.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.79.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.80.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.81.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.82.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.83.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.84.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

crs-058 CRS-1实验指南

OSPF实验

CH03 OSPF配置:

RP/0/RP0/CPU0:ch03-crs-1#sh run router ospf Fri Jul 30 23:10:49.735 AEST

router ospf 100

area 0

interface TenGigE0/1/0/0

!

interface TenGigE0/1/1/0

!

interface TenGigE0/1/2/0

!

!

!

CH09 OSPF配置:

RP/0/RP0/CPU0:ch09-crs-1#sh run router ospf Fri Jul 30 23:11:54.577 AEST

router ospf 100

area 0

interface TenGigE1/6/0/0

!

interface TenGigE1/6/1/0

!

interface TenGigE1/6/2/0

!

!

!

记录CH09路由器OSPF邻居 RP/0/RP0/CPU0:ch09-crs-1#sh ospf nei Fri Jul 30 23:16:48.564 AEST

* Indicates MADJ interface

crs-058 CRS-1实验指南

Neighbors for OSPF 100

Neighbor ID Pri State Dead Time Address Interface

10.1.10.2 1 FULL/DR 00:00:38 10.1.10.2 TenGigE1/6/0/0 Neighbor is up for 00:07:41

192.168.20.2 0 FULL/DROTHER 00:00:30 192.168.20.2 TenGigE1/6/1/0 Neighbor is up for 00:28:49

10.1.10.2 1 FULL/DR 00:00:37 10.1.12.2 TenGigE1/6/2/0 Neighbor is up for 00:29:02

Total neighbor count: 3

记录CH09 OSPF路由:

RP/0/RP0/CPU0:ch09-crs-1#sh route ospf

Fri Jul 30 23:36:55.114 AEST

O E1 30.0.0.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

O E1 30.0.1.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.2.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.3.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.4.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.5.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.6.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.7.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.8.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.9.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.10.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.11.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.12.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.13.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.14.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

RP/0/RP0/CPU0:ch09-crs-1#sh route summ

Fri Jul 30 23:37:27.425 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552

local 5 0 0 620

static 2 0 0 248

dagr 0 0 0 0

isis 100 7500 4 0 930720

bgp 1001 0 0 0 0

crs-058 CRS-1实验指南

ospf 100 51 0 0 6380 Total 7562 4 0 938520

记录CH03路由器OSPF邻居

RP/0/RP0/CPU0:ch03-crs-1#sh ospf nei

Fri Jul 30 23:17:48.576 AEST

* Indicates MADJ interface

Neighbors for OSPF 100

Neighbor ID Pri State Dead Time Address 10.1.10.1 1 FULL/BDR 00:00:37 10.1.10.1 Neighbor is up for 00:08:41

192.168.10.2 0 FULL/DROTHER 00:00:32 192.168.10.2 Neighbor is up for 00:30:37

10.1.10.1 1 FULL/BDR 00:00:39 10.1.12.1 Neighbor is up for 00:30:06

Total neighbor count: 3

RP/0/RP0/CPU0:ch03-crs-1#

记录CH03 ospf 路由:

RP/0/RP0/CPU0:ch03-crs-1#sh route summ

Fri Jul 30 23:38:32.815 AEST

Route Source Routes Backup Deleted Memory (bytes) connected 4 0 0 552 local 5 0 0 620 static 3 0 0 372 isis 100 7500 4 0 930496 bgp 1001 0 0 0 0 ospf 100 51 0 0 9180 Total 7563 4 0 941220

RP/0/RP0/CPU0:ch03-crs-1#sh route ospf

Fri Jul 30 23:38:35.885 AEST

O E1 30.0.0.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0 Interface TenGigE0/1/0/0 TenGigE0/1/1/0 TenGigE0/1/2/0

crs-058 CRS-1实验指南

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.1.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.2.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.3.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.4.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

调整CH03参数,使其优选ten0/1/0/0到达ch09后面的网络

RP/0/RP0/CPU0:ch03-crs-1#sh run router ospf

Fri Jul 30 23:41:28.634 AEST

router ospf 100

interface TenGigE0/1/2/0

cost 5 !把ten0/1/2/0接口值加大

!

!

验证ch03路由改变:

RP/0/RP0/CPU0:ch03-crs-1#sh route ospf

Fri Jul 30 23:41:02.739 AEST

O E1 30.0.0.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.1.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.2.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.3.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.4.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.5.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.6.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.7.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.8.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

crs-058 CRS-1实验指南

不配置BFD FOR OSPF, 验证路由收敛情况

非直连链路断掉情况模拟(链路断掉,但接口仍然处于UP状态

cc07-6500-4(config)#int ten 1/3

cc07-6500-4(config-if)#switchport access vlan 100

不配置BFD, 需要较长时间HELLO TIME超时,始收敛

RP/0/RP0/CPU0:ch03-crs-1#sh route ospf

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

Fri Jul 30 23:45:07.775 AEST

O E1 30.0.0.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.1.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.2.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.3.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.4.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.5.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.6.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.7.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

配置BFD FOR OSPF:

在CH09的ten1/6/0/0上启用BFD

RP/0/RP0/CPU0:ch09-crs-1#sh run router ospf 100

Fri Jul 30 23:56:19.750 AEST

router ospf 100

bfd minimum-interval 15

bfd multiplier 2

area 0

interface TenGigE1/6/0/0

bfd fast-detect

路由才开

crs-058 CRS-1实验指南

在CH03的ten0/1/0/0上启用BFD RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh run router ospf Fri Jul 30 23:57:37.569 AEST

router ospf 100

bfd minimum-interval 15

bfd multiplier 2

area 0

interface TenGigE0/1/0/0

bfd fast-detect

!

记录当前BFD状态:

RP/0/RP0/CPU0:ch09-crs-1#sh bfd ipv4 session detail

Fri Jul 30 23:55:47.895 AEST

I/f: TenGigE1/6/0/0, Location: 1/6/CPU0, dest: 10.1.10.2, src: 10.1.10.1 State: UP for 0d:0h:5m:34s, number of times UP: 1

Received parameters:

Version: 1, desired tx interval: 2 s, required rx interval: 2 s Required echo rx interval: 1 ms, multiplier: 2, diag: None

My discr: 327689, your discr: 18415626, state UP, D/F/P/C/A: 0/0/0/1/0 Transmitted parameters:

Version: 1, desired tx interval: 2 s, required rx interval: 2 s Required echo rx interval: 1 ms, multiplier: 2, diag: None

My discr: 18415626, your discr: 327689, state UP, D/F/P/C/A: 0/0/0/1/0 Timer Values:

Local negotiated async tx interval: 2 s

Remote negotiated async tx interval: 2 s

Desired echo tx interval: 15 ms, local negotiated echo tx interval: 15 ms Echo detection time: 30 ms(15 ms*2), async detection time: 4 s(2 s*2) Local Stats:

Intervals between async packets:

Tx: Number of intervals=100, min=1665 ms, max=1985 ms, avg=1815 ms Last packet transmitted 1967 ms ago

Rx: Number of intervals=100, min=1667 ms, max=2 s, avg=1852 ms Last packet received 619 ms ago

Intervals between echo packets:

Tx: Number of intervals=100, min=17 ms, max=17 ms, avg=17 ms Last packet transmitted 7 ms ago

Rx: Number of intervals=100, min=17 ms, max=17 ms, avg=17 ms Last packet received 7 ms ago

Latency of echo packets (time between tx and rx):

crs-058 CRS-1实验指南

Number of packets: 100, min=0 us, max=0 us, avg=0 us

Session owner information:

Client Desired interval Multiplier

---------------- ------------------------ --------------

isis-100 15 ms 2

ospf-100 15 ms 2

验证BFD FOR OSPF效果,模拟非直连链路断掉路由收敛时间:200ms时间, OSPF自动收敛

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route ospf

Sat Jul 31 00:02:09.132 AEST

O E1 30.0.0.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.1.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.2.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.3.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.4.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.5.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.6.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.7.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.8.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.9.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

crs-058 CRS-1实验指南

BGP实验

CH03 BGP配置:

RP/0/RP0/CPU0:ch03-crs-1#sh run route-policy pass-all Sat Jul 31 00:05:30.058 AEST

route-policy pass-all

pass

end-policy

!

RP/0/RP0/CPU0:ch03-crs-1#sh run router bgp

Sat Jul 31 00:05:35.462 AEST

router bgp 1001

bgp router-id 192.168.10.1

address-family ipv4 unicast

!

neighbor 192.168.10.2

remote-as 1

address-family ipv4 unicast

route-policy pass-all in

route-policy pass-all out

!

!

!

记录BGP路由条目数目(30万条)

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#do sh route summ Sat Jul 31 00:58:39.559 AEST

Route Source Routes Backup Deleted Memory (bytes) connected 4 0 0 552 local 5 0 0 620 static 2 0 0 248

crs-058 CRS-1实验指南

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

dagr 0 0 0 0

isis 100 7500 4 0 930720

bgp 1001 300000 0 0 37200000

ospf 100 51 0 0 6380

Total 307562 4 0 38138520

策略控制, 如下所示所有Community为 1:1的路由需要全部被过滤

RP/0/RP0/CPU0:ch09-crs-1#sh bgp 50.0.0.0

Sat Jul 31 01:00:00.555 AEST

BGP routing table entry for 50.0.0.0/24

Versions:

Process bRIB/RIB SendTblVer

Speaker 928522 928522

Last Modified: Jul 31 00:57:57.029 for 00:02:03

Paths: (1 available, best #1)

Not advertised to any peer

Path #1: Received by speaker 0

1

192.168.20.2 from 192.168.20.2 (192.168.20.2)

Origin IGP, localpref 100, valid, external, best

Community: 1:1

配置route-policy

RP/0/RP0/CPU0:ch09-crs-1#sh run route-policy GUARD_PREFIX

Sat Jul 31 01:03:37.553 AEST

route-policy GUARD_PREFIX

if community matches-any (1:1) then

drop

endif

end-policy

!

RP/0/RP0/CPU0:ch09-crs-1#sh run route-policy BGP_IN

Sat Jul 31 01:03:45.168 AEST

route-policy BGP_IN

apply GUARD_PREFIX

pass

end-policy

!

crs-058 CRS-1实验指南

把 BGP_IN应用到bgp的in方向

RP/0/RP0/CPU0:ch09-crs-1#conf t

Sat Jul 31 01:05:56.578 AEST

RP/0/RP0/CPU0:ch09-crs-1(config)#router bgp 1001

RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#nei 192.168.20.2

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr)#address-family ipv4 unicast RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#route-policy BGP_IN in

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#commi

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#exi

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr)#exi

RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#do sh route summ

Sat Jul 31 01:06:41.855 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552 local 5 0 0 620 static 2 0 0 248

dagr 0 0 0 0 isis 100 7500 4 0 930720

bgp 1001 300000 0 0 37200000 ospf 100 51 0 0 6380 Total 307562 4 0 38138520

RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#do clear bgp *

Sat Jul 31 01:06:48.267 AEST

验证路由策略生效, 30万路由变为10万条路由。[www.61k.com] RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#do sh route summ

Sat Jul 31 01:07:13.817 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552 local 5 0 0 620 static 2 0 0 248 dagr 0 0 0 0 isis 100 7500 4 0 930720

bgp 1001 100000 0 0 12400000 ospf 100 51 0 0 6380

crs-058 CRS-1实验指南

Total 107562 4 0 13338520 RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#

crs-058 CRS-1实验指南

MPLS实验

crs-058 CRS-1实验指南

6509做三层路由器, MPLS, LDP, ISIS相关配置 cc07-6500-4#sh run int ten 1/3

interface TenGigabitEthernet1/3

switchport

switchport access vlan 200

load-interval 30

spanning-tree portfast edge

end

cc07-6500-4#sh run int ten 1/1

interface TenGigabitEthernet1/1

switchport

switchport access vlan 100

load-interval 30

spanning-tree portfast edge

end

crs-058 CRS-1实验指南

cc07-6500-4#sh run int lo 0

interface Loopback0

ip address 3.3.3.3 255.255.255.255

ip router isis 100

end

cc07-6500-4#sh run int vlan 100

interface Vlan100

ip address 10.1.11.2 255.255.255.0

ip router isis 100

mpls ip

end

cc07-6500-4#sh run int vlan 200

interface Vlan200

ip address 10.1.10.2 255.255.255.0

ip router isis 100

mpls ip

end

router isis 100

net 00.0001.0000.0000.0003.00

metric-style wide

mpls label protocol ldp

mpls ldp router-id Loopback0

CH03 MPLS相关配置

RP/0/RP0/CPU0:ch03-crs-1(config-if)#do sh run int ten 0/1/0/0 Sat Jul 31 13:50:20.237 AEST

interface TenGigE0/1/0/0

cdp

ipv4 address 10.1.11.1 255.255.255.0

!

RP/0/RP0/CPU0:ch03-crs-1#sh run mpls ldp

Sat Jul 31 14:29:23.630 AEST

mpls ldp

router-id 1.1.1.1

interface TenGigE0/1/0/0

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

!

interface TenGigE0/1/2/0

crs-058 CRS-1实验指南

!

!

CH09 MPLS相关配置

RP/0/RP0/CPU0:ch09-crs-1#sh run mpls ldp

Sat Jul 31 14:29:50.350 AEST

mpls ldp

router-id 2.2.2.2

interface TenGigE1/6/0/0

!

interface TenGigE1/6/2/0

!

!

MPLS验证

cc07-6500-4#sh mpls ldp nei

Peer LDP Ident: 1.1.1.1:0; Local LDP Ident 3.3.3.3:0

TCP connection: 1.1.1.1.646 - 3.3.3.3.17018

State: Oper; Msgs sent/rcvd: 23/24; Downstream

Up time: 00:08:24

LDP discovery sources:

Vlan100, Src IP addr: 10.1.11.1

Addresses bound to peer LDP Ident:

10.66.164.239 1.1.1.1 10.1.12.2 192.168.10.1 10.66.164.240 10.1.11.1

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.34533

State: Oper; Msgs sent/rcvd: 24/23; Downstream

Up time: 00:08:22

LDP discovery sources:

Vlan200, Src IP addr: 10.1.10.1

Addresses bound to peer LDP Ident:

10.66.165.87 192.168.20.1 10.1.12.1 10.66.165.86

2.2.2.2 10.1.10.1

cc07-6500-4#sh mpls for

cc07-6500-4#sh mpls forwarding-table

Local Outgoing Prefix Bytes Label Outgoing Next Hop Label Label or Tunnel Id Switched interface 16 Pop Label 1.1.1.1/32 0 Vl100 10.1.11.1 17 Pop Label 2.2.2.2/32 1372 Vl200 10.1.10.1

crs-058 CRS-1实验指南

18 Pop Label 10.1.12.0/24 0 Vl200 10.1.10.1 19 No Label 10.66.0.0/16 0 Gi5/2 10.66.164.1 20 No Label 64.104.0.0/16 0 Gi5/2 10.66.164.1 21 Pop Label 192.168.10.0/24 0 Vl100 10.1.11.1 22 Pop Label 192.168.20.0/24 0 Vl200 10.1.10.1

RP/0/RP0/CPU0:ch03-crs-1#sh mpls ldp nei

Sat Jul 31 14:30:55.093 AEST

Peer LDP Identifier: 2.2.2.2:0

TCP connection: 2.2.2.2:55360 - 1.1.1.1:646

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 47/46

Up time: 00:23:45

LDP Discovery Sources:

TenGigE0/1/2/0

Addresses bound to this peer:

2.2.2.2 10.1.10.1 10.1.12.1 10.66.165.86 10.66.165.87 192.168.20.1

Peer LDP Identifier: 3.3.3.3:0

TCP connection: 3.3.3.3:17018 - 1.1.1.1:646

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 25/24

Up time: 00:08:48

LDP Discovery Sources:

TenGigE0/1/0/0

Addresses bound to this peer:

3.3.3.3 10.1.10.2 10.1.11.2 10.66.164.179

RP/0/RP0/CPU0:ch03-crs-1#sh mpls forwarding

Sat Jul 31 14:31:03.203 AEST

Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched ------ ----------- ------------------ ------------ --------------- ------------

16000 Pop 10.1.10.0/24 Te0/1/2/0 10.1.12.1 0 16001 Pop 192.168.20.0/24 Te0/1/2/0 10.1.12.1 0 16002 17 2.2.2.2/32 Te0/1/0/0 10.1.11.2 1436 16003 Unlabelled 10.66.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 0 16004 Unlabelled 64.104.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 9348 16006 Pop 3.3.3.3/32 Te0/1/0/0 10.1.11.2 0

crs-058 CRS-1实验指南

RP/0/RP0/CPU0:ch09-crs-1#sh mpls ldp nei

Sat Jul 31 14:31:38.666 AEST

Peer LDP Identifier: 1.1.1.1:0

TCP connection: 1.1.1.1:646 - 2.2.2.2:55360

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 47/48

Up time: 00:24:28

LDP Discovery Sources:

TenGigE1/6/2/0

Addresses bound to this peer:

1.1.1.1 10.1.11.1 10.1.12.2 10.66.164.239 10.66.164.240 192.168.10.1

Peer LDP Identifier: 3.3.3.3:0

TCP connection: 3.3.3.3:34533 - 2.2.2.2:646

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 25/25

Up time: 00:09:30

LDP Discovery Sources:

TenGigE1/6/0/0

Addresses bound to this peer:

3.3.3.3 10.1.10.2 10.1.11.2 10.66.164.179

RP/0/RP0/CPU0:ch09-crs-1#sh mpls forwarding

Sat Jul 31 14:31:42.252 AEST

Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched ------ ----------- ------------------ ------------ --------------- ------------

16000 Pop 192.168.10.0/24 Te1/6/2/0 10.1.12.2 0 16001 Pop 10.1.11.0/24 Te1/6/2/0 10.1.12.2 0 16002 Pop 1.1.1.1/32 Te1/6/2/0 10.1.12.2 0 16003 Unlabelled 64.104.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 7047 16004 Unlabelled 10.66.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 0 16006 Pop 3.3.3.3/32 Te1/6/0/0 10.1.10.2 0

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

crs-058 CRS-1实验指南

MPLS TE流量工程实验

crs-058 CRS-1实验指南

BGP路由建立

如上图所示, Testcenter 1与ch03-crs-1建立EBGP, CH03与CH09建立IBGP, Testcenter1发出5000条(40.0.0.0/24)路由到ch03.

Ch03与ch09相关的BGP配置:

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run router bgp

Sat Jul 31 15:51:05.130 AEST

router bgp 1001

bgp router-id 1.1.1.1

address-family ipv4 unicast

!

neighbor 2.2.2.2

remote-as 1001

update-source Loopback0

address-family ipv4 unicast

route-policy pass-all in

crs-058 CRS-1实验指南

route-policy pass-all out

!

!

neighbor 192.168.10.2

remote-as 1

address-family ipv4 unicast

route-policy pass-all in

route-policy pass-all out

!

!

!

RP/0/RP0/CPU0:ch09-crs-1#sh run router bgp

Sat Jul 31 15:51:33.398 AEST

router bgp 1001

bgp router-id 2.2.2.2

address-family ipv4 unicast

!

neighbor 1.1.1.1

remote-as 1001

update-source Loopback0

address-family ipv4 unicast

route-policy pass-all in

route-policy pass-all out

!

!

CH03与CH09均有5000条BGP路由

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh route summ

Sat Jul 31 15:52:23.159 AEST

Route Source Routes Backup Deleted Memory (bytes) connected 4 1 0 676 local 6 0 0 744 static 3 0 0 372 isis 100 4 4 0 992 bgp 1001 5000 0 0 620000 Total 5017 5 0 622784

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh route bgp

Sat Jul 31 15:52:29.718 AEST

B 40.0.0.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.1.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.2.0/24 [20/0] via 192.168.10.2, 00:53:12

crs-058 CRS-1实验指南

B 40.0.3.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.4.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.5.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.6.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.7.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.8.0/24 [20/0] via 192.168.10.2, 00:53:12

RP/0/RP0/CPU0:ch09-crs-1#sh route summ

Sat Jul 31 15:52:52.324 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 1 0 676

local 6 0 0 744

static 2 0 0 248

dagr 0 0 0 0

isis 100 4 4 0 1048

bgp 1001 5000 0 0 620000

Total 5016 5 0 622716

RP/0/RP0/CPU0:ch09-crs-1#sh route bgp

Sat Jul 31 15:52:58.289 AEST

B 40.0.0.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.1.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.2.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.3.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.4.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.5.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.6.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.7.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.8.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.9.0/24 [200/0] via 192.168.10.2, 00:53:40

TE隧道建立

CH09到CH03建立MPLS TE隧道(CH09-6509-CH03), 通过配置静态路由使Testcenter2打Testcenter1的5000条BGP网段流量都经过该TE隧道。[www.61k.com)

6509相关配置:

mpls traffic-eng tunnels

crs-058 CRS-1实验指南

!

interface Vlan100

mpls traffic-eng tunnels

ip rsvp bandwidth

!

interface Vlan200

mpls traffic-eng tunnels

ip rsvp bandwidth

router isis 100

metric-style wide

mpls traffic-eng router-id Loopback0

mpls traffic-eng level-2

ch09相关配置:

RP/0/RP0/CPU0:ch09-crs-1#sh run explicit-path Sat Jul 31 16:27:00.198 AEST

explicit-path identifier 1

index 10 next-address strict ipv4 unicast 10.1.10.2 index 20 next-address strict ipv4 unicast 10.1.11.1 !

RP/0/RP0/CPU0:ch09-crs-1#sh run interface tunnel-te 1 Sat Jul 31 16:27:21.454 AEST

interface tunnel-te1

ipv4 unnumbered Loopback0

destination 1.1.1.1

path-option 1 explicit identifier 1

!

RP/0/RP0/CPU0:ch09-crs-1#sh run router isis Sat Jul 31 16:27:29.532 AEST

router isis 100

net 00.0001.0000.0000.0002.00

address-family ipv4 unicast

metric-style wide

mpls traffic-eng level-2-only

mpls traffic-eng router-id Loopback0

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

RP/0/RP0/CPU0:ch09-crs-1#sh run rsvp

Sat Jul 31 16:29:24.945 AEST

rsvp

crs-058 CRS-1实验指南

interface TenGigE1/6/0/0

bandwidth

!

!

RP/0/RP0/CPU0:ch09-crs-1#sh run mpls traffic-eng

Sat Jul 31 16:29:31.362 AEST

mpls traffic-eng

interface TenGigE1/6/0/0

!

!

ch03相关配置:

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run router isis

Sat Jul 31 16:30:26.598 AEST

router isis 100

net 00.0001.0000.0000.0001.00

address-family ipv4 unicast

metric-style wide

mpls traffic-eng level-2-only

mpls traffic-eng router-id Loopback0

!

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run mpls traffic-eng

Sat Jul 31 16:30:52.752 AEST

mpls traffic-eng

interface TenGigE0/1/0/0

!

!

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run rsvp

Sat Jul 31 16:30:56.889 AEST

rsvp

interface TenGigE0/1/0/0

!

!

TE隧道功能验证

CH09到CH03建立MPLS TE隧道(CH09-6509-CH03), 通过配置静态路由使Testcenter2打Testcenter1的5000条BGP网段流量都经过该TE隧道。(www.61k.com]

crs-058 CRS-1实验指南

CH09相关配置如下:

router static

address-family ipv4 unicast

192.168.10.2/32 tunnel-te1 !所有到5000条BGP路由的下一跳均是192.168.10.2, 所以把到192.168.10.2下一跳设置为tunnel-te1,即可实现把该流量导入到TE隧道中。(www.61k.com) !

!

在testcenter建立流, 源端口TEN10/2, 目的端口TEN10/1,流源地址是TEN10/2接口地址,目的地址是TEN10/1放出的5000条BGP路由。

TCC测试脚本:LAB-mpls-te.tcc

观察6509, CH09, CH03 tunnel状态均为UP状态:

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng tunnels

Sat Jul 31 16:36:28.773 AEST

Signalling Summary:

LSP Tunnels Process: running

RSVP Process: running

Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 1635 seconds

Periodic FRR Promotion: every 300 seconds, next in 274 seconds

Auto-bw enabled tunnels: 0 (disabled)

Name: tunnel-te1 Destination: 1.1.1.1

Status:

Admin: up Oper: up Path: valid Signalling: connected

path option 1, type explicit 1 (Basis for Setup, path weight 20)

Last Signalled Error: Sat Jul 31 16:10:53 2010

Info: [2] PathErr(1,0)-(admission) at 10.1.11.1

G-PID: 0x0800 (derived from egress interface properties)

Bandwidth Requested: 0 kbps CT0

Config Parameters:

Bandwidth: 0 kbps (CT0) Priority: 7 7 Affinity: 0x0/0xffff

Metric Type: TE (default)

AutoRoute: disabled LockDown: disabled Policy class: not set

Forwarding-Adjacency: disabled

Loadshare: 0 equal loadshares

Auto-bw: disabled

Fast Reroute: Disabled, Protection Desired: None

Path Protection: Not Enabled

History:

crs-058 CRS-1实验指南

Tunnel has been up for: 00:21:26

Current LSP:

Uptime: 00:21:26

Prior LSP:

ID: path option 1 [2]

Removal Trigger: setup timed out

Path info (IS-IS 100 level-2):

Hop0: 10.1.10.2

Hop1: 10.1.11.2

Hop2: 10.1.11.1

Hop3: 1.1.1.1

Displayed 1 (of 1) heads, 0 (of 0) midpoints, 0 (of 0) tails

Displayed 1 up, 0 down, 0 recovering, 0 recovered heads

cc07-6500-4#sh mpls traffic-eng tunnels

LSP Tunnel ch09-crs-1_t1 is signalled, connection is up

InLabel : Vlan200, 24

OutLabel : Vlan100, implicit-null

RSVP Signalling Info:

Src 2.2.2.2, Dst 1.1.1.1, Tun_Id 1, Tun_Instance 3

RSVP Path Info:

My Address: 10.1.11.2

Explicit Route: 10.1.11.1 1.1.1.1

Record Route: NONE

Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

RSVP Resv Info:

Record Route: NONE

Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh mpls traffic-eng tunnels

Sat Jul 31 16:37:30.158 AEST

Signalling Summary:

LSP Tunnels Process: running

RSVP Process: running

Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 1999 seconds Periodic FRR Promotion: every 300 seconds, next in 216 seconds Auto-bw enabled tunnels: 0 (disabled)

LSP Tunnel 2.2.2.2 1 [3] is signalled, connection is up

Tunnel Name: ch09-crs-1_t1 Tunnel Role: Tail

InLabel: TenGigE0/1/0/0, implicit-null

crs-058 CRS-1实验指南

Signalling Info:

Src 2.2.2.2 Dst 1.1.1.1, Tun ID 1, Tun Inst 3, Ext ID 2.2.2.2

Router-IDs: upstream 3.3.3.3

local 1.1.1.1

Bandwidth: 0 kbps (CT0) Priority: 7 7 DSTE-class: 0

Path Info:

Incoming Address: 10.1.11.1

Incoming Explicit Route:

Strict, 10.1.11.1

Strict, 1.1.1.1

Record Route: None

Tspec: avg rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

Resv Info:

Record Route: None

Fspec: avg rate=0 kbits, burst=0 bytes, peak rate=0 kbits

Displayed 0 (of 0) heads, 0 (of 0) midpoints, 1 (of 1) tails

Displayed 0 up, 0 down, 0 recovering, 0 recovered heads

Monitor CH09的接口流量信息:

RP/0/RP0/CPU0:ch09-crs-1#monitor interface ten 1/6/0/0 ten 1/6/2/0

ch09-crs-1 Monitor Time: 00:00:10 SysUptime: 195:45:01

Protocol:General

Interface In(bps) Out(bps) InBytes/Delta OutBytes/Delta

Te1/6/0/0 3000/ 0% 864.8M/ 8% 563.6G/218 121.6G/216.2M Te1/6/2/0 2000/ 0% 8000/ 0% 734.3G/0 111.9M/1590

Quit='q', Clear='c', Freeze='f', Thaw='t',

Next set='n', Prev set='p', Bytes='y', Packets='k'

(General='g', IPv4 Uni='4u', IPv4 Multi='4m', IPv6 Uni='6u', IPv6 Multi='6m')

可以看到流量均从TE1/6/0/0的出去,此端口即为tunne的起始端口, MPLS-TE工作正常。[www.61k.com)

crs-058 CRS-1实验指南

MPLS TE FRR快速重路由

crs-058 CRS-1实验指南

在上一个MPLS TE实验中, CH09已经建立了一条TUNNEL TE1, CH09->65->CH03,在本实验项目中,需要建立一条备用通路TUNNEL2, CH09->CH03, 当主用通路断掉时候,流量可以快速切换到TUNNEL2上。[www.61k.com]

建立备用tunnel2

CH09相关配置

RP/0/RP0/CPU0:ch09-crs-1#sh run explicit-path identifier 2

Sat Jul 31 17:10:54.091 AEST

explicit-path identifier 2

index 10 next-address strict ipv4 unicast 10.1.12.2

!

RP/0/RP0/CPU0:ch09-crs-1#sh run int tunnel-te 2

Sat Jul 31 17:14:46.304 AEST

interface tunnel-te2

description backuptunnel for tunnel1(CH09->CH03)

crs-058 CRS-1实验指南

ipv4 unnumbered Loopback0

destination 1.1.1.1

path-option 1 explicit identifier 2

!

RP/0/RP0/CPU0:ch09-crs-1#sh run mpls traffic-eng Sat Jul 31 17:11:28.858 AEST

mpls traffic-eng

interface TenGigE1/6/2/0

!

RP/0/RP0/CPU0:ch09-crs-1#sh run rsvp

Sat Jul 31 17:11:59.902 AEST

rsvp

interface TenGigE1/6/2/0

!

!

CH03相关配置

RP/0/RP0/CPU0:ch03-crs-1#sh run mpls traffic-eng Sat Jul 31 17:15:24.858 AEST

mpls traffic-eng

interface TenGigE0/1/2/0

!

!

RP/0/RP0/CPU0:ch03-crs-1#sh run rsvp

Sat Jul 31 17:15:29.120 AEST

rsvp

interface TenGigE0/1/2/0

!

!

验证备用tunnel2已经UP

RP/0/RP0/CPU0:ch09-crs-1#show mpls traffic-eng tunnels 2 Sat Jul 31 17:16:51.654 AEST

Signalling Summary:

LSP Tunnels Process: running RSVP Process: running Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 2812 seconds

crs-058 CRS-1实验指南

Periodic FRR Promotion: every 300 seconds, next in 72 seconds Auto-bw enabled tunnels: 0 (disabled)

Name: tunnel-te2 Destination: 1.1.1.1

Status:

Admin: up Oper: up Path: valid Signalling: connected

path option 1, type explicit 2 (Basis for Setup, path weight 10) G-PID: 0x0800 (derived from egress interface properties)

Bandwidth Requested: 0 kbps CT0

Config Parameters:

Bandwidth: 0 kbps (CT0) Priority: 7 7 Affinity: 0x0/0xffff Metric Type: TE (default)

AutoRoute: disabled LockDown: disabled Policy class: not set Forwarding-Adjacency: disabled

Loadshare: 0 equal loadshares

Auto-bw: disabled

Fast Reroute: Disabled, Protection Desired: None

Path Protection: Not Enabled

History:

Tunnel has been up for: 00:08:57

Current LSP:

Uptime: 00:08:57

Path info (IS-IS 100 level-2):

Hop0: 10.1.12.2

Hop1: 1.1.1.1

Displayed 1 (of 2) heads, 0 (of 0) midpoints, 0 (of 0) tails

Displayed 1 up, 0 down, 0 recovering, 0 recovered heads

RP/0/RP0/CPU0:ch03-crs-1#sh mpls traffic-eng tunnels

Sat Jul 31 17:17:29.945 AEST

Signalling Summary:

LSP Tunnels Process: running

RSVP Process: running

Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 3199 seconds Periodic FRR Promotion: every 300 seconds, next in 34 seconds Auto-bw enabled tunnels: 0 (disabled)

LSP Tunnel 2.2.2.2 1 [3] is signalled, connection is up

Tunnel Name: ch09-crs-1_t1 Tunnel Role: Tail

InLabel: TenGigE0/1/0/0, implicit-null

crs-058 CRS-1实验指南

Signalling Info:

Src 2.2.2.2 Dst 1.1.1.1, Tun ID 1, Tun Inst 3, Ext ID 2.2.2.2

Router-IDs: upstream 3.3.3.3

local 1.1.1.1

Bandwidth: 0 kbps (CT0) Priority: 7 7 DSTE-class: 0

Path Info:

Incoming Address: 10.1.11.1

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

Incoming Explicit Route:

Strict, 10.1.11.1

Strict, 1.1.1.1

Record Route: None

Tspec: avg rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set Resv Info:

Record Route: None

Fspec: avg rate=0 kbits, burst=0 bytes, peak rate=0 kbits

LSP Tunnel 2.2.2.2 2 [2] is signalled, connection is up

Tunnel Name: ch09-crs-1_t2 Tunnel Role: Tail

InLabel: TenGigE0/1/2/0, implicit-null

Signalling Info:

Src 2.2.2.2 Dst 1.1.1.1, Tun ID 2, Tun Inst 2, Ext ID 2.2.2.2

Router-IDs: upstream 2.2.2.2

local 1.1.1.1

Bandwidth: 0 kbps (CT0) Priority: 7 7 DSTE-class: 0

Path Info:

Incoming Address: 10.1.12.2

Incoming Explicit Route:

Strict, 10.1.12.2

Strict, 1.1.1.1

Record Route: None

Tspec: avg rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set Resv Info:

Record Route: None

Fspec: avg rate=0 kbits, burst=0 bytes, peak rate=0 kbits

Displayed 0 (of 0) heads, 0 (of 0) midpoints, 2 (of 2) tails

Displayed 0 up, 0 down, 0 recovering, 0 recovered heads

RP/0/RP0/CPU0:ch03-crs-1#

备用tunnel2与主用tunnel1关联,做FRR RP/0/RP0/CPU0:ch09-crs-1#sh run mpls traffic-eng

crs-058 CRS-1实验指南

Sat Jul 31 17:44:02.680 AEST

mpls traffic-eng

interface TenGigE1/6/0/0

backup-path tunnel-te 2 ! tunnel-te 2保护接口TEN1/6/0/0 !

RP/0/RP0/CPU0:ch09-crs-1#sh run interface tunnel-te 1

Sat Jul 31 17:44:22.837 AEST

interface tunnel-te1

description primary tunnel(CH09->6509->CH03)

ipv4 unnumbered Loopback0

destination 1.1.1.1

fast-reroute !对tunnel-te1启动FRR path-option 1 explicit identifier 1

!

TE FRR功能验证

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng tunnels backup Sat Jul 31 17:56:41.685 AEST

tunnel-te2

Admin: up, Oper: up

Src: 2.2.2.2, Dest: 1.1.1.1, Instance: 3

Fast Reroute Backup Provided:

Protected LSPs: 2 (1 active)

Protected S2L Sharing Families: 0

Protected S2Ls: 0

Backup BW: any-class (no limit specified), Inuse: 0 kbps

Protected i/fs: Te1/6/0/0

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng tunnels protection Sat Jul 31 17:56:51.551 AEST

ch09-crs-1_t1 Tunnel Id: 1

LSP Head, Admin: up, Oper: up

Src: 2.2.2.2, Dest: 1.1.1.1, Instance: 29

Fast Reroute Protection: Requested

Outbound: FRR Ready

Backup tunnel-te2 to LSP nnhop

tunnel-te2: out i/f: TenGigE1/6/2/0

LSP signalling info:

Original: out i/f: TenGigE1/6/0/0, label: 24, nhop: 10.1.10.2 With FRR: out i/f: tunnel-te2, label: 3

LSP bw: 0 kbps, Backup level: any-class unlimited, type: CT0

crs-058 CRS-1实验指南

ch09-crs-1_t2 Tunnel Id: 2

LSP Head, Admin: up, Oper: up

Src: 2.2.2.2, Dest: 1.1.1.1, Instance: 3

Fast Reroute Protection: None

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng fast-reroute database

Sat Jul 31 17:57:01.234 AEST

Tunnel head FRR information:

Tunnel Out Intf/ FRR Intf/ Status

Label Label

------- ---------------- ---------------- -------

tt1 Te1/6/0/0:24 tt2:Pop Ready

从以上可以看到FRR已经READY,在打流的过程中, 进入65交换机, shutdown 65的端口TEN 1/3

从测试仪的流量指针上看,流量只会丢十几毫秒即完成切换。(www.61k.com)

crs-058 CRS-1实验指南

扩展:crs 1 / 分子克隆实验指南 / 实验室设计与建设指南

二 : 1个人的CCIE




宝贝,在干嘛
做实验啊
吃饭了吗
敲机架啊
怎么还不睡
研究IPv6
你很久没理我
钻研VPN呢
你很忙吗
我快考试了

银泰的灯也熄灭了
丢下我没能见到他
一定要这样选择吗
再让我和你说句sayounala

梦想是应该坚持的 丨 记忆是不会飘散的
那爱情应该放下它 丨 我试图渐渐忘掉它
已经放下你太久了 丨 你真的不会回来吗
不能再和你说句sayounala 不能再和你说句SaYouNaLa

你知道吗我已经哭了
结局它永远不会变吗
亲爱的啊我已经哭了
故事的结局应该不是这样的
你知道吗我已经哭了
结局它永远不会变吗
亲爱的啊我已经哭了
童话的结局应该不是这样的


我和你的CCIE谁更重要
当然是CCIE啊
你选我还是选你的CCIE
对不起,我不能选你

如今我是个IE了
却还是孤身一人呢
我记得你说过的话   
我们永远不去讲sayounala  
 
故事它不能倒退呀   
这世界根本没童话
眼睁睁不能去喊咔
美好的结局走了sayounala

你知道吗我已经哭了
结局它永远不会变吗
亲爱的啊我已经哭了
故事的结局应该不是这样的
你知道吗我已经哭了
结局它永远不会变吗
亲爱的啊我已经哭了
童话的结局应该不是这样的


有些人看似在跑,其实是逃,要学会跑,必须要有内心的渴望。

想念。真的不是名词。

是1种想起来就想哭的心情。

我希望,LOVE AND CCIE。可以互不干扰的共存。

我不能接受最终我没拿到那个水晶牌子。

我不能接受最终我失去了这份心痛的想念的心情。

爱。是含笑饮毒酒。

只有真正爱过的人,才能说出这样的话吧。

这不是华丽的辞藻,是深刻。

是不是想念1个人之际。

并不一定是心在想念。

而是眼睛想念对方的样子。

手指(www.61k.com)想念与他的手指相握的感觉。

亦或是身体想念对方身上的温度呢。

你一定为他做过不理智的事。

你一定陪他谈论过盛大的梦想。

你一定就那么坚信过他是你的下半生。

那个少年。

他是有缺点的。

但在你眼里。

他胜过所有光芒。

我说起你的淡如水,说起你的漫不经心,说起你的冷若星,埋怨你如何马耳东风,投诉你让我对牛弹琴。当我陈列你一切缺点时,却发现自己成为一座想念的博物馆。

----------------------------------------

It is the time you have wastered foryourrose,thatmake her so important.CCIE就是这朵rose,你越是为它付出过时间,越是为它投入过精力,越是为它放弃过所爱,它就越是你心中求之不得,弃之不舍的隐痛。

三 : CRS-1实验指南

IOXR实验指南

ISIS实验

6509做二层交换机

cc07-6500-4(config-if)#do sh run int ten 1/1 Building configuration...

Current configuration : 98 bytes !

interface TenGigabitEthernet1/1 switchport

load-interval 30

spanning-tree portfast edge end

cc07-6500-4(config-if)#do sh run int ten 1/3

Building configuration...

Current configuration : 98 bytes

!

interface TenGigabitEthernet1/3

switchport

load-interval 30

spanning-tree portfast edge

end

ch09-crs-1的ISIS配置:

RP/0/RP0/CPU0:ch09-crs-1#sh run router isis

Fri Jul 30 22:48:25.147 AEST

router isis 100

net 00.0001.0000.0000.0002.00

address-family ipv4 unicast

metric-style wide

!

interface TenGigE1/6/0/0

address-family ipv4 unicast

!

!

interface TenGigE1/6/1/0

address-family ipv4 unicast

!

!

interface TenGigE1/6/2/0

address-family ipv4 unicast

!

!

!

Ch03-crs-1的ISIS配置

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh run router isis Fri Jul 30 22:51:23.626 AEST

router isis 100

net 00.0001.0000.0000.0001.00

address-family ipv4 unicast

metric-style wide

!

interface TenGigE0/1/0/0

address-family ipv4 unicast

!

!

interface TenGigE0/1/1/0

address-family ipv4 unicast

!

!

interface TenGigE0/1/2/0

address-family ipv4 unicast

metric 100 //该接口metric大,所以优选从ten0/1/0/0学到的路由 !

!

!

分别记录CH09和CH03路由器收到的ISIS 邻居, 路由条目数目,记录路由路径。

RP/0/RP0/CPU0:ch03-crs-1#sh isis nei

Fri Jul 30 23:09:16.058 AEST

IS-IS 100 neighbors:

System Id Interface SNPA State Holdtime Type IETF-NSF

ch09-crs-1 Te0/1/0/0 0017.0e8f.25f7 Up 8 L1L2 Capable

ch09-crs-1 Te0/1/2/0 0017.0e8f.260f Up 9 L1L2 Capable

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route summ

Fri Jul 30 23:00:18.448 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552

local 5 0 0 620

static 3 0 0 372

isis 100 7500 4 0 930496

bgp 1001 0 0 0 0

ospf 100 1 0 0 180

Total 7513 4 0 932220

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route isis

Fri Jul 30 23:00:27.653 AEST

i L2 20.29.76.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.77.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.78.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.79.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.80.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.81.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

i L2 20.29.82.0/24 [115/21] via 10.1.10.1, 03:48:10, TenGigE0/1/0/0

RP/0/RP0/CPU0:ch09-crs-1#sh route summ

Fri Jul 30 23:00:07.902 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552

local 5 0 0 620

static 2 0 0 248

dagr 0 0 0 0

isis 100 7500 4 0 930720

bgp 1001 0 0 0 0

ospf 100 1 0 0 180

Total 7512 4 0 932320

RP/0/RP0/CPU0:ch09-crs-1#

RP/0/RP0/CPU0:ch09-crs-1#

RP/0/RP0/CPU0:ch09-crs-1#sh route isis

Fri Jul 30 23:01:33.720 AEST

i L2 20.29.76.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.77.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.78.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.79.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.80.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.81.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.82.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.83.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

i L2 20.29.84.0/24 [115/11] via 192.168.20.2, 04:32:19, TenGigE1/6/1/0

RP/0/RP0/CPU0:ch09-crs-1#sh isis nei

Fri Jul 30 23:09:41.339 AEST

IS-IS 100 neighbors:

System Id Interface SNPA State Holdtime Type IETF-NSF ch03-crs-1 Te1/6/0/0 0012.80ae.9476 Up 24 L1L2 Capable ch03-crs-1 Te1/6/2/0 0012.80ae.948e Up 24 L1L2 Capable 0010.9400.0002 Te1/6/1/0 0010.9400.0002 Up 25 L2 Unable

Total neighbor count: 3

不启用BFD for ISIS, 观察当非直连链路断掉后路由收敛效果。

非直连链路断掉情况模拟(链路断掉,但接口仍然处于UP状态

cc07-6500-4(config)#int ten 1/3

cc07-6500-4(config-if)#switchport access vlan 100

不启用BFD,需要较长时间路由(5,6秒)才能跟新到备用路

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route isis

Fri Jul 30 23:05:44.369 AEST

i L2 20.29.76.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.77.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.78.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.79.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.80.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.81.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.82.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.83.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.84.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

启用BFD for ISIS, 观察当非直连链路断掉后路由收敛效果 非直连链路断掉情况模拟(链路断掉,但接口仍然处于UP状态

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh run router isis

Fri Jul 30 22:51:23.626 AEST

router isis 100

interface TenGigE0/1/0/0

bfd minimum-interval 15 !hello包间隔

bfd multiplier 2 !bfd hello包timout数目

bfd fast-detect ipv4 !启用bfd功能

address-family ipv4 unicast

!

RP/0/RP0/CPU0:ch09-crs-1#sh run router isis

Fri Jul 30 22:48:25.147 AEST

router isis 100

interface TenGigE1/6/0/0

bfd minimum-interval 15

bfd multiplier 2

bfd fast-detect ipv4

address-family ipv4 unicast

!

RP/0/RP0/CPU0:ch03-crs-1#sh bfd ipv4 session

Fri Jul 30 23:50:17.070 AEST

Interface Dest Addr Local det time(int*mult) State Echo Async -------------------- --------------- ---------------- ---------------- ---------

Te0/1/0/0 10.1.10.1 30ms(15ms*2) 4s(2s*2) UP 启用BFD,瞬时ISIS(200-300 ms)就切换到备用路 cc07-6500-4(config)#int ten 1/3

cc07-6500-4(config-if)#switchport access vlan 100

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route isis

Fri Jul 30 23:05:44.369 AEST

i L2 20.29.76.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.77.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.78.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.79.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.80.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.81.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.82.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.83.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

i L2 20.29.84.0/24 [115/111] via 10.1.12.1, 00:00:09, TenGigE0/1/2/0

OSPF实验

CH03 OSPF配置:

RP/0/RP0/CPU0:ch03-crs-1#sh run router ospf Fri Jul 30 23:10:49.735 AEST

router ospf 100

area 0

interface TenGigE0/1/0/0

!

interface TenGigE0/1/1/0

!

interface TenGigE0/1/2/0

!

!

!

CH09 OSPF配置:

RP/0/RP0/CPU0:ch09-crs-1#sh run router ospf Fri Jul 30 23:11:54.577 AEST

router ospf 100

area 0

interface TenGigE1/6/0/0

!

interface TenGigE1/6/1/0

!

interface TenGigE1/6/2/0

!

!

!

记录CH09路由器OSPF邻居 RP/0/RP0/CPU0:ch09-crs-1#sh ospf nei Fri Jul 30 23:16:48.564 AEST

* Indicates MADJ interface

Neighbors for OSPF 100

Neighbor ID Pri State Dead Time Address Interface

10.1.10.2 1 FULL/DR 00:00:38 10.1.10.2 TenGigE1/6/0/0 Neighbor is up for 00:07:41

192.168.20.2 0 FULL/DROTHER 00:00:30 192.168.20.2 TenGigE1/6/1/0 Neighbor is up for 00:28:49

10.1.10.2 1 FULL/DR 00:00:37 10.1.12.2 TenGigE1/6/2/0 Neighbor is up for 00:29:02

Total neighbor count: 3

记录CH09 OSPF路由:

RP/0/RP0/CPU0:ch09-crs-1#sh route ospf

Fri Jul 30 23:36:55.114 AEST

O E1 30.0.0.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.1.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.2.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.3.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.4.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.5.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.6.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.7.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.8.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.9.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.10.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.11.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.12.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.13.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

O E1 30.0.14.0/24 [110/2] via 192.168.20.2, 00:02:04, TenGigE1/6/1/0

RP/0/RP0/CPU0:ch09-crs-1#sh route summ

Fri Jul 30 23:37:27.425 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552

local 5 0 0 620

static 2 0 0 248

dagr 0 0 0 0

isis 100 7500 4 0 930720

bgp 1001 0 0 0 0

ospf 100 51 0 0 6380 Total 7562 4 0 938520

记录CH03路由器OSPF邻居

RP/0/RP0/CPU0:ch03-crs-1#sh ospf nei

Fri Jul 30 23:17:48.576 AEST

* Indicates MADJ interface

Neighbors for OSPF 100

Neighbor ID Pri State Dead Time Address 10.1.10.1 1 FULL/BDR 00:00:37 10.1.10.1 Neighbor is up for 00:08:41

192.168.10.2 0 FULL/DROTHER 00:00:32 192.168.10.2 Neighbor is up for 00:30:37

10.1.10.1 1 FULL/BDR 00:00:39 10.1.12.1 Neighbor is up for 00:30:06

Total neighbor count: 3

RP/0/RP0/CPU0:ch03-crs-1#

记录CH03 ospf 路由:

RP/0/RP0/CPU0:ch03-crs-1#sh route summ

Fri Jul 30 23:38:32.815 AEST

Route Source Routes Backup Deleted Memory (bytes) connected 4 0 0 552 local 5 0 0 620 static 3 0 0 372 isis 100 7500 4 0 930496 bgp 1001 0 0 0 0 ospf 100 51 0 0 9180 Total 7563 4 0 941220

RP/0/RP0/CPU0:ch03-crs-1#sh route ospf

Fri Jul 30 23:38:35.885 AEST

O E1 30.0.0.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0 Interface TenGigE0/1/0/0 TenGigE0/1/1/0 TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.1.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.2.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.3.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

O E1 30.0.4.0/24 [110/3] via 10.1.12.1, 00:03:45, TenGigE0/1/2/0

[110/3] via 10.1.10.1, 00:03:45, TenGigE0/1/0/0

调整CH03参数,使其优选ten0/1/0/0到达ch09后面的网络

RP/0/RP0/CPU0:ch03-crs-1#sh run router ospf

Fri Jul 30 23:41:28.634 AEST

router ospf 100

interface TenGigE0/1/2/0

cost 5 !把ten0/1/2/0接口值加大

!

!

验证ch03路由改变:

RP/0/RP0/CPU0:ch03-crs-1#sh route ospf

Fri Jul 30 23:41:02.739 AEST

O E1 30.0.0.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.1.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.2.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.3.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.4.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.5.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.6.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.7.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

O E1 30.0.8.0/24 [110/3] via 10.1.10.1, 00:00:15, TenGigE0/1/0/0

不配置BFD FOR OSPF, 验证路由收敛情况

非直连链路断掉情况模拟(链路断掉,但接口仍然处于UP状态

cc07-6500-4(config)#int ten 1/3

cc07-6500-4(config-if)#switchport access vlan 100

不配置BFD, 需要较长时间HELLO TIME超时,始收敛

RP/0/RP0/CPU0:ch03-crs-1#sh route ospf

Fri Jul 30 23:45:07.775 AEST

O E1 30.0.0.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.1.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.2.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.3.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.4.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.5.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.6.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

O E1 30.0.7.0/24 [110/7] via 10.1.12.1, 00:00:01, TenGigE0/1/2/0

配置BFD FOR OSPF:

在CH09的ten1/6/0/0上启用BFD

RP/0/RP0/CPU0:ch09-crs-1#sh run router ospf 100

Fri Jul 30 23:56:19.750 AEST

router ospf 100

bfd minimum-interval 15

bfd multiplier 2

area 0

interface TenGigE1/6/0/0

bfd fast-detect

路由才开

在CH03的ten0/1/0/0上启用BFD RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh run router ospf Fri Jul 30 23:57:37.569 AEST

router ospf 100

bfd minimum-interval 15

bfd multiplier 2

area 0

interface TenGigE0/1/0/0

bfd fast-detect

!

记录当前BFD状态:

RP/0/RP0/CPU0:ch09-crs-1#sh bfd ipv4 session detail

Fri Jul 30 23:55:47.895 AEST

I/f: TenGigE1/6/0/0, Location: 1/6/CPU0, dest: 10.1.10.2, src: 10.1.10.1 State: UP for 0d:0h:5m:34s, number of times UP: 1

Received parameters:

Version: 1, desired tx interval: 2 s, required rx interval: 2 s Required echo rx interval: 1 ms, multiplier: 2, diag: None

My discr: 327689, your discr: 18415626, state UP, D/F/P/C/A: 0/0/0/1/0 Transmitted parameters:

Version: 1, desired tx interval: 2 s, required rx interval: 2 s Required echo rx interval: 1 ms, multiplier: 2, diag: None

My discr: 18415626, your discr: 327689, state UP, D/F/P/C/A: 0/0/0/1/0 Timer Values:

Local negotiated async tx interval: 2 s

Remote negotiated async tx interval: 2 s

Desired echo tx interval: 15 ms, local negotiated echo tx interval: 15 ms Echo detection time: 30 ms(15 ms*2), async detection time: 4 s(2 s*2) Local Stats:

Intervals between async packets:

Tx: Number of intervals=100, min=1665 ms, max=1985 ms, avg=1815 ms Last packet transmitted 1967 ms ago

Rx: Number of intervals=100, min=1667 ms, max=2 s, avg=1852 ms Last packet received 619 ms ago

Intervals between echo packets:

Tx: Number of intervals=100, min=17 ms, max=17 ms, avg=17 ms Last packet transmitted 7 ms ago

Rx: Number of intervals=100, min=17 ms, max=17 ms, avg=17 ms Last packet received 7 ms ago

Latency of echo packets (time between tx and rx):

Number of packets: 100, min=0 us, max=0 us, avg=0 us

Session owner information:

Client Desired interval Multiplier

---------------- ------------------------ --------------

isis-100 15 ms 2

ospf-100 15 ms 2

验证BFD FOR OSPF效果,模拟非直连链路断掉路由收敛时间:200ms时间, OSPF自动收敛

RP/0/RP0/CPU0:ch03-crs-1(config-ospf-ar-if)#do sh route ospf

Sat Jul 31 00:02:09.132 AEST

O E1 30.0.0.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.1.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.2.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.3.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.4.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.5.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.6.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.7.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.8.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

O E1 30.0.9.0/24 [110/7] via 10.1.12.1, 00:00:07, TenGigE0/1/2/0

BGP实验

CH03 BGP配置:

RP/0/RP0/CPU0:ch03-crs-1#sh run route-policy pass-all Sat Jul 31 00:05:30.058 AEST

route-policy pass-all

pass

end-policy

!

RP/0/RP0/CPU0:ch03-crs-1#sh run router bgp

Sat Jul 31 00:05:35.462 AEST

router bgp 1001

bgp router-id 192.168.10.1

address-family ipv4 unicast

!

neighbor 192.168.10.2

remote-as 1

address-family ipv4 unicast

route-policy pass-all in

route-policy pass-all out

!

!

!

记录BGP路由条目数目(30万条)

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#do sh route summ Sat Jul 31 00:58:39.559 AEST

Route Source Routes Backup Deleted Memory (bytes) connected 4 0 0 552 local 5 0 0 620 static 2 0 0 248

dagr 0 0 0 0

isis 100 7500 4 0 930720

bgp 1001 300000 0 0 37200000

ospf 100 51 0 0 6380

Total 307562 4 0 38138520

策略控制, 如下所示所有Community为 1:1的路由需要全部被过滤

RP/0/RP0/CPU0:ch09-crs-1#sh bgp 50.0.0.0

Sat Jul 31 01:00:00.555 AEST

BGP routing table entry for 50.0.0.0/24

Versions:

Process bRIB/RIB SendTblVer

Speaker 928522 928522

Last Modified: Jul 31 00:57:57.029 for 00:02:03

Paths: (1 available, best #1)

Not advertised to any peer

Path #1: Received by speaker 0

1

192.168.20.2 from 192.168.20.2 (192.168.20.2)

Origin IGP, localpref 100, valid, external, best

Community: 1:1

配置route-policy

RP/0/RP0/CPU0:ch09-crs-1#sh run route-policy GUARD_PREFIX

Sat Jul 31 01:03:37.553 AEST

route-policy GUARD_PREFIX

if community matches-any (1:1) then

drop

endif

end-policy

!

RP/0/RP0/CPU0:ch09-crs-1#sh run route-policy BGP_IN

Sat Jul 31 01:03:45.168 AEST

route-policy BGP_IN

apply GUARD_PREFIX

pass

end-policy

!

把 BGP_IN应用到bgp的in方向

RP/0/RP0/CPU0:ch09-crs-1#conf t

Sat Jul 31 01:05:56.578 AEST

RP/0/RP0/CPU0:ch09-crs-1(config)#router bgp 1001

RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#nei 192.168.20.2

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr)#address-family ipv4 unicast RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#route-policy BGP_IN in

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#commi

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr-af)#exi

RP/0/RP0/CPU0:ch09-crs-1(config-bgp-nbr)#exi

RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#do sh route summ

Sat Jul 31 01:06:41.855 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552 local 5 0 0 620 static 2 0 0 248

dagr 0 0 0 0 isis 100 7500 4 0 930720

bgp 1001 300000 0 0 37200000 ospf 100 51 0 0 6380 Total 307562 4 0 38138520

RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#do clear bgp *

Sat Jul 31 01:06:48.267 AEST

验证路由策略生效, 30万路由变为10万条路由。 RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#do sh route summ

Sat Jul 31 01:07:13.817 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 0 0 552 local 5 0 0 620 static 2 0 0 248 dagr 0 0 0 0 isis 100 7500 4 0 930720

bgp 1001 100000 0 0 12400000 ospf 100 51 0 0 6380

Total 107562 4 0 13338520 RP/0/RP0/CPU0:ch09-crs-1(config-bgp)#

MPLS实验

6509做三层路由器, MPLS, LDP, ISIS相关配置 cc07-6500-4#sh run int ten 1/3

interface TenGigabitEthernet1/3

switchport

switchport access vlan 200

load-interval 30

spanning-tree portfast edge

end

cc07-6500-4#sh run int ten 1/1

interface TenGigabitEthernet1/1

switchport

switchport access vlan 100

load-interval 30

spanning-tree portfast edge

end

cc07-6500-4#sh run int lo 0

interface Loopback0

ip address 3.3.3.3 255.255.255.255

ip router isis 100

end

cc07-6500-4#sh run int vlan 100

interface Vlan100

ip address 10.1.11.2 255.255.255.0

ip router isis 100

mpls ip

end

cc07-6500-4#sh run int vlan 200

interface Vlan200

ip address 10.1.10.2 255.255.255.0

ip router isis 100

mpls ip

end

router isis 100

net 00.0001.0000.0000.0003.00

metric-style wide

mpls label protocol ldp

mpls ldp router-id Loopback0

CH03 MPLS相关配置

RP/0/RP0/CPU0:ch03-crs-1(config-if)#do sh run int ten 0/1/0/0 Sat Jul 31 13:50:20.237 AEST

interface TenGigE0/1/0/0

cdp

ipv4 address 10.1.11.1 255.255.255.0

!

RP/0/RP0/CPU0:ch03-crs-1#sh run mpls ldp

Sat Jul 31 14:29:23.630 AEST

mpls ldp

router-id 1.1.1.1

interface TenGigE0/1/0/0

!

interface TenGigE0/1/2/0

!

!

CH09 MPLS相关配置

RP/0/RP0/CPU0:ch09-crs-1#sh run mpls ldp

Sat Jul 31 14:29:50.350 AEST

mpls ldp

router-id 2.2.2.2

interface TenGigE1/6/0/0

!

interface TenGigE1/6/2/0

!

!

MPLS验证

cc07-6500-4#sh mpls ldp nei

Peer LDP Ident: 1.1.1.1:0; Local LDP Ident 3.3.3.3:0

TCP connection: 1.1.1.1.646 - 3.3.3.3.17018

State: Oper; Msgs sent/rcvd: 23/24; Downstream

Up time: 00:08:24

LDP discovery sources:

Vlan100, Src IP addr: 10.1.11.1

Addresses bound to peer LDP Ident:

10.66.164.239 1.1.1.1 10.1.12.2 192.168.10.1 10.66.164.240 10.1.11.1

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.34533

State: Oper; Msgs sent/rcvd: 24/23; Downstream

Up time: 00:08:22

LDP discovery sources:

Vlan200, Src IP addr: 10.1.10.1

Addresses bound to peer LDP Ident:

10.66.165.87 192.168.20.1 10.1.12.1 10.66.165.86

2.2.2.2 10.1.10.1

cc07-6500-4#sh mpls for

cc07-6500-4#sh mpls forwarding-table

Local Outgoing Prefix Bytes Label Outgoing Next Hop Label Label or Tunnel Id Switched interface 16 Pop Label 1.1.1.1/32 0 Vl100 10.1.11.1 17 Pop Label 2.2.2.2/32 1372 Vl200 10.1.10.1

18 Pop Label 10.1.12.0/24 0 Vl200 10.1.10.1 19 No Label 10.66.0.0/16 0 Gi5/2 10.66.164.1 20 No Label 64.104.0.0/16 0 Gi5/2 10.66.164.1 21 Pop Label 192.168.10.0/24 0 Vl100 10.1.11.1 22 Pop Label 192.168.20.0/24 0 Vl200 10.1.10.1

RP/0/RP0/CPU0:ch03-crs-1#sh mpls ldp nei

Sat Jul 31 14:30:55.093 AEST

Peer LDP Identifier: 2.2.2.2:0

TCP connection: 2.2.2.2:55360 - 1.1.1.1:646

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 47/46

Up time: 00:23:45

LDP Discovery Sources:

TenGigE0/1/2/0

Addresses bound to this peer:

2.2.2.2 10.1.10.1 10.1.12.1 10.66.165.86 10.66.165.87 192.168.20.1

Peer LDP Identifier: 3.3.3.3:0

TCP connection: 3.3.3.3:17018 - 1.1.1.1:646

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 25/24

Up time: 00:08:48

LDP Discovery Sources:

TenGigE0/1/0/0

Addresses bound to this peer:

3.3.3.3 10.1.10.2 10.1.11.2 10.66.164.179

RP/0/RP0/CPU0:ch03-crs-1#sh mpls forwarding

Sat Jul 31 14:31:03.203 AEST

Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched ------ ----------- ------------------ ------------ --------------- ------------

16000 Pop 10.1.10.0/24 Te0/1/2/0 10.1.12.1 0 16001 Pop 192.168.20.0/24 Te0/1/2/0 10.1.12.1 0 16002 17 2.2.2.2/32 Te0/1/0/0 10.1.11.2 1436 16003 Unlabelled 10.66.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 0 16004 Unlabelled 64.104.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 9348 16006 Pop 3.3.3.3/32 Te0/1/0/0 10.1.11.2 0

RP/0/RP0/CPU0:ch09-crs-1#sh mpls ldp nei

Sat Jul 31 14:31:38.666 AEST

Peer LDP Identifier: 1.1.1.1:0

TCP connection: 1.1.1.1:646 - 2.2.2.2:55360

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 47/48

Up time: 00:24:28

LDP Discovery Sources:

TenGigE1/6/2/0

Addresses bound to this peer:

1.1.1.1 10.1.11.1 10.1.12.2 10.66.164.239 10.66.164.240 192.168.10.1

Peer LDP Identifier: 3.3.3.3:0

TCP connection: 3.3.3.3:34533 - 2.2.2.2:646

Graceful Restart: No

Session Holdtime: 180 sec

State: Oper; Msgs sent/rcvd: 25/25

Up time: 00:09:30

LDP Discovery Sources:

TenGigE1/6/0/0

Addresses bound to this peer:

3.3.3.3 10.1.10.2 10.1.11.2 10.66.164.179

RP/0/RP0/CPU0:ch09-crs-1#sh mpls forwarding

Sat Jul 31 14:31:42.252 AEST

Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched ------ ----------- ------------------ ------------ --------------- ------------

16000 Pop 192.168.10.0/24 Te1/6/2/0 10.1.12.2 0 16001 Pop 10.1.11.0/24 Te1/6/2/0 10.1.12.2 0 16002 Pop 1.1.1.1/32 Te1/6/2/0 10.1.12.2 0 16003 Unlabelled 64.104.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 7047 16004 Unlabelled 10.66.0.0/16 Mg0/RP0/CPU0/0 10.66.164.1 0 16006 Pop 3.3.3.3/32 Te1/6/0/0 10.1.10.2 0

MPLS TE流量工程实验

BGP路由建立

如上图所示, Testcenter 1与ch03-crs-1建立EBGP, CH03与CH09建立IBGP, Testcenter1发出5000条(40.0.0.0/24)路由到ch03.

Ch03与ch09相关的BGP配置:

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run router bgp

Sat Jul 31 15:51:05.130 AEST

router bgp 1001

bgp router-id 1.1.1.1

address-family ipv4 unicast

!

neighbor 2.2.2.2

remote-as 1001

update-source Loopback0

address-family ipv4 unicast

route-policy pass-all in

route-policy pass-all out

!

!

neighbor 192.168.10.2

remote-as 1

address-family ipv4 unicast

route-policy pass-all in

route-policy pass-all out

!

!

!

RP/0/RP0/CPU0:ch09-crs-1#sh run router bgp

Sat Jul 31 15:51:33.398 AEST

router bgp 1001

bgp router-id 2.2.2.2

address-family ipv4 unicast

!

neighbor 1.1.1.1

remote-as 1001

update-source Loopback0

address-family ipv4 unicast

route-policy pass-all in

route-policy pass-all out

!

!

CH03与CH09均有5000条BGP路由

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh route summ

Sat Jul 31 15:52:23.159 AEST

Route Source Routes Backup Deleted Memory (bytes) connected 4 1 0 676 local 6 0 0 744 static 3 0 0 372 isis 100 4 4 0 992 bgp 1001 5000 0 0 620000 Total 5017 5 0 622784

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh route bgp

Sat Jul 31 15:52:29.718 AEST

B 40.0.0.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.1.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.2.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.3.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.4.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.5.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.6.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.7.0/24 [20/0] via 192.168.10.2, 00:53:12

B 40.0.8.0/24 [20/0] via 192.168.10.2, 00:53:12

RP/0/RP0/CPU0:ch09-crs-1#sh route summ

Sat Jul 31 15:52:52.324 AEST

Route Source Routes Backup Deleted Memory (bytes)

connected 4 1 0 676

local 6 0 0 744

static 2 0 0 248

dagr 0 0 0 0

isis 100 4 4 0 1048

bgp 1001 5000 0 0 620000

Total 5016 5 0 622716

RP/0/RP0/CPU0:ch09-crs-1#sh route bgp

Sat Jul 31 15:52:58.289 AEST

B 40.0.0.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.1.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.2.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.3.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.4.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.5.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.6.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.7.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.8.0/24 [200/0] via 192.168.10.2, 00:53:40

B 40.0.9.0/24 [200/0] via 192.168.10.2, 00:53:40

TE隧道建立

CH09到CH03建立MPLS TE隧道(CH09-6509-CH03), 通过配置静态路由使Testcenter2打Testcenter1的5000条BGP网段流量都经过该TE隧道。

6509相关配置:

mpls traffic-eng tunnels

!

interface Vlan100

mpls traffic-eng tunnels

ip rsvp bandwidth

!

interface Vlan200

mpls traffic-eng tunnels

ip rsvp bandwidth

router isis 100

metric-style wide

mpls traffic-eng router-id Loopback0

mpls traffic-eng level-2

ch09相关配置:

RP/0/RP0/CPU0:ch09-crs-1#sh run explicit-path Sat Jul 31 16:27:00.198 AEST

explicit-path identifier 1

index 10 next-address strict ipv4 unicast 10.1.10.2 index 20 next-address strict ipv4 unicast 10.1.11.1 !

RP/0/RP0/CPU0:ch09-crs-1#sh run interface tunnel-te 1 Sat Jul 31 16:27:21.454 AEST

interface tunnel-te1

ipv4 unnumbered Loopback0

destination 1.1.1.1

path-option 1 explicit identifier 1

!

RP/0/RP0/CPU0:ch09-crs-1#sh run router isis Sat Jul 31 16:27:29.532 AEST

router isis 100

net 00.0001.0000.0000.0002.00

address-family ipv4 unicast

metric-style wide

mpls traffic-eng level-2-only

mpls traffic-eng router-id Loopback0

RP/0/RP0/CPU0:ch09-crs-1#sh run rsvp

Sat Jul 31 16:29:24.945 AEST

rsvp

interface TenGigE1/6/0/0

bandwidth

!

!

RP/0/RP0/CPU0:ch09-crs-1#sh run mpls traffic-eng

Sat Jul 31 16:29:31.362 AEST

mpls traffic-eng

interface TenGigE1/6/0/0

!

!

ch03相关配置:

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run router isis

Sat Jul 31 16:30:26.598 AEST

router isis 100

net 00.0001.0000.0000.0001.00

address-family ipv4 unicast

metric-style wide

mpls traffic-eng level-2-only

mpls traffic-eng router-id Loopback0

!

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run mpls traffic-eng

Sat Jul 31 16:30:52.752 AEST

mpls traffic-eng

interface TenGigE0/1/0/0

!

!

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh run rsvp

Sat Jul 31 16:30:56.889 AEST

rsvp

interface TenGigE0/1/0/0

!

!

TE隧道功能验证

CH09到CH03建立MPLS TE隧道(CH09-6509-CH03), 通过配置静态路由使Testcenter2打Testcenter1的5000条BGP网段流量都经过该TE隧道。

CH09相关配置如下:

router static

address-family ipv4 unicast

192.168.10.2/32 tunnel-te1 !所有到5000条BGP路由的下一跳均是192.168.10.2, 所以把到192.168.10.2下一跳设置为tunnel-te1,即可实现把该流量导入到TE隧道中。 !

!

在testcenter建立流, 源端口TEN10/2, 目的端口TEN10/1,流源地址是TEN10/2接口地址,目的地址是TEN10/1放出的5000条BGP路由。

TCC测试脚本:LAB-mpls-te.tcc

观察6509, CH09, CH03 tunnel状态均为UP状态:

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng tunnels

Sat Jul 31 16:36:28.773 AEST

Signalling Summary:

LSP Tunnels Process: running

RSVP Process: running

Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 1635 seconds

Periodic FRR Promotion: every 300 seconds, next in 274 seconds

Auto-bw enabled tunnels: 0 (disabled)

Name: tunnel-te1 Destination: 1.1.1.1

Status:

Admin: up Oper: up Path: valid Signalling: connected

path option 1, type explicit 1 (Basis for Setup, path weight 20)

Last Signalled Error: Sat Jul 31 16:10:53 2010

Info: [2] PathErr(1,0)-(admission) at 10.1.11.1

G-PID: 0x0800 (derived from egress interface properties)

Bandwidth Requested: 0 kbps CT0

Config Parameters:

Bandwidth: 0 kbps (CT0) Priority: 7 7 Affinity: 0x0/0xffff

Metric Type: TE (default)

AutoRoute: disabled LockDown: disabled Policy class: not set

Forwarding-Adjacency: disabled

Loadshare: 0 equal loadshares

Auto-bw: disabled

Fast Reroute: Disabled, Protection Desired: None

Path Protection: Not Enabled

History:

Tunnel has been up for: 00:21:26

Current LSP:

Uptime: 00:21:26

Prior LSP:

ID: path option 1 [2]

Removal Trigger: setup timed out

Path info (IS-IS 100 level-2):

Hop0: 10.1.10.2

Hop1: 10.1.11.2

Hop2: 10.1.11.1

Hop3: 1.1.1.1

Displayed 1 (of 1) heads, 0 (of 0) midpoints, 0 (of 0) tails

Displayed 1 up, 0 down, 0 recovering, 0 recovered heads

cc07-6500-4#sh mpls traffic-eng tunnels

LSP Tunnel ch09-crs-1_t1 is signalled, connection is up

InLabel : Vlan200, 24

OutLabel : Vlan100, implicit-null

RSVP Signalling Info:

Src 2.2.2.2, Dst 1.1.1.1, Tun_Id 1, Tun_Instance 3

RSVP Path Info:

My Address: 10.1.11.2

Explicit Route: 10.1.11.1 1.1.1.1

Record Route: NONE

Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

RSVP Resv Info:

Record Route: NONE

Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

RP/0/RP0/CPU0:ch03-crs-1(config)#do sh mpls traffic-eng tunnels

Sat Jul 31 16:37:30.158 AEST

Signalling Summary:

LSP Tunnels Process: running

RSVP Process: running

Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 1999 seconds Periodic FRR Promotion: every 300 seconds, next in 216 seconds Auto-bw enabled tunnels: 0 (disabled)

LSP Tunnel 2.2.2.2 1 [3] is signalled, connection is up

Tunnel Name: ch09-crs-1_t1 Tunnel Role: Tail

InLabel: TenGigE0/1/0/0, implicit-null

Signalling Info:

Src 2.2.2.2 Dst 1.1.1.1, Tun ID 1, Tun Inst 3, Ext ID 2.2.2.2

Router-IDs: upstream 3.3.3.3

local 1.1.1.1

Bandwidth: 0 kbps (CT0) Priority: 7 7 DSTE-class: 0

Path Info:

Incoming Address: 10.1.11.1

Incoming Explicit Route:

Strict, 10.1.11.1

Strict, 1.1.1.1

Record Route: None

Tspec: avg rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set

Resv Info:

Record Route: None

Fspec: avg rate=0 kbits, burst=0 bytes, peak rate=0 kbits

Displayed 0 (of 0) heads, 0 (of 0) midpoints, 1 (of 1) tails

Displayed 0 up, 0 down, 0 recovering, 0 recovered heads

Monitor CH09的接口流量信息:

RP/0/RP0/CPU0:ch09-crs-1#monitor interface ten 1/6/0/0 ten 1/6/2/0

ch09-crs-1 Monitor Time: 00:00:10 SysUptime: 195:45:01

Protocol:General

Interface In(bps) Out(bps) InBytes/Delta OutBytes/Delta

Te1/6/0/0 3000/ 0% 864.8M/ 8% 563.6G/218 121.6G/216.2M Te1/6/2/0 2000/ 0% 8000/ 0% 734.3G/0 111.9M/1590

Quit='q', Clear='c', Freeze='f', Thaw='t',

Next set='n', Prev set='p', Bytes='y', Packets='k'

(General='g', IPv4 Uni='4u', IPv4 Multi='4m', IPv6 Uni='6u', IPv6 Multi='6m')

可以看到流量均从TE1/6/0/0的出去,此端口即为tunne的起始端口, MPLS-TE工作正常。

MPLS TE FRR快速重路由

在上一个MPLS TE实验中, CH09已经建立了一条TUNNEL TE1, CH09->65->CH03,在本实验项目中,需要建立一条备用通路TUNNEL2, CH09->CH03, 当主用通路断掉时候,流量可以快速切换到TUNNEL2上。

建立备用tunnel2

CH09相关配置

RP/0/RP0/CPU0:ch09-crs-1#sh run explicit-path identifier 2

Sat Jul 31 17:10:54.091 AEST

explicit-path identifier 2

index 10 next-address strict ipv4 unicast 10.1.12.2

!

RP/0/RP0/CPU0:ch09-crs-1#sh run int tunnel-te 2

Sat Jul 31 17:14:46.304 AEST

interface tunnel-te2

description backuptunnel for tunnel1(CH09->CH03)

ipv4 unnumbered Loopback0

destination 1.1.1.1

path-option 1 explicit identifier 2

!

RP/0/RP0/CPU0:ch09-crs-1#sh run mpls traffic-eng Sat Jul 31 17:11:28.858 AEST

mpls traffic-eng

interface TenGigE1/6/2/0

!

RP/0/RP0/CPU0:ch09-crs-1#sh run rsvp

Sat Jul 31 17:11:59.902 AEST

rsvp

interface TenGigE1/6/2/0

!

!

CH03相关配置

RP/0/RP0/CPU0:ch03-crs-1#sh run mpls traffic-eng Sat Jul 31 17:15:24.858 AEST

mpls traffic-eng

interface TenGigE0/1/2/0

!

!

RP/0/RP0/CPU0:ch03-crs-1#sh run rsvp

Sat Jul 31 17:15:29.120 AEST

rsvp

interface TenGigE0/1/2/0

!

!

验证备用tunnel2已经UP

RP/0/RP0/CPU0:ch09-crs-1#show mpls traffic-eng tunnels 2 Sat Jul 31 17:16:51.654 AEST

Signalling Summary:

LSP Tunnels Process: running RSVP Process: running Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 2812 seconds

Periodic FRR Promotion: every 300 seconds, next in 72 seconds Auto-bw enabled tunnels: 0 (disabled)

Name: tunnel-te2 Destination: 1.1.1.1

Status:

Admin: up Oper: up Path: valid Signalling: connected

path option 1, type explicit 2 (Basis for Setup, path weight 10) G-PID: 0x0800 (derived from egress interface properties)

Bandwidth Requested: 0 kbps CT0

Config Parameters:

Bandwidth: 0 kbps (CT0) Priority: 7 7 Affinity: 0x0/0xffff Metric Type: TE (default)

AutoRoute: disabled LockDown: disabled Policy class: not set Forwarding-Adjacency: disabled

Loadshare: 0 equal loadshares

Auto-bw: disabled

Fast Reroute: Disabled, Protection Desired: None

Path Protection: Not Enabled

History:

Tunnel has been up for: 00:08:57

Current LSP:

Uptime: 00:08:57

Path info (IS-IS 100 level-2):

Hop0: 10.1.12.2

Hop1: 1.1.1.1

Displayed 1 (of 2) heads, 0 (of 0) midpoints, 0 (of 0) tails

Displayed 1 up, 0 down, 0 recovering, 0 recovered heads

RP/0/RP0/CPU0:ch03-crs-1#sh mpls traffic-eng tunnels

Sat Jul 31 17:17:29.945 AEST

Signalling Summary:

LSP Tunnels Process: running

RSVP Process: running

Forwarding: enabled

Periodic reoptimization: every 3600 seconds, next in 3199 seconds Periodic FRR Promotion: every 300 seconds, next in 34 seconds Auto-bw enabled tunnels: 0 (disabled)

LSP Tunnel 2.2.2.2 1 [3] is signalled, connection is up

Tunnel Name: ch09-crs-1_t1 Tunnel Role: Tail

InLabel: TenGigE0/1/0/0, implicit-null

Signalling Info:

Src 2.2.2.2 Dst 1.1.1.1, Tun ID 1, Tun Inst 3, Ext ID 2.2.2.2

Router-IDs: upstream 3.3.3.3

local 1.1.1.1

Bandwidth: 0 kbps (CT0) Priority: 7 7 DSTE-class: 0

Path Info:

Incoming Address: 10.1.11.1

Incoming Explicit Route:

Strict, 10.1.11.1

Strict, 1.1.1.1

Record Route: None

Tspec: avg rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set Resv Info:

Record Route: None

Fspec: avg rate=0 kbits, burst=0 bytes, peak rate=0 kbits

LSP Tunnel 2.2.2.2 2 [2] is signalled, connection is up

Tunnel Name: ch09-crs-1_t2 Tunnel Role: Tail

InLabel: TenGigE0/1/2/0, implicit-null

Signalling Info:

Src 2.2.2.2 Dst 1.1.1.1, Tun ID 2, Tun Inst 2, Ext ID 2.2.2.2

Router-IDs: upstream 2.2.2.2

local 1.1.1.1

Bandwidth: 0 kbps (CT0) Priority: 7 7 DSTE-class: 0

Path Info:

Incoming Address: 10.1.12.2

Incoming Explicit Route:

Strict, 10.1.12.2

Strict, 1.1.1.1

Record Route: None

Tspec: avg rate=0 kbits, burst=1000 bytes, peak rate=0 kbits

Session Attributes: Local Prot: Not Set, Node Prot: Not Set, BW Prot: Not Set Resv Info:

Record Route: None

Fspec: avg rate=0 kbits, burst=0 bytes, peak rate=0 kbits

Displayed 0 (of 0) heads, 0 (of 0) midpoints, 2 (of 2) tails

Displayed 0 up, 0 down, 0 recovering, 0 recovered heads

RP/0/RP0/CPU0:ch03-crs-1#

备用tunnel2与主用tunnel1关联,做FRR RP/0/RP0/CPU0:ch09-crs-1#sh run mpls traffic-eng

Sat Jul 31 17:44:02.680 AEST

mpls traffic-eng

interface TenGigE1/6/0/0

backup-path tunnel-te 2 ! tunnel-te 2保护接口TEN1/6/0/0 !

RP/0/RP0/CPU0:ch09-crs-1#sh run interface tunnel-te 1

Sat Jul 31 17:44:22.837 AEST

interface tunnel-te1

description primary tunnel(CH09->6509->CH03)

ipv4 unnumbered Loopback0

destination 1.1.1.1

fast-reroute !对tunnel-te1启动FRR path-option 1 explicit identifier 1

!

TE FRR功能验证

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng tunnels backup Sat Jul 31 17:56:41.685 AEST

tunnel-te2

Admin: up, Oper: up

Src: 2.2.2.2, Dest: 1.1.1.1, Instance: 3

Fast Reroute Backup Provided:

Protected LSPs: 2 (1 active)

Protected S2L Sharing Families: 0

Protected S2Ls: 0

Backup BW: any-class (no limit specified), Inuse: 0 kbps

Protected i/fs: Te1/6/0/0

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng tunnels protection Sat Jul 31 17:56:51.551 AEST

ch09-crs-1_t1 Tunnel Id: 1

LSP Head, Admin: up, Oper: up

Src: 2.2.2.2, Dest: 1.1.1.1, Instance: 29

Fast Reroute Protection: Requested

Outbound: FRR Ready

Backup tunnel-te2 to LSP nnhop

tunnel-te2: out i/f: TenGigE1/6/2/0

LSP signalling info:

Original: out i/f: TenGigE1/6/0/0, label: 24, nhop: 10.1.10.2 With FRR: out i/f: tunnel-te2, label: 3

LSP bw: 0 kbps, Backup level: any-class unlimited, type: CT0

ch09-crs-1_t2 Tunnel Id: 2

LSP Head, Admin: up, Oper: up

Src: 2.2.2.2, Dest: 1.1.1.1, Instance: 3

Fast Reroute Protection: None

RP/0/RP0/CPU0:ch09-crs-1#sh mpls traffic-eng fast-reroute database

Sat Jul 31 17:57:01.234 AEST

Tunnel head FRR information:

Tunnel Out Intf/ FRR Intf/ Status

Label Label

------- ---------------- ---------------- -------

tt1 Te1/6/0/0:24 tt2:Pop Ready

从以上可以看到FRR已经READY,在打流的过程中, 进入65交换机, shutdown 65的端口TEN 1/3

从测试仪的流量指针上看,流量只会丢十几毫秒即完成切换。

本文标题:ccie实验指南第1卷-CRS-1实验指南
本文地址: http://www.61k.com/1082465.html

61阅读| 精彩专题| 最新文章| 热门文章| 苏ICP备13036349号-1