Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Create an ACL to block 10.10.70.0/24 to access 10.10.30.

0/24

Configuring ACL

!
access-list 100 deny ip 10.10.70.0 0.0.0.255 10.10.30.0 0.0.0.255
access-list 100 permit ip any any
!
!
interface Loopback30
description Data
ip address 10.10.30.1 255.255.255.0
ip access-group 100 in
!

Below is the output result

R1#ping 10.10.30.1 source loopback 70

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 10.10.30.1, timeout is 2 seconds:
Packet sent with a source address of 10.10.70.1
U.U.U
Success rate is 0 percent (0/5)
R1#ping 10.10.30.1 source loopback 60

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 10.10.30.1, timeout is 2 seconds:
Packet sent with a source address of 10.10.60.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
R1#

You might also like