www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / 101 CCNA LABS / Access Control Lists Solutions / Lab 61 Solution: Restricting Inbound Telnet Access using Extended ACLs

Lab 61 Solution: Restricting Inbound Telnet Access using Extended ACLs

Task 1:

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname R1

R1(config)#

Router#config t

Enter configuration commands, one per line.  End with CNTL/Z.

Router(config)#hostname R3

R3(config)#

Task 2:

R1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#int s0/0

R1(config-if)#no shutdown

R1(config-if)#clock rate 2000000

R1(config-if)#ip add 172.16.1.1 255.255.255.192

R1(config-if)#end

R1#

R3#config term

Enter configuration commands, one per line.  End with CNTL/Z.

R3(config)#int s0/0

R3(config-if)#ip address 172.16.1.2 255.255.255.192

R3(config-if)#no shut

R3(config-if)#end

R3#

R1#ping 172.16.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R1#

R3#ping 172.16.1.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R3#

Task 3:

R1#config t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#ip route 0.0.0.0 0.0.0.0 serial0/0 172.16.1.2

R1(config)#line vty 0 4

R1(config-line)#password CISCO

R1(config-line)#login

R1(config-line)#end

R1#

R3#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R3(config)#int loo 10

R3(config-if)#ip address 10.10.10.3 255.255.255.128

R3(config-if)#exit

R3(config)#int loo 20

R3(config-if)#ip address 10.20.20.3 255.255.255.240

R3(config-if)#exit

R3(config)#int loo 30

R3(config-if)#ip address 10.30.30.3 255.255.255.248

R3(config-if)#exit

R3(config)#line vty 0 4

R3(config-line)#password CISCO

R3(config-line)#login

R3(config-line)#end

R3#

Task 4:

R1#ping 10.10.10.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.10.10.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms

R1#ping 10.20.20.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.20.20.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms

R1#ping 10.30.30.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 10.30.30.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

Task 5:

R1#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R1(config)#ip access-list extended TELNET-IN

R1(config-ext-nacl)#remark ‘Permit Telnet From Host 10.10.10.3’

R1(config-ext-nacl)#permit tcp host 10.10.10.3 any eq 23

R1(config-ext-nacl)#remark ‘Deny Telnet From Host 10.20.20.3’

R1(config-ext-nacl)#deny tcp host 10.20.20.3 any eq 23

R1(config-ext-nacl)#remark ‘Permit Telnet From Host 10.30.30.3’

R1(config-ext-nacl)#permit tcp host 10.30.30.3 any eq 23

R1(config-ext-nacl)#exit

R1(config)#line vty 0 4

R1(config-line)#access-class TELNET-IN in

R1(config-line)#end

R1#

Task 6:

R3#telnet 172.16.1.1 /source-interface loopback 10

Trying 172.16.1.1 … Open

User Access Verification

Password:

R1#

R3#telnet 172.16.1.1 /source-interface loopback 20

Trying 172.16.1.1 …

% Connection refused by remote host

R3#telnet 172.16.1.1 /source-interface loopback 30

Trying 172.16.1.1 … Open

User Access Verification

Password:

R1#

NOTE: The access-class command is used to apply ACLs to the router or switch VTY lines to prevent inbound Telnet and/or SSH sessions to the device. This is not the same as using ACLs that are applied to interfaces to prevent Telnet and/or SSH sessions to the device. Make a mental note of this.

 

Based on our example above, we can see matches to our ACL rules as follows:

 

R1#sh ip access-lists TELNET-IN

Extended IP access list TELNET-IN

10 permit tcp host 10.10.10.3 any eq telnet (2 matches)

20 deny tcp host 10.20.20.3 any eq telnet (1 match)

30 permit tcp host 10.30.30.3 any eq telnet (2 matches)

 

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.