02-24-2020 10:24 PM - edited 02-24-2020 10:26 PM
We have WAN interface having BW 100Mbps and wanted to configure QoS so that any server source 10.1.1.0/24 to destination 10.2.1.0/24 should have dedicated BW 20Mbps and rest should get allocated to all other traffic Will this archive with below configuration? What I haven't define class-default in policy-map will it drop the remaining traffic?
ip access-list extended Server-ACL
permit ip 10.1.1.0 0.0.0.255 10.2.1.0 0.0.0.255
!
class-map match-all Server-Class
match access-group name Server-ACL
!
policy-map Server-Qos
class Server-ACL
shape average 20000000
!
interface GigabitEthernet0/0/0
des WAN interface
service-policy output Server-Qos
bandwidth 100000
!
02-24-2020 11:57 PM - edited 02-25-2020 12:01 AM
Hello
The below is a very simple example of a Hqos that will provide a minimum bw of 20mb to the server class and provide fair queuing to the rest of the traffic, it doesn't show or allocate classification of any routing protocols and management traffic in times of congestion which is recommended.
Example Hqos:
policy-map child
class Server-ACL
bandwidth 20480 < minimum bw allocation
class class-default
fair queue
policy-map parent
class class-default
shape average <wan committed access rate in bps)
service-policy child
interface GigabitEthernet0/0/0
des WAN interface
service-policy output parent
02-25-2020 09:31 AM
02-25-2020 01:17 AM
Hello,
even when you do not specifically define the default class, it is still created (by default). So all traffic that does not match any of the defined classes goes to the default class. The default queuing for the default class used to be WFQ, not sure if that is true in all cases, and for all IOS versions...
R1#show policy-map interface gigabitEthernet 0/0
GigabitEthernet0/0
Service-policy output: Server-Qos
Class-map: Server-Class (match-all)
0 packets, 0 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: access-group name Server-ACL
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
shape (average) cir 20000000, bc 80000, be 80000
target shape rate 20000000
Class-map: class-default (match-any)
9 packets, 835 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: any
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 9/835
R1#
By the way, make sure to correct the syntax error in your config:
class-map match-all Server-Class
match access-group name Server-ACL
!
policy-map Server-Qos
class Server-ACL --> this need to be class Server-Class
shape average 20000000
02-25-2020 09:36 AM
02-25-2020 09:32 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide