Tag - Access Group

Extended Access Control List

Extended ACL is implemented on the bases of source, Destination and Application. The application are telnet, ICMP, HTTP, SMTP etc it also work on port no of that application. As Remember that the router 1 ip scheme is 200.100.100.0 and Router2 ip scheme is 192.168.10.0

Extended Access Control List

 

 

To allow the traffic of Router 2 on Router 1 for every application

  • Router1(config)# Access-list 100 permit ip 192.168.10.0 0.0.0.255 200.100.100.0 0.0.0.255
  • Router1(config)# access-list 100 deny any any
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 100 in
  • Router1(config_if)# exit

 To allow all the traffic of Router 2 on Router 1 for 1st 7 computer

  • Router1(config)# Access-list 100 permit ip 192.168.10.0  0.0.0.255 200.100.100.0 0.0.0.7
  • Router1(config)# access-list 100 deny any any
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 100 in
  • Router1(config_if)# exit

 To block the traffic for pinging Router 1 from Router 2 computer

  • Router1(config)# Access-list 100 deny tcp 192.168.10.0  0.0.0.255 200.100.100.0 0.0.0.255 eq ICMP
  • Router1(config)# access-list 100 permit any any
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 100 in
  • Router1(config_if)# exit

 To allow the computer of Router 2 for just browsing the Web Server of the Router1 and the ip of the web server is 200.100.100.50

  • Router1(config)# Access-list 100 permit tcp
  • 192.168.10.0 0.0.0.0.255

200.100.100.50 0.0.0.0  eq 80 (or http)

  • Router1(config)# access-list 100 deny ip any any
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 100 in
  • Router1(config_if)# exit

Type of ACL

  1. Standard ACL     (1-99)
  2. Extended ACL     (100-999

Access Control List

Access control list is used for security on a Network from other Network. By this we restrict an IP or pool of IP to access a computer or a Network. And by the same way we can allow it to one system or no of system to access the system or network.

Type of ACL

  1. Standard ACL     (1-99)
  2. Extended ACL     (100-999)

Standard Access Control List:

It works on IP based packet filtering, to allow or deny a network of a specific computer on network. It is based on source IP. It work on priority base, when we put the permit condition first so first it will permit then will block the other IP.

Standard Access Control List

 

Configuration on Router 1

  • Router1# conf terminal
  • Router(config)# int e0
  • Router(config_if)# ip add 192.168.10.10 255.255.255.0
  • Router(config_if)# no shut
  • Router(config_if)# exit
  • Router(config)# int s0
  • Router(config_if)# ip add 1.1.1.1 255.255.255.0
  • Router(config_if)# no shut
  • Router(config_if)# clock rate 6400
  • Router(config_if)# router rip

If we want to configure on RIP v2 so do as

  • Router(config_router)# version v2
  • Router(config_router)# network 192.168.10.0
  • Router(config_router)# network 1.0.0.0
  • Router(config_router)# exit

To allow the traffic of Router 2, ip 192.168.20.1 on Router 1 and block the other

  • Router1(config)# Access-list 10 permit ip 192.168.20.1 0.0.0.0
  • Router1(config)# access-list 10 deny any
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 10 in
  • Router1(config_if)# exit

To allow all except 192.168.20.1 on Router 1

  • Router1(config)# access-list 10 deny ip 192.168.20.1 0.0.0.0
  • Router1(config)# access-list 10  permit any
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 10 in
  • Router1(config_if)# exit
  • Rotuer1(config)# exit
  • Router1#

 To allow 192.168.20.10   and     192.168.20.30 on Router1

  • Router1(config)# access-list 10 permit ip 192.168.20.10 0.0.0.0
  • Router1(config)# access-list 10 permit ip 192.168.20.30 0.0.0.0
  • Router1(config)# access-list 10 deny any
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 10 in
  • Router1(config_if)# exit
  • Rotuer1(config)# exit
  • Router1#

 To allow 1st 3 then block from 4-15 and then allow from 16-30 on Router 1

  • Router1(config)# access-list 10 permit ip 192.168.20.0 0.0.0.3
  • Router1(config)# access-list 10 deny ip 192.168.20.0 0.0.0.15
  • Router1(config)# access-list 10 permit ip 192.168.20.0 0.0.0.30
  • Router1(config)# int s0
  • Router1(config_if)# ip access-group 10 in
  • Router1(config_if)# exit
  • Rotuer1(config)# exit
  • Router1#

Now do the configuration on router 2 as

  • Router2> enable
  • Router# conf terminal
  • Router(config)#int e0
  • Router(config_if)# ip add 192.168.20.10 255.255.255.0
  • Router(config_if)# no shut
  • Router(config_if)# exit
  • Router(config)# int s0
  • Router(config_if)# ip add 1.1.1.2 255.255.255.0
  • Router(config_if)# no shut
  • Router(config_if)# clock rate 64000
  • Router(config_if)# exit
  • Router(config)# router rip  (for rip v2 just type version 2)
  • Router(config_router)# version 2
  • Router(config_router)# network 192.168.20.0
  • Router(config_router)# network 1.0.0.0
  • Router(config_router)# exit
  • Router(config)# exit
  • Router# exit

Type of ACL

  1. Standard ACL     (1-99)
  2. Extended ACL     (100-999

Copyright ©2010 - 2022 Ciscoforall.com | Privacy Policy | Terms & Conditions