Mục tiêu: Caáu hình AutoQoS discovery Caáu hình Auto QoS Kieåm tra Auto QoS 2... Kieåm tra running config: Caáu hình AutoQoS treân interface S0/0/0... Step 4: Cấu Auto QoS với DSCP:
Trang 1R1# show run
!
hostname R1
!
interface Tunnel0
ip address 172.16.13.1 255.255.255.0
qos pre-classify
tunnel source Serial0/0/0
tunnel destination 192.168.23.3
!
interface FastEthernet0/0
ip address 172.16.10.1 255.255.255.0
no shutdown
!
interface Serial0/0/0
ip address 192.168.12.1 255.255.255.0
fair-queue
clock rate 800000
no shutdown
!
router eigrp 1
network 172.16.0.0
no auto-summary
!
ip route 0.0.0.0 0.0.0.0 192.168.12.2
!
end
R2# show run
!
hostname R2
!
interface Serial0/0/0
ip address 192.168.12.2 255.255.255.0
fair-queue
no shutdown
!
interface Serial0/0/1
ip address 192.168.23.2 255.255.255.0
clock rate 800000
no shutdown
!
end
R3# show run
!
hostname R3
!
interface Tunnel0
ip address 172.16.13.3 255.255.255.0
qos pre-classify
tunnel source Serial0/0/1
tunnel destination 192.168.12.1
!
interface FastEthernet0/1
ip address 172.16.20.3 255.255.255.0
no shutdown
!
interface Serial0/0/1
ip address 192.168.23.3 255.255.255.0
no shutdown
!
router eigrp 1
network 172.16.0.0
no auto-summary
Trang 2Lab 5.1 AutoQoS
1 Mục tiêu:
Caáu hình AutoQoS discovery
Caáu hình Auto QoS
Kieåm tra Auto QoS
2 Caáu hình:
Step 1: Caáu hình ñòa chæ IP nhö hình veõ:
R1(config)# interface fastethernet 0/0
R1(config-if)# ip address 172.16.10.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# interface serial 0/0/0
R1(config-if)# bandwidth 800
R1(config-if)# ip address 172.16.12.1 255.255.255.0
R1(config-if)# clock rate 800000
R1(config-if)# no shutdown
R2(config)# interface serial 0/0/0
R2(config-if)# bandwidth 800
R2(config-if)# ip address 172.16.12.2 255.255.255.0
R2(config-if)# no shutdown
R2(config-if)# interface serial 0/0/1
R2(config-if)# bandwidth 128
R2(config-if)# ip address 172.16.23.2 255.255.255.0
R2(config-if)# clock rate 128000
R2(config-if)# no shutdown
Trang 3R3(config)# interface fastethernet 0/0
R3(config-if)# ip address 172.16.20.3 255.255.255.0
R3(config-if)# no shutdown
R3(config-if)# interface serial 0/0/1
R3(config-if)# bandwidth 128
R3(config-if)# ip address 172.16.23.3 255.255.255.0
R3(config-if)# no shutdown
TrafGen(config)#interface fastethernet 0/0
TrafGen(config-if)# ip address 172.16.10.4 255.255.255.0
TrafGen(config-if)# no shutdown
TrafGen(config-if)# interface fastethernet 0/1
TrafGen(config-if)# ip address 172.16.20.4
TrafGen(config-if)# no shutdown
TrafGen# tgn
TrafGen(TGN:OFF<Fa0/0:none)#
fastethernet 0/0
add tcp
rate 1000
L2-dest [enter MAC address of R1 Fa0/0]
L3-src 172.16.10.4
L3-dest 172.16.20.4
L4-dest 23
length random 16 to 1500
burst on
burst duration off 1000 to 2000
burst duration on 1000 to 3000
add fastethernet0/0 1
l4-dest 80
data ascii 0 GET /index.html HTTP/1.1
add fastethernet0/0 1
l4-dest 21
add fastethernet0/0 1
l4-dest 123
add fastethernet0/0 1
l4-dest 110
add fastethernet0/0 1
l4-dest 25
add fastethernet0/0 1
l4-dest 22
add fastethernet0/0 1
l4-dest 6000
!
end
TrafGen(TGN:ON,Fa0/0:8/8)# start
Step 2: Caáu hình rouing baèng EIGRP AS 1
R1(config)# router eigrp 1
R1(config-router)# no auto-summary
R1(config-router)# network 172.16.0.0
R2(config)# router eigrp 1
R2(config-router)# no auto-summary
R2(config-router)# network 172.16.0.0
R3(config)# router eigrp 1
R3(config-router)# no auto-summary
R3(config-router)# network 172.16.0.0
Step 3: Caáu hình Auto QoS
R1(config)# interface serial 0/0/0
R1(config-if)# auto discovery qos
Trang 5Kieåm tra running config:
Caáu hình AutoQoS treân interface S0/0/0
Trang 8Step 4: Cấu Auto QoS với DSCP:
R2(config)# interface serial 0/0/1
R2(config-if)# auto discovery qos trust
Trang 9Caáu hình auto QoS treân interface s 0/0/1 cuûa R2:
Trang 10Final Configurations
R1# show run
!
hostname R1
!
policy-map AutoQoS-Policy-Se0/0/0
class AutoQoS-Transactional-Se0/0/0
bandwidth remaining percent 49
random-detect dscp-based
set dscp af21
class AutoQoS-Bulk-Se0/0/0
bandwidth remaining percent 49
random-detect dscp-based
set dscp af11
class class-default
fair-queue
!
interface FastEthernet0/0
ip address 172.16.10.1 255.255.255.0
no shutdown
!
interface Serial0/0/0
ip address 172.16.12.1 255.255.255.0
auto qos
auto discovery qos
clock rate 800000
service-policy output AutoQoS-Policy-Se0/0/0
no shutdown
!
router eigrp 1
network 172.16.0.0
no auto-summary
!
end
R2# show run
!
hostname R2
!
Trang 11policy-map AutoQoS-Policy-Se0/0/1-Trust
class AutoQoS-Transactional-Trust
bandwidth remaining percent 25
random-detect dscp-based
class AutoQoS-Bulk-Trust
bandwidth remaining percent 25
random-detect dscp-based
class class-default
fair-queue
!
interface Serial0/0/0
ip address 172.16.12.2 255.255.255.0
no shutdown
!
interface Serial0/0/1
ip address 172.16.23.2 255.255.255.0
auto qos
auto discovery qos trust
clock rate 800000
service-policy output AutoQoS-Policy-Se0/0/1-Trust
no shutdown
!
router eigrp 1
network 172.16.0.0
no auto-summary
!
end
R3# show run
!
hostname R3
!
interface FastEthernet0/1
ip address 172.16.20.3 255.255.255.0
no shutdown
!
interface Serial0/0/1
ip address 172.16.23.3 255.255.255.0
no shutdown
!
router eigrp 1
network 172.16.0.0
no auto-summary
!
end