Configuring Access Lists access-list (standard)
24-16 Security Configuration
deny ip 150.136.0.0 0.0.255.255 224.0.0.0 15.255.255.255
deny ip 11.6.0.0 0.1.255.255 224.0.0.0 15.255.255.255 2)
deny ip 172.24.24.0 0.0.1.255 224.0.0.0 15.255.255.255
access-list (standard)
UsethiscommandtodefineastandardIPaccesslistbynumberwhenoperatinginroutermode.
Restrictionsdefinedbyanaccesslistareappliedbyusingtheipaccess‐groupcommand(“ip
access‐group”onpage 24‐20).
Syntax
access-list access-list-number [ insert | replace entry] | [log 1-5000 | all] [move
destination source1 [source2]] {deny | permit} source [source-wildcard]
no access-list access-list-number [entry]
To insert or replace an ACL entry:
access-list access-list-number insert | replace entry
To move entries within an ACL:
access-list access-list-number move destination source1 [source2]
Parameters
access‐list‐
number
Specifiesastandardaccesslistnumber.Validvaluesarefrom1to99.
insert|replaceentry (Optional)Insertsthisnewentrybeforeaspecifiedentryinanexisting
ACL,orreplacesaspecifiedentrywiththisnewentry.
log1‐5000|all Enablesyslog forACLentryhits.
Enablesyslogforsequentialnumber
ofACLentryorforallACLentries
movedestination
source1source2
(Optional)Movesasequenceofaccesslistentriesbeforeanotherentry.
Destinationisthenumberoftheexistingentrybeforewhichthisnew
entrywillbemoved.Source1isasingleentrynumberorthe
firstentry
numberintherangetobemoved.Source2(optional)isthelastentry
numberintherangetobemoved.Ifnotspecified,onlythesource1entry
willbemoved.
deny|permit Deniesorpermitsaccessifspecifiedconditionsaremet.
protocol SpecifiesanIPprotocolforwhichto
denyorpermitaccess.Validvalues
andtheircorrespondingprotocolsare:
• ip‐AnyInternetprotocol
• icmp‐InternetControlMessageProtocol
• udp‐UserDatagramProtocol
• tcp‐TransmissionProtocol
source Specifiesthenetworkorhostfromwhichthepacketwillbesent.Valid
optionsforexpressingsourceare:
•IPaddressorrange
ofaddresses(A.B.C.D)
• any‐Anysourcehost
• hostsource‐IPaddressofasinglesourcehost
source‐wildcard (Optional)Specifiesthebitstoignoreinthesourceaddress.