All right, once again at the CLI and what we want to do here is we want to
create a policy map that references the class maps that we created in the last
section.
So let's go ahead and do a policy map command.
Do our question mark and we see we can specify a type again with iOS X E and
standard MQC.
We don't need to worry about the type.
I'm just going to specify a name of CBT in this case.
And now I'll use that class command.
This allows me to specify a class map name of one I've created or again that WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
This allows me to specify a class map name of one I've created or again that
class default option.
I'll use DSCP E F to create my queue that matches according to E F and I can
specify the priority command here.
Turn this into a priority queue.
Now that question mark here, I could just hit enter and that will turn it into
a strict priority queue.
Usually that's not a good idea or I can specify some amount of bandwidth to
reserve and not just reserve for it,
but actually turn it into a limit when things are congested.
So I love that it's kilobits here by the way, not just all one word, but either WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So I love that it's kilobits here by the way, not just all one word, but either
way we could specify 100 kilobits
and that would be maybe decent depending on the situation.
So from here I can exit out and I can specify my next class.
In this case, maybe I want to do DSCP E F for X.
That would be that class that I defined as well.
And then I could use the band with command.
And same thing here, I've got kilobits per second so I could specify 50,000 to WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And same thing here, I've got kilobits per second so I could specify 50,000 to
make it 50 megabits per second
since 1000 kilobits turns into a megabit there.
And so we've got that option.
I can also do another class statement here, go to class default.
And even though we didn't configure class default with a class map, again it's
system configured.
I can run a question mark here, I can see my options, I could enable that fair
queue.
So that's not a bad idea in class default.
I might also want to give it a bandwidth reservation.
Maybe I want something like bandwidth percent and then we can specify 25 here. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Maybe I want something like bandwidth percent and then we can specify 25 here.
So I'm going to reserve 25% of the bandwidth.
Oh, that's right.
I forgot I already specified a hard bandwidth of 50 megabits per second.
We can't mix and match those.
So yeah, that would be an option that we could use if we had used percent
earlier.
Instead, we'd have to calculate it ourselves.
So maybe it's a gig link and I don't want to reserve 250 megabits per second
for that gig link. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So there we go.
That would be a policy map configuration.
Now all we need to do is apply it to an interface.
Let's get on to interface gig one zero.
And the way we do this is with the again service policy command.
Do a question mark.
We see we have input and output.
Usually we're talking about output.
Now I specify the name CBT and I hit enter.
Now I want to show a very powerful verification command, which is very useful
for not only
verifying configurations, but also in trying to troubleshoot some issues. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
We can do show policy map interface and then specify our interface name.
This is a wonderful command.
It has served me wonderfully over the years.
I highly recommend getting in mind to use this.
So there's all kinds of show commands that we might get distracted by that
might be trying to show what we think is configured, all these various things.
This shows us not only what's actually configured on the interface in terms of
the various cues, but it even shows us how many packets were received with a WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
the various cues, but it even shows us how many packets were received with a
particular tag.
So we can make sure our cues are working by going and generating traffic that
uses some of these tags.
Maybe make sure that, yeah, I think this is going to match AF41 or 42 or 43,
but maybe I forgot to make it match any instead of match all.
And then my packets are landing here in class default, so that wouldn't be good
.
But we do see that we've got a lot of options here.
We see that it does clarify that the priority classes are listed separate. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
We see that it does clarify that the priority classes are listed separate.
So I can see the priority class up here.
I can see the rest of them down below.
Very, very powerful command that show policy map interface.
So let's keep that in mind as well as we move forward.