以下范例是在frame-relay interface做PQ ----------------------------- interface FastEthernet0 ip address 192.168.1.254 255.255.255.0 ! interface Serial 0 no ip address encapsulation frame-relay priority-group 3 frame-relay lmi-type ansi ! int
以下范例是在frame-relay interface做PQ-----------------------------
interface FastEthernet0
ip address 192.168.1.254 255.255.255.0
!
interface Serial 0
no ip address
encapsulation frame-relay
priority-group 3
frame-relay lmi-type ansi
!
interface Serial0.101 point-to-point
ip address 192.168.25.133 255.255.255.252
no ip mroute-cache
frame-relay interface-dlci 101
!
access-list 150 permit ip host 192.168.1.1 any
priority-list 1 protocol ip high list 150
priority-list 1 default low
priority-list 1 queue-limit 1000 500 600 800
------------------------------
interface FastEthernet0
ip address 192.168.1.254 255.255.255.0
!
interface Serial 0
no ip address
encapsulation frame-relay
frame-relay traffic-shanp
frame-relay lmi-type ansi
!
interface Serial0.101 point-to-point
ip address 192.168.25.133 255.255.255.252
no ip mroute-cache
frame-relay class PQ
frame-relay interface-dlci 101
!
access-list 150 permit ip host 192.168.1.1 any
priority-list 1 protocol ip high list 150
priority-list 1 default low
priority-list 1 queue-limit 1000 500 600 800
!
map-class frame-relay PQ
frame-relay cir 64000
frame-relay bc 1000
frame-relay adaptive-shaping becn
frame-relay priority-group 1
------------------------------
CBFWQ on frame-relay PVC
------------------------------
class-map match-any AAA
match access-group 150
!
policy-map QoS
class-map AAA
bandwidth 24000
!
interface FastEthernet0
ip address 192.168.1.254 255.255.255.0
!
interface Serial 0
no ip address
encapsulation frame-relay
frame-relay traffic-shanp
frame-relay lmi-type ansi
!
interface Serial0.101 point-to-point
ip address 192.168.25.133 255.255.255.252
no ip mroute-cache
frame-relay class QoS
frame-relay interface-dlci 101
!
access-list 150 permit ip host 192.168.1.1 any
!
map-class frame-relay QoS
frame-relay cir 64000
frame-relay bc 1000
frame-relay adaptive-shaping becn
service-policy output QoS