Sách Lab ONT Tài liệu thực hành dành cho học viên R3config-if# no shutdown R3config-if# interface serial 0/1/1 R3config-if# clockrate 64000 R3config-if# bandwidth 64 R3config-if# encapsu
Trang 1Sách Lab ONT Tài liệu thực hành dành cho học viên
R3(config-if)# no shutdown
R3(config-if)# interface serial 0/1/1
R3(config-if)# clockrate 64000
R3(config-if)# bandwidth 64
R3(config-if)# encapsulation ppp
R3(config-if)# ppp multilink
R3(config-if)# ppp multilink group 1
R3(config-if)# no shutdown
R4(config)# interface serial 0/0/0
R4(config-if)# bandwidth 64
R4(config-if)# encapsulation ppp
R4(config-if)# ppp multilink
R4(config-if)# ppp multilink group 1
R4(config-if)# no shutdown
R4(config-if)# interface serial 0/0/1
R4(config-if)# bandwidth 64
R4(config-if)# encapsulation ppp
R4(config-if)# ppp multilink
R4(config-if)# ppp multilink group 1
R4(config-if)# no shutdown
R3(config)# interface multilink 1
R3(config-if)# ip address 172.16.34.3 255.255.255.0
R4(config)# interface multilink 1
R4(config-if)# ip address 172.16.34.4 255.255.255.0
Kieåm tra connection baèng leänh ping:
Trang 3Sách Lab ONT Tài liệu thực hành dành cho học viên
Step 3: Caáu hình Multilink PPP LFI:
R3(config)# interface multilink 1
R3(config-if)# shutdown
R3(config-if)# fair-queue
R3(config-if)# ppp multilink fragment delay 15
R3(config-if)# ppp multilink interleave
R3(config-if)# no shutdown
R4(config)# interface multilink 1
R4(config-if)# shutdown
R4(config-if)# fair-queue
R4(config-if)# ppp multilink fragment delay 15
R4(config-if)# ppp multilink interleave
R4(config-if)# no shutdown
Trang 4Step 4: Caáu hình Routing:
R1(config)# router ospf 1
R1(config-router)# network 172.16.0.0 0.0.255.255 area 0
R2(config)# router ospf 1
R2(config-router)# network 172.16.0.0 0.0.255.255 area 0
R3(config)# router ospf 1
R3(config-router)# network 172.16.0.0 0.0.255.255 area 0
R4(config)# router ospf 1
R4(config-router)# network 172.16.0.0 0.0.255.255 area 0
Step 5: Caáu hình Generic traffic shaping
R4(config)# interface multilink 1
R4(config-if)# traffic-shape rate 128000
Step 6: Caáu hình CAR:
Trang 5Sách Lab ONT Tài liệu thực hành dành cho học viên
Final Configurations
R1# show run
!
hostname R1
!
interface FastEthernet0/0
ip address 172.16.10.1 255.255.255.0
no shutdown
!
interface FastEthernet0/1
ip address 172.16.14.1 255.255.255.0
no shutdown
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
!
end
R2# show run
!
hostname R2
!
interface FastEthernet0/0
ip address 172.16.20.2 255.255.255.0
no shutdown
!
interface Serial0/0/1
ip address 172.16.23.2 255.255.255.0
clock rate 64000
no shutdown
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
!
end
R3# show run
!
hostname R3
!
interface Multilink1
ip address 172.16.34.3 255.255.255.0
fair-queue 64 16 0
ppp multilink
ppp multilink fragment delay 15
ppp multilink interleave
ppp multilink group 1
!
interface Serial0/0/1
ip address 172.16.23.3 255.255.255.0
rate-limit output 56000 1500 4000 conform-action continue exceed-action drop
no shutdown
!
interface Serial0/1/0
bandwidth 64
no ip address
encapsulation ppp
clock rate 64000
ppp multilink
ppp multilink group 1
no shutdown
!
interface Serial0/1/1
bandwidth 64
Trang 6no shutdown
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
!
end
R4# show run
!
hostname R4
!
interface Multilink1
ip address 172.16.34.4 255.255.255.0
fair-queue 64 16 0
traffic-shape rate 128000 7936 7936 1000
ppp multilink
ppp multilink interleave
ppp multilink group 1
ppp multilink fragment delay 15
!
interface FastEthernet0/1
ip address 172.16.14.4 255.255.255.0
no shutdown
!
interface Serial0/0/0
bandwidth 64
no ip address
encapsulation ppp
ppp multilink
ppp multilink group 1
no shutdown
!
interface Serial0/0/1
bandwidth 64
no ip address
encapsulation ppp
ppp multilink
ppp multilink group 1
no shutdown
!
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
!
end
Trang 7Sách Lab ONT Tài liệu thực hành dành cho học viên
1 Mục tiêu:
Cấu hình GRE tunnel
Cấu hình QoS Pre-classify
Kiểm tra hoạt động của QoS Pre-classify
2 Cấu hình:
Step 1: Cấu hình IP như hình vẽ:
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 192.168.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 192.168.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 192.168.23.2 255.255.255.0
R2(config-if)# clock rate 128000
R2(config-if)# no shutdown
Trang 8R3(config-if)# ip address 192.168.23.3 255.255.255.0
R3(config-if)# no shutdown
Step 2: Cấu hình Static route:
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.12.2
R3(config)# ip route 0.0.0.0 0.0.0.0 192.168.23.2
Step 3: Cấu hình GRE Tunnel:
R1(config)# interface tunnel 0
R1(config-if)# tunnel source serial 0/0/0
R1(config-if)# tunnel destination 192.168.23.3
R1(config-if)# ip address 172.16.13.1 255.255.255.0
R3(config)# interface tunnel 0
R3(config-if)# tunnel source serial 0/0/1
R3(config-if)# tunnel destination 192.168.12.1
R3(config-if)# ip address 172.16.13.3 255.255.255.0
Step 4: cấu hình routing:
R1(config)# router eigrp 1
R1(config-router)# no auto-summary
R1(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 5: Bật chế độ QoS Pre-classify:
Trang 9Sách Lab ONT Tài liệu thực hành dành cho học viên
R1(config)# interface tunnel 0
R1(config-if)# qos pre-classify
R3(config)# interface tunnel 0
R3(config-if)# qos pre-classify
Final Configurations