Close Menu
    Facebook X (Twitter) Instagram
    • Articles
    • How it Works
    • Our Story
    • Contact Us
    Facebook X (Twitter) Instagram Pinterest Vimeo
    IT Beginner
    • Home
    • Blog
      • Happiness
      • Productivity
      • Leadership
    • About us
    • Contact us
    IT Beginner
    ICND1 Labs

    Lab 3-3: Using ACLs to filter IP based traffic

    31/07/2018Updated:31/07/2018No Comments4 Mins Read

    Visual Topology

    Command Line

    Command Description
    Interface loopback0 Creates an internal interface
    ip access-group acl name [in/out] Binds an access control list to an interface
    ip access-list extended acl name Creates and enters the ACL configuration mode
    {permit | deny} {test conditions} Creates control statements within an ACL
    show access-lists acl name Displays any ACL located on the device
    show ip interface type/slot/number Displays any ACL bound to an interface

    Task 1: Configuring an ACL (Access Control List).

    Step 1: Access the CLI on your router

    Step 2: Create a loopback interface using the following commands.

    R1 only...
    R1(config)#interface loopback0
    R1(config-if)#ip address 1.1.1.1 255.255.255.255
    R1(config-if)#no shut

    Note we are using a 32 bit mask.

    R2 only...
    R2(config)#interface loopback0
    R2(config-if)#ip address 2.2.2.2 255.255.255.255
    R2(config-if)#no shut

    Step 3: From your PC check that you can ping the IP address of the loopback interface you have just created and also your default gateway.

    If two network cards are fitted you will need to type in the following commands.
    PC1 only....
    c:\>router -p add 1.1.1.1 mask 255.255.255.255 10.1.1.1
    PC2 only.....
    c:\>router -p add 2.2.2.2 mask 255.255.255.255 10.1.1.2

    If the ping fails check the following.

    Does your PC have the correct IP address ? hint… ipconfig
    Can you ping your default gateway ? If not check that the router interface is up/up

    Step 4: Create an extended ACL named PING that will prevent your PC from successfully pinging the default gateway, however you should be allowed to ping the loopback interface and all other IP traffic should be permitted through the router.

    Step 5: Test your ACL and use the appropriate show commands to display the content of the configured ACL and write down your results below.

    Rx#show access-list PING

    Are access-list names case sensitive ?

    Step 6: Once you have proved that the ACL works correctly then remove it from your configuration.

    Step 7: Save your configuration

    Lab Answer Keys:

    [sociallocker id=”4139″]

    Task 1: Configuring an ACL (Access Control List).

    Step 2: Create a loopback interface using the following commands.

    R1 only...
    R1>en
    R1#conf t
    R1(config)#interface loopback0
    R1(config-if)#ip address 1.1.1.1 255.255.255.255
    R1(config-if)#no shut

    Note we are using a 32 bit mask.

    R2 only...
    R2>en
    R2#conf t
    R2(config)#interface loopback0
    R2(config-if)#ip address 2.2.2.2 255.255.255.255
    R2(config-if)#no shut

    Step 3: From your PC check that you can ping the IP address of the loopback interface you have just created and also your default gateway. This should work!

    If the ping fails check the following.

    Does your PC have the correct IP address ? hint… ipconfig
    Can you ping your default gateway ? If not check that the router interface is up/up

    Step 4: Create an extended ACL named PING that will prevent your PC from successfully pinging the default gateway, however you should be allowed to ping the loopback interface and all other IP traffic should be permitted through the router.

    R1 only....
    R1#conf t
    R1(config)#ip access-list extended PING
    R1(config-ext-nacl)#deny icmp 10.1.1.101 0.0.0.0 10.1.1.1 0.0.0.0 echo
    R1(config-ext-nacl)#permit ip any any
    R1(config-ext-nacl)#int fa0/0

    or

    R1(config-ext-nacl)#int gi0/0
    R1(config-if)ip access-group PING in
    R2 only....
    R2#conf t
    R2(config)#ip access-list extended PING
    R2(config-ext-nacl)#deny icmp 10.1.1.102 0.0.0.0 10.1.1.2 0.0.0.0 echo
    R2(config-ext-nacl)#permit ip any any
    R2(config-ext-nacl)#int fa0/0

    or

    R2(config-ext-nacl)#int gi0/0
    R2(config-if)ip access-group PING in

    Step 5: Test your ACL and use the appropriate show commands to display the content of the configured ACL and write down your results below.

    Rx#show access-list PING

    Are access-list names case sensitive ?

    YES

    Step 6: Once you have proved that the ACL works correctly then remove it from your configuration.

    R(config-if)#no ip access-group PING in
    R(config-if)#exit
    R(config)#no ip access-list ext PING

    Step 7: Save your configuration

    R(config)#exit
    R#copy run start

    [/sociallocker]

    Previous ArticleLab 3-2: Device Hardening
    Next Article Lab 4-1: Enhancing a Switched Network

    Related Posts

    ICND1 Labs

    Lab 5-2: Configure IPv6 Routing

    05/08/2018
    ICND1 Labs

    Lab 5-1: Configure basic IPv6

    04/08/2018
    ICND1 Labs

    Lab 4-3: Implementing OSPF

    03/08/2018
    Subscribe
    Notify of
    guest

    guest

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    0 Comments
    Oldest
    Newest Most Voted
    Inline Feedbacks
    View all comments
    • Productivity
    • Leadership

    No posts

    No posts

    Subscribe to Newsletter
    Our Socials
    • Instagram
    • Facebook
    • Twitter
    • YouTube
    • LinkedIn

    Archives

    • April 2025
    • May 2024
    • March 2023
    • July 2022
    • March 2022
    • July 2020
    • January 2019
    • August 2018
    • July 2018
    • August 2017
    • July 2017
    • September 2016

    Categories

    • Business
    • CCNA 1 Instructor Materials
    • CentOS
    • Database
    • Debian
    • Fedora
    • Firefox
    • Happiness
    • Hardware
    • ICND1 Labs
    • ICND2 Labs
    • Leadership
    • Linux Essentials
    • Linux Mint
    • Marketing
    • My SQL
    • Netflix
    • Networking
    • Productivity
    • Resources
    • Security
    • SEO
    • Server
    • Social Media
    • Software
    • Tips – Tricks
    • Ubuntu
    • Uncategorized
    • User Experience
    • WordPress
    • Xubuntu

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna accumsan in scelerisque.

    Facebook X (Twitter) Instagram Pinterest

    Type above and press Enter to search. Press Esc to cancel.

    wpDiscuz