
二:实验要求:
在 R2上基于PVC来分配带宽,PVC201可以分得20%的带宽,PVC203分得55%的带宽
三:实验配置:
R1#
interface Loopback0
ip address
interface Serial3/0
ip address 123.0.0.1 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 123.0.0.2 102 broadcast
frame-relay map ip 123.0.0.3 102 broadcast
no frame-relay inverse-arp
router ospf 1
network
R2#
class-map match-all PVC203 //步骤1 建立一个class map来表示网络流量
match fr-dlci 203 //指定DLCI号作为匹配标准
class-map match-all PVC201
match fr-dlci 201
policy-map PVC //步骤2 创建一个policy map
class PVC201
bandwidth percent 20
class PVC203 // 应用class map到policy map中
bandwidth percent 55 // 设定带宽的百分比
interface Loopback0
ip address
interface Serial3/0
encapsulation frame-relay
no frame-relay inverse-arp
service-policy output PVC //步骤3 把policy map绑定到接口的出方向
interface Serial3/0.123 multipoint
ip address 123.0.0.2 255.255.255.0
frame-relay map ip 123.0.0.1 201 broadcast
frame-relay map ip 123.0.0.3 203 broadcast
router ospf 1
network
neighbor 123.0.0.1
neighbor 123.0.0.3
R3#
interface Loopback0
ip address
interface Serial3/0
ip address 123.0.0.3 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 123.0.0.1 302 broadcast
frame-relay map ip 123.0.0.2 302 broadcast
router ospf 1
network
R3#
interface Loopback0
ip address
interface Serial3/0
ip address 123.0.0.3 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 123.0.0.1 302 broadcast
frame-relay map ip 123.0.0.2 302 broadcast
router ospf 1
network
四:调试信息:
R2#show policy-map int s3/0
Serial3/0
Service-policy output: PVC
Class-map: PVC201 (match-all)
707 packets, 522012 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: fr-dlci 201
Queueing
Output Queue: Conversation 265
Bandwidth 20 (%)
Bandwidth 308 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 614/513828
(depth/total drops/no-buffer drops) 0/0/0
Class-map: PVC203 (match-all)
707 packets, 522012 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: fr-dlci 203
Queueing
Output Queue: Conversation 266
Bandwidth 55 (%)
Bandwidth 849 (kbps) Max Threshold 64 (packets)
(pkts matched/bytes matched) 614/513828
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-default (match-any)
278 packets, 3892 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
R2#ping
Protocol [ip]:
Target IP address:
Repeat count [5]: 100
Datagram size [100]: 100
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface:
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to
Packet sent with a source address of
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (100/100), round-trip min/avg/max = 16/104/268 ms
R2#ping
Protocol [ip]:
Target IP address:
Repeat count [5]: 100
Datagram size [100]: 100
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface:
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 100, 100-byte ICMP Echos to
Packet sent with a source address of
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (100/100), round-trip min/avg/max = 20/111/300 ms
//按理来说到
上一篇:CCIE分解:帧中继子接口和流量整形(Traffic Shaping)配置
下一篇:QOS试验:修整基于类的加权公平队列
