You are on page 1of 7

Router A en conf t interface FastEthernet0/0 ip address 10.10.10.1 255.255.255.0 exit interface FastEthernet0/1 ip address 192.168.1.1 255.255.255.

0 exit interface Loopback0 ip address 192.168.0.1 255.255.255.0 exit router ospf 1 network 10.10.10.0 0.0.0.255 area 1 network 192.168.1.0 0.0.0.255 area 1 exit access-list 101 permit udp any any range 16384 32768 access-list 102 permit tcp any any eq www access-list 103 permit ip any any access-list 104 permit tcp any any eq ftp access-list 104 permit tcp any any eq ftp-data access-list 104 permit tcp any eq ftp-data any class-map match-all HTTP match access-group 102 class-map match-all smtp match access-group 105 class-map match-all best-effort match access-group 103 class-map match-all Voice match access-group 101 class-map match-any ftp match access-group 104 exit policy-map QOS-OUT class Voice set ip dscp ef bandwidth 4000 class HTTP set ip dscp af31 bandwidth 1000 class ftp set ip dscp af23 bandwidth 2000 class smtp set ip dscp af22 bandwidth 1000 class best-effort set ip dscp default bandwidth 2000 class class-default exit exit policy-map OUT class class-default shape average 10000000 service-policy QOS-OUT exit exit interface FastEthernet0/1

service-policy output OUT exit Router 1 interface FastEthernet0/0 ip address 192.168.1.2 255.255.255.0 exit interface FastEthernet0/1 ip address 192.168.12.1 255.255.255.0 exit interface Loopback0 ip address 1.1.1.1 255.255.255.255 exit router ospf 1 network 192.168.1.0 0.0.0.255 area 1 network 192.168.12.0 0.0.0.255 area 1 exit interface FastEthernet0/0 mpls ip mpls label protocol ldp exit interface FastEthernet0/1 mpls ip mpls label protocol ldp exit class-map match-all MPLS-BE match mpls experimental topmost 0 class-map match-all MPLS-AF33 match mpls experimental topmost 3 class-map match-all MPLS-AF22 match mpls experimental topmost 2 class-map match-all MPLS-AF11 match mpls experimental topmost 1 class-map match-all MPLS-EF match mpls experimental topmost 5 class-map match-all MPLS-AF43 match mpls experimental topmost 4 class-map match-all IP-AF11 match ip precedence 1 class-map match-all IP-AF22 match ip precedence 2 class-map match-all IP-BE match ip precedence 0 class-map match-all IP-AF33 match ip precedence 3 class-map match-all IP-AF43 match ip precedence 4 class-map match-all IP-EF match ip precedence 5 exit policy-map set-MPLS-PHB class IP-BE set mpls experimental imposition 0 class IP-AF11 set mpls experimental imposition 1 class IP-AF22

set mpls experimental imposition class IP-AF33 set mpls experimental imposition class IP-AF43 set mpls experimental imposition class IP-EF set mpls experimental imposition exit exit policy-map output-qos class MPLS-BE bandwidth percent 5 random-detect class MPLS-AF11 bandwidth percent 10 random-detect class MPLS-AF22 bandwidth percent 10 random-detect class MPLS-AF33 bandwidth percent 15 random-detect class MPLS-AF43 bandwidth percent 20 random-detect class MPLS-EF bandwidth percent 30 random-detect exit exit interface FastEthernet0/0 service-policy input set-MPLS-PHB exit interface FastEthernet0/1 max-reserved-bandwidth 90 service-policy output output-qos exit Router 2

2 3 4 5

interface FastEthernet0/0 ip address 192.168.12.2 255.255.255.0 exit interface FastEthernet0/1 ip address 192.168.23.1 255.255.255.0 exit interface Loopback0 ip address 2.2.2.2 255.255.255.255 exit router ospf 1 network 192.168.12.0 0.0.0.255 area 1 network 192.168.23.0 0.0.0.255 area 1 exit interface FastEthernet0/0 mpls ip mpls label protocol ldp exit interface FastEthernet0/1 mpls ip

