User Manual

Table Of Contents
[Example]
Create access list #1 that denies communication from the source segment 192.168.1.0/24 to the destination 172.16.1.1.
SWP2(config)#access-list 1 deny any 192.168.1.0 0.0.0.255 host 172.16.1.1
Delete IPv4 access list #1.
SWP2(config)#no access-list 1
9.1.2 Adding a description for IPv4 access list
[Syntax]
access-list ipv4-acl-id description line
no access-list ipv4-acl-id description
[Parameter]
ipv4-acl-id : <1-2000>
ID of the IPv4 access list to which to add a description
line : Description to add. Can be up to 32 ASCII characters
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Add a description to the generated IPv4 access list.
If this command is executed with the "no" syntax, the IPv4 description is cleared.
[Note]
A description can be added with this command even after applying an access list to LAN/SFP+ port and logical interface. (The
later description will overwrite it)
[Example]
Create IPv4 access list #1 that denies communication from the 192.168.1.0/24 sending source segment to 172.16.1.1, and add
the description of "Test".
SWP2(config)#access-list 1 deny any 192.168.1.0 0.0.0.255 host 172.16.1.1
SWP2(config)#access-list 1 description Test
9.1.3 Apply IPv4 access list
[Syntax]
access-group ipv4-acl-id direction
no access-group ipv4-acl-id direction
[Parameter]
ipv4-acl-id : <1-2000>
ID of IPv4 access list to apply
direction : Specifies the direction of applicable frames
Setting value Description
in Apply to received frames
out Apply to transmitted frames
[Initial value]
none
Command Reference | Traffic control | 247