! partie 1.1 ! enable conf t hostname EL_Router_B-1 ! line con 0 logging synchronous exit no ip domain-lookup ! int fa0/0 ip address 192.168.99.2 255.255.255.252 no shutdown int fa0/1 no ip address no shutdown int fa0/1.10 encapsulation dot1q 10 native ip address 172.17.10.1 255.255.255.0 int fa0/1.20 encapsulation dot1q 20 ip address 172.17.20.1 255.255.255.0 int fa0/1.66 encapsulation dot1q 66 ip address 172.17.66.1 255.255.255.0 int fa1/0 no ip address no shutdown int fa1/0.30 encapsulation dot1q 30 ip address 192.168.30.1 255.255.255.0 int fa1/0.66 encapsulation dot1q 66 ip address 192.168.66.1 255.255.255.0 exit ! ! partie 1.3 ! ip dhcp excluded-address 172.17.10.1 ip dhcp excluded-address 172.17.20.1 ip dhcp pool VOICE network 172.17.20.0 255.255.255.0 default-router 172.17.20.1 option 150 ip 172.17.20.1 exit ip dhcp pool DATA network 172.17.10.1 255.255.255.0 default-router 172.17.10.1 option 150 ip 172.17.20.1 exit ! ! partie 1.4 ! telephony-service max-ephones 10 max-dn 10 no auto-reg-ephone ip source-address 172.17.20.1 port 2000 exit ! ! partie 1.5 ! ephone-dn 1 number 5001 ephone-dn 2 number 5002 ephone-dn 3 number 5003 exit ! ephone 1 mac-address 000C.8516.EB2D button 1:1 ephone 2 mac-address 0003.E452.D35B button 1:2 ephone 3 mac-address 0002.4AD6.8801 button 1:3 exit ! ! partie 3 ! router rip version 2 network 192.168.99.0 network 192.168.30.0 network 172.17.20.0 network 172.17.10.0 exit ! dial-peer voice 1 voip destination-pattern 4... session target ipv4:172.16.10.1 exit ! ! partie 7.2 ! class-map match-all flux-voip-barca match input-interface fa0/1.20 exit ! policy-map politique-QoS-voip-barca class flux-voip-barca set ip dscp 46 exit exit ! int fa0/0 service-policy output politique-QoS-voip-barca exit !