User Manual
Chapter 13
Traffic control
13.1 ACL
13.1.1 Generate standard IPv4 access list
[Syntax]
access-list std-ip-acl-id action src-info
no access-list std-ip-acl-id [action src-info]
[Parameter]
std-ip-acl-id : <1-99>, <1300-1999>
ID of standard IPv4 access list
action : Specifies the action for the access condition
Setting value Description
deny "Deny" the condition
permit "Permit" the condition
src-info : Specifies the transmission-source IPv4 address that is the condition
Setting value Description
A.B.C.D E.F.G.H
Specifies an IPv4 address (A.B.C.D) with
wildcard bits (E.F.G.H)
any Accept every IPv4 address
host A.B.C.D Specifies a single IPv4 address (A.B.C.D)
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Generates a standard IPv4 access list.
Multiple conditions (maximum 39) can be specified for the generated access list.
To apply the generated access list, use the "ip access-group" command in interface mode.
The "no access-list std-ip-acl-id action src-info" syntax deletes the standard IPv4 access list that matches all conditions.
The "no access-list std-ip-acl-id" syntax deletes the standard IPv4 access list that matches "std-ip-acl-id."
[Note]
An access list that is applied to an interface cannot be deleted using the "no" syntax. Before you can delete the access list, you
must rescind the application of that list.
[Example]
Create standard IPv4 access list #2 which will permit frames from 192.168.1.0/24.
SWP1(config)#access-list 2 permit 192.168.1.0 0.0.0.255
Delete standard IPv4 access list #2.
SWP1(config)#no access-list 2
Command Reference | Traffic control | 167