3 20 24 QOS Polciy MAP ICMP HTTP student Lab

Опубликовано: 27 Сентябрь 2026
на канале: Richard Mehok
79
2

hostname Router2

enable password cyber

interface GigabitEthernet0/0/1
ip address 8.8.8.100 255.255.255.0
ip nat outside
no shutdown

interface Serial0/2/0
bandwidth 250
ip address 10.1.1.2 255.255.255.0
ip nat inside
no shutdown

router ospf 1
log-adjacency-changes
passive-interface GigabitEthernet0/0/1
network 0.0.0.0 255.255.255.255 area 0
default-information originate

ip nat inside source list 1 interface GigabitEthernet0/0/1 overload

access-list 1 permit any

line vty 0 4
password cisco
login
__________________________________________________

hostname Router1

enable password cyber

ip dhcp pool pc
network 10.1.2.0 255.255.255.0
default-router 10.1.2.254
dns-server 8.8.8.8

interface GigabitEthernet0/0/0
ip address 10.1.2.254 255.255.255.0
no shutdown

interface Serial0/1/0
bandwidth 250
ip address 10.1.1.1 255.255.255.0
clock rate 250000
no shutdown

router ospf 1
log-adjacency-changes
network 0.0.0.0 255.255.255.255 area 0

line vty 0 4
password cisco
login
===================================================

make sure routing is converged
show ip route Router1
ping Inside PC1 to 8.8.8.8 Server-PT
show policy-map
show policy-map int s0/1/0

===================================================

Router1

class-map match-all voice
match protocol rtp
class-map match-all http
match protocol http
class-map match-all icmp
match protocol icmp

policy-map mark
class voice
priority 100
set ip dscp ef
Expedited Forwarding (EF) - RFC 3246 defines EF as the DSCP decimal value 46 (binary 101110).

class http
bandwidth 50
set ip dscp af31
Assured Forwarding (AF) - RFC 2597 defines AF to use the 5 most significant DSCP bits to indicate queues and drop preference

class icmp
bandwidth 25
set ip dscp af11

int s0/1/0
service-policy output mark

sh policy-map
sh policy-map interface s0/1/0

===================================================

class-map match-all ftp
match protocol ftp

policy-map mark
class ftp
bandwidth 15