
Access Control Lists (ACLs) for the Series 5300xl Switches
Editing ACLs and Creating an ACL Offline
Working Offline To Create or Edit an ACL
For longer ACLs that would be difficult or time-consuming to accurately
create or edit in the CLI, you can use the offline method:
1. Begin by doing one of the following:
•
To edit one or more existing ACLs, use
copy command-output tftp
to
copy the current version of the ACL configuration to a file in your
TFTP server. For example, to copy the ACL configuration to a file
named
acl02.txt
in the TFTP directory on a server at 18.28.227.2:
HPswitch# copy command-output 'show access-list config' tftp 18.28.227.2
acl02.txt pc
•
To create a new ACL, just open a text file in the appropriate directory
on a TFTP server accessible to the switch.
2. Use the text editor to create or edit the ACL(s).
3. Use
copy tftp command-file
to download the file as a list of commands to
the switch.
Creating an ACL Offline
Use a text editor that allows you to create an ASCII text file (.txt).
If you are replacing an ACL on the switch with a new ACL that uses the same
number or name syntax, begin the command file with a “no” command to
remove the earlier version of the ACL from the switch’s running-config file.
Otherwise, the switch will append the new ACEs in the ACL you download to
the existing ACL. For example, if you plan to use the Copy command to
replace
ACL “103”, you would place this command at the beginning of the edited file:
no ip access-list extended 103
no ip access-list extended 103
ip access-list extended "103"
deny tcp 0.0.0.0 255.255.255.255 10.10.10.2 0.0.0.0 eq 23 log
permit ip 0.0.0.0 255.255.255.255 0.0.0.0 255.255.255.255
exit
Removes an existing ACL and replaces it
with a new version with the same identity.
To append new ACEs to the ACL instead of
replacing it, you would omit the first line.
Figure 9-23. Example of an Offline ACL File Designed To Replace An Existing ACL
9-56
Summary of Contents for 6400cl
Page 2: ......
Page 84: ...Static Virtual LANs VLANs VLAN Restrictions This page is intentionally unused 2 54 ...
Page 104: ...GVRP GVRP Operating Notes This page intentionally unused 3 20 ...
Page 274: ...Switch Meshing Operating Notes for Switch Meshing This page is intentionally unused 7 28 ...
Page 662: ... This page is intentionally unused 20 Index ...
Page 663: ......