
Access Control Lists (ACLs) for the Series 3400cl and Series 6400cl Switches
Editing ACLs and Creating an ACL Offline
HPswitch# copy command-output 'show access-list
config' tftp 10.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 10-28. Example of an Offline ACL File Designed To Replace An Existing ACL
For example, suppose that you wanted to create an extended ACL to fulfill
the following requirements (Assume a subnet mask of 255.255.255.0.):
■
ID: 160
■
Deny Telnet access to a server at 10.10.10.100 from these three IP
addresses on port 2 (with ACL logging):
•
10.10.20.17
•
10.10.20.23
•
10.10.20.40
10-68
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: ......