HP ProCurve 5300xl Series Management Manual page 478

Advanced traffic
Hide thumbs Also See for ProCurve 5300xl Series:
Table of Contents

Advertisement

Access Control Lists (ACLs) for the Series 3400cl and Series 6400cl Switches
Editing ACLs and Creating an ACL Offline
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
Figure 10-28. Example of an Offline ACL File Designed To Replace An Existing ACL
10-68
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
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
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.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents