Exercices ACL
Exercices ACL
A "0" in the wildcard mask identifies IP address bits that must be checked.
Assuming the ACL in the graphic is correctly applied to an interface, what effect will the ACL have on network traffic?
All traffic to network 172.16.0.0 will be denied.
All TCP traffic will be permitted to and from network 172.16.0.0.
All telnet traffic from the 172.16.0.0 network to any destination will be denied.
All traffic from the 172.16.0.0 network will be denied to any other network.
3 The router IOS tests each condition statement in an ACL in sequence. Once a match is made, which of the following occurs?
(Choose two.)
The entire ACL must be deleted and recreated.
The router goes through the list again to verify that a match has been made.
Multiple ACLs can be placed on the same interface as long as they are in the same direction.
Assuming the ACL in the graphic is correctly applied to an interface, what effect will this ACL have on network traffic?
Host 192.168.15.4 will be denied ftp access to any destination, but will be permitted all other access.
All ftp traffic to host 192.168.15.4 will be denied.
No traffic will be denied because a "permit" statement does not exist in this ACL.
All nodes on 172.16.0.0 will be denied access when these statements are applied.
7 ACL statements operate in sequential, logical order. If a condition match is true, the rest of the ACL statements are not
checked. If all of the ACL statements are unmatched, what happens to the packet?
The packets will be placed in a buffer and forwarded when the ACL is removed.
The packets will be sent to the source with an error notification message.
The implicit permit any statement placed at the end of the list will allow the packets to flow through uninhibited.
The implicit deny any statement placed at the end of the list will cause the packets to be dropped.
9
Create a standard ACL that will deny traffic from 192.5.5.25 to the 210.93.105.0 network but will allow traffic from
all other hosts. (Choose two.)
Router(config)# access-list 22 deny 192.5.5.25 0.0.0.0
Router(config)# access-list 22 deny host 192.5.5.25 0.0.0.0
Router(config)# access-list 22 permit any any
Router(config)# access-list 22 deny 192.5.5.25 0.0.0.0
Router(config)# access-list 22 permit any
Router(config)# access-list 22 deny host 192.5.5.25
Router(config)# access-list 22 permit any
Router(config)# access-list 22 deny 192.5.5.0 0.0.0.255
Router(config)# access-list 22 permit any
10 Choose the commands that will correctly configure a standard ACL. (Choose two.)
Router(config)# access-list 10 permit host 192.5.5.1
11
An access list has been created that will deny the host 204.204.7.89 access to an ftp server located at 196.6.13.254.
Which of the following groups of commands will place this ACL in the proper location?
Router2(config)# interface s0/0
Router2(config-if)# ip access-group 111 in
Router2(config)# interface fa0/0
Router2(config-if)# ip access-group 111 out
Router2(config)# interface fa0/0
Router2(config-if)# ip access-group 111 in
Router3(config)# interface fa0/0
Router3(config-if)# ip access-group 111 in
Router3(config)# interface s0/1
Router3(config-if)# ip access-group 111 out
Router3(config)# interface fa0/0
Router3(config-if)# ip access-group 111 out
12
Create an access list that will prevent only the host 192.5.5.148 from accessing a web site located at 210.93.105.50.
access-list 10 deny tcp host 192.5.5.148 host 210.93.105.50 eq 80
access-list 10 permit ip any any
access-list 10 deny tcp 192.5.5.148 0.0.0.0 210.93.105.50 0.0.0.0 eq 80
access-list 10 permit ip any any
access-list 100 deny tcp 192.5.5.148 0.0.0.0 210.93.105.50 0.0.0.0 eq 80
access-list 100 permit ip any any
access-list 100 deny tcp 192.5.5.148 0.0.0.255 210.93.105.50 0.0.0.255 eq 80
access-list 100 permit ip any any
access-list 100 deny tcp host 192.5.5.148 0.0.0.0 210.93.105.50 0.0.0.0 eq 80
access-list 100 permit tcp any any
13. Un LAN, composé de deux VLANs, est connecté à Internet via plusieurs lignes
spécialisées. La configuration de son routeur frontal est donnée ci-après :
hostname Siege
00000000 11111110
ip nat inside source list 1 interface S1 overload
ip access-list 2 permit 10.1.0.1 0.0.255.254 (10.1.X.xxxxxxx1) adresses impaires qui
commencement par 10.1
00000001 11111110
Internet
ip nat inside source list 2 interface S2 overload S1
ip access-list 3 permit 10.2.0.0 0.0.255.255
ip nat inside source list 3 interface S3 overload
1- D’après la configuration ci-dessus, combien de VLAN a-t-on dans l’entreprise, donnez les
numéros de VLANs ? Deux VLANs de numéros 11 et 55
2- La machine ayant l’adresse 10.1.1.1 pourra t’elle sortir à Internet ? Si oui avec adresse IP
publique ? Adresses impaires qui commencent par 10.1 sortent avec l’adresse IP de S2.
3- La machine ayant l’adresse 10.1.1.10 pourra t’elle sortir à Internet ? Si oui avec adresse IP
publique ? Adresses paires qui commencent par 10.1 sortent avec l’adresse IP de S1.
4- La machine ayant l’adresse 10.2.2.2 pourra t’elle sortir à Internet ? Si oui avec adresse IP
publique ? Adresses qui commencent par 10.2 sortent avec l’adresse IP de S3.
5- Créez une ACL numérotée pour les utilisateurs du VLAN 55 afin de n’autorisez que les
services DNS, WEB et WEB Sécurisé ?
Int FastEthernet0/0.5
Ip access-group 102 in
Int FastEthernet0/0.1
Ip access-group 103 in
7- Vous souhaitez limiter l’accès telnet à deux machines : 10.1.1.1 et 10.1.1.2. Comment faire ?
Donnez les commandes pour réaliser cette opération ?
Line vty 0 4
Access-class 3 in
8- Donnez la configuration pour remplacez telnet par sa version sécurisée tout en maintenant
l’ACL de la question 7 ?
Ip domain-name test.ma
Line vty 0 4
Login local
Access-class 3 in
Interface serial 1
Ip access-group internet2WEBInterne in
Réponse : impossible parce que la machine 10.1.0.100 a une adresse privée qui n’est pas
accessible depuis internet. (il faut configurer du NAT statique)
10- Le serveur dhcp a été configuré sur la machine 10.1.0.101, l’administrateur a créé deux pools
d’adresses IP :
L’administrateur a constaté que le pool1 est opérationnel alors que le Pool2 ne l’est. C’est
quoi la cause la plus probable derrière ce problème ?
Int FastEthernet0/0.5
Ip helper 10.1.0.101
Vérifier que les ACL créées ne bloquent pas le trafic dhcp ? L’ACL 102 va bloquer le service
dhcp.
version named
ip access-list standard interdire-10
deny 10.0.0.0 0.255.255.255
permit any
int fa0/0
ip access-group interdire-10 out
version named
ip access-list extended interdire-10-ext
deny ip 10.0.0.0 0.255.255.255 14.0.0.0 0.255.255.255
permit ip any any
ip access-group interdire-10-ext in