3.7 實驗5:配置幀中繼流量整形及OSPF的配置
3.7.1 實驗內容
l 在網絡中配置OSPF路由協議
l 佈署幀中繼流量整形
u 在R5路由器 是配置流量整形,本地端口速率爲 1.544Mbit/s。
u R5到R3的PVC的CIR爲32kbit/s。
u R3本地端口速率爲64kbit/s,對此PVC進行流量整形 。
3.7.2 實驗拓撲
安照圖3-8這個拓撲圖進行實驗
圖3-8,實驗拓撲示意圖
3.7.3 所需設備
l 4臺路由器,一臺配置爲幀中繼交換機
l 3條背對背線纜
l PC一臺
3.7.4 實驗步驟
第1步 安照幀中繼的配置步驟R5幀中繼封裝
第2步 配置地址靜態映射
第3步 配置路由協議
第4步 啓動FRTS
第5步 爲每條PVC配置一個映射類
第6步 在子接口上應用幀中繼映射類
在本實驗中只在R5到R3的PVC上做流量整形。
3.7.5 完整配置
例3-16 R5的完整配置
hostname R5
!
interface Loopback1
ip address 172.16.5.1 255.255.255.0
!
interface Serial1/0
no ip address
encapsulation frame-relay
no fair-queue
serial restart_delay 0
frame-relay traffic-shaping
!
interface Serial1/0.1 multipoint
ip address 172.16.1.5 255.255.255.248
frame-relay class 64k
frame-relay map ip 172.16.1.3 503 broadcast
frame-relay map ip 172.16.1.2 502 broadcast
!
router ospf 501
log-adjacency-changes
network 172.16.1.0 0.0.0 .7 area 0
network 172.16.5.0 0.0.0 .255 area 500
neighbor 172.16.1.2 priority 1
neighbor 172.16.1.3 priority 1
!
map-class frame-relay 64k
frame-relay cir 1544000
frame-relay bc 8000
frame-relay be 64000
frame-relay mincir 32000
frame-relay adaptive-shaping becn
!
例3-17 R2的完整配置
hostname R2
!
interface Loopback1
ip address 172.16.2.1 255.255.255.0
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart_delay 0
!
interface Serial1/0.1 multipoint
ip address 172.16.1.2 255.255.255.248
frame-relay map ip 172.16.1.3 203 broadcast
frame-relay map ip 172.16.1.5 205 broadcast
!
router ospf 201
log-adjacency-changes
redistribute connected
network 172.16.1.0 0.0.0 .7 area 0
network 172.16.2.0 0.0.0 .255 area 200
neighbor 172.16.1.5 priority 1
neighbor 172.16.1.3 priority 1
!
例3-18 R3的完整配置
hostname R3
!
interface Loopback1
ip address 172.16.3.1 255.255.255.0
!
interface Serial1/0
no ip address
encapsulation frame-relay
serial restart_delay 0
!
interface Serial1/0.1 multipoint
ip address 172.16.1.3 255.255.255.248
frame-relay map ip 172.16.1.5 305 broadcast
frame-relay map ip 172.16.1.2 302 broadcast
!
!
router ospf 301
log-adjacency-changes
redistribute connected
network 172.16.1.0 0.0.0 .7 area 0
network 172.16.3.0 0.0.0 .255 area 300
neighbor 172.16.1.2 priority 1
neighbor 172.16.1.5 priority 1
3.7.6 驗證配置
在R5上使用show frame-relay pvc 503 驗證流量整形的配置情況,見例3-20所示信息。
例3-19 在R5上show frame-relay pvc 503的結果
R5#show frame-relay pvc 503
PVC Statistics for interface Serial1/0 (Frame Relay DTE)
DLCI = 503, DLCI USAGE = LOCAL, PVC STATUS = ACTIVE, INTERFACE = Serial1/0.1
input pkts 28 output pkts 28 in bytes 2236
out bytes 2344 dropped pkts 0 in FECN pkts 0
in BECN pkts 0 out FECN pkts 0 out BECN pkts 0
in DE pkts 0 out DE pkts 0
out bcast pkts 0 out bcast bytes 0
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
Shaping adapts to BECN
pvc create time 00:08:27, last time pvc status changed 00:07:18
cir 1544000 bc 15440 be 64000 byte limit 9930 interval 10
mincir 32000 byte increment 1930 Adaptive Shaping BECN
pkts 28 bytes 2344 pkts delayed 0 bytes delayed 0
shaping inactive
traffic shaping drops 0
Queueing strategy: fifo
Output queue 0/40, 0 drop, 0 dequeued
R5#
例3-20 show ip route 所得路由信息
R5#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF , IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
C 172.16.5.0/24 is directly connected, Loopback1
C 172.16.1.0/29 is directly connected, Serial1/0.1
O IA 172.16.3.1/32 [110/65] via 172.16.1.3, 00:06:27, Serial1/0.1
O IA 172.16.2.1/32 [110/65] via 172.16.1.2, 00:06:27, Serial1/0.1
R5#
例3-21 show ip ospf neighbor
R5#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
172.16.3.1 1 FULL/BDR 00:01:59 172.16.1.3 Serial1/0.1
172.16.2.1 1 FULL/DROTHER 00:01:41 172.16.1.2 Serial1/0.1
R5#
1
收藏