mpls label protocol ldp exit class-map match-all mpls-in match mpls experimental topmost 3 exit policy-map mpls-in class mpls-in set mpls experimental topmost 2 exit interface FastEthernet0/0 service-policy input mpls-in exit Router 3 interface FastEthernet0/0 ip address 192.168.23.2 255.255.255.0 exit interface FastEthernet0/1 ip address 192.168.34.1 255.255.255.0 exit interface Loopback0 ip address 3.3.3.3 255.255.255.255 exit router ospf 1 network 192.168.23.0 0.0.0.255 area 1 network 192.168.34.0 0.0.0.255 area 1 exit interface FastEthernet0/0 mpls ip mpls label protocol ldp exit interface FastEthernet0/1 mpls ip mpls label protocol ldp exit class-map match-all qos-group-EF match qos-group 5 class-map match-all qos-group-AF43 match qos-group 4 class-map match-all qos-group-BE match qos-group 0 class-map match-all qos-group-AF33 match qos-group 3 class-map match-all qos-group-AF11 match qos-group 1 class-map match-all qos-group-AF22 match qos-group 2 class-map match-all MPLS-BE match mpls experimental topmost 0 class-map match-all MPLS-AF33 match mpls experimental topmost 3 class-map match-all MPLS-AF11 match mpls experimental topmost 1 class-map match-all MPLS-AF22 match mpls experimental topmost 2 class-map match-all MPLS-EF match mpls experimental topmost 5 class-map match-all MPLS-AF43

match mpls experimental topmost 4 exit policy-map qos-group-in class MPLS-BE set qos-group mpls experimental topmost class MPLS-AF11 set qos-group mpls experimental topmost class MPLS-AF22 set qos-group mpls experimental topmost class MPLS-AF33 set qos-group mpls experimental topmost class MPLS-AF43 set qos-group mpls experimental topmost class MPLS-EF set qos-group mpls experimental topmost exit exit policy-map qos-group-out class qos-group-BE bandwidth percent 5 random-detect set precedence qos-group class qos-group-AF11 bandwidth percent 10 random-detect set precedence qos-group class qos-group-AF22 bandwidth percent 10 random-detect set precedence qos-group class qos-group-AF33 bandwidth percent 15 random-detect set precedence qos-group class qos-group-AF43 bandwidth percent 20 random-detect set precedence qos-group class qos-group-EF bandwidth percent 30 random-detect set precedence qos-group exit exit interface FastEthernet0/0 service-policy input qos-group-in exit interface FastEthernet0/1 max-reserved-bandwidth 90 service-policy output qos-group-out Router 4 interface FastEthernet0/0 ip address 192.168.34.2 255.255.255.0 exit interface FastEthernet0/1 ip address 192.168.4.1 255.255.255.0 exit

interface Loopback0 ip address 4.4.4.4 255.255.255.255 exit router ospf 1 router-id 4.4.4.4 log-adjacency-changes network 4.4.4.4 0.0.0.0 area 1 network 192.168.4.0 0.0.0.255 area 1 network 192.168.34.0 0.0.0.255 area 1 exit interface FastEthernet0/0 mpls ip mpls label protocol ldp exit interface FastEthernet0/1 mpls ip mpls label protocol ldp exit class-map match-all qos-group-EF match qos-group 5 class-map match-all qos-group-AF43 match qos-group 4 class-map match-all qos-group-BE match qos-group 0 class-map match-all qos-group-AF33 match qos-group 3 class-map match-all qos-group-AF11 match qos-group 1 class-map match-all qos-group-AF22 match qos-group 2 class-map match-all MPLS-BE match mpls experimental topmost 0 class-map match-all MPLS-AF33 match mpls experimental topmost 3 class-map match-all MPLS-AF11 match mpls experimental topmost 1 class-map match-all MPLS-AF22 match mpls experimental topmost 2 class-map match-all MPLS-EF match mpls experimental topmost 5 class-map match-all MPLS-AF43 match mpls experimental topmost 4 exit policy-map qos-group-in class MPLS-BE set qos-group mpls experimental topmost class MPLS-AF11 set qos-group mpls experimental topmost class MPLS-AF22 set qos-group mpls experimental topmost class MPLS-AF33 set qos-group mpls experimental topmost class MPLS-AF43 set qos-group mpls experimental topmost class MPLS-EF set qos-group mpls experimental topmost exit exit policy-map qos-group-out

class qos-group-BE bandwidth percent 5 random-detect set precedence qos-group class qos-group-AF11 bandwidth percent 10 random-detect set precedence qos-group class qos-group-AF22 bandwidth percent 10 random-detect set precedence qos-group class qos-group-AF33 bandwidth percent 15 random-detect set precedence qos-group class qos-group-AF43 bandwidth percent 20 random-detect set precedence qos-group class qos-group-EF bandwidth percent 30 random-detect set precedence qos-group exit exit interface FastEthernet0/0 service-policy input qos-group-in exit interface FastEthernet0/1 max-reserved-bandwidth 90 service-policy output qos-group-out exit Router B en conf t interface FastEthernet0/0 ip address 192.168.4.2 255.255.255.0 exit interface FastEthernet0/1 ip address 11.11.11.1 255.255.255.0 exit interface Loopback0 ip address 192.168.100.1 255.255.255.0 exit router ospf 1 network 11.11.11.0 0.0.0.255 area 1 network 192.168.4.0 0.0.0.255 area 1 exit ip cef interface serial 0/0.111 mpls label protocol ldp mpls ip

You might also like