Deleting An Ace From An Existing Acl - HP 2530 Manual Supplement

Table of Contents

Advertisement

Example 33 Inserting an ACE in an existing ACL
From the global configuration context:
1.
Insert a new ACE with a sequence number of 45 between the ACEs numbered 40 and 50
shown in
Inserting an ACE in an existing ACL
HP Switch(Config)# ipv6 access-list My-list
HP Switch(config-ipv6-acl)# 45 permit icmp host 2001:db8:0:5ad::33 ::/0
HP Switch(config-ipv6-acl)# show run
. . .
ipv6 access-list "My-list"
10 permit ipv6 2001:db8:0:5ad::25/128 ::/0
20 permit ipv6 2001:db8:0:5ad::111/128 ::/0
30 permit icmp 2001:db8:0:5ad::115/128 ::/0
40 permit icmp 2001:db8:0:5ad::/64 ::/0
45 permit icmp 2001:db8:0:5ad::33 ::/0
50 permit icmp 2001:db8:0:5ad::19/128 ::/0
60 permit ipv6 ::/0 2001:db8:0:5ad::1/128
70 deny ipv6 2001:db8:0:5ad::/64 ::/0
80 permit ipv6 ::/0 ::/0
exit
2.
In the context of an IPv6 ACL named List-01, insert a new ACE between two existing ACEs.
In this example, the first command creates a new ACL and enters the ACL context. The next
two ACEs entered become lines 10 and 20 in the list. The third ACE entered is inserted
between lines 10 and 20 using a sequence command with sequence number 1 1.
Inserting an ACE into an existing sequence
HP Switch(config)# Port_1_5400(config)# ipv6 access-list List-01
HP Switch(config-ipv6-acl)# permit ipv6 host fe80::100 host fe80::200
HP Switch(config-ipv6-acl)# permit ipv6 host fe80::103 any
HP Switch(config-ipv6-acl)# 11 permit ipv6 host fe80::110 host fe80::
HP Switch(config-ipv6-acl)# show run
Running configuration:
. . .
ipv6 access-list "List-01"
10 permit ipv6 fe80::100/128 fe80::200/128
11 permit ipv6 fe80::110/128 fe80::210/128
20 permit ipv6 fe80::103/128 ::/0
exit
Becomes Line 10
1
Becomes Line 20
2
Lines 10 and 20 were automatically numbered according to their order of entry in
3
the list.
4
Line 1 1 was explicitly numbered by the 1 1 permit command and was inserted in its
proper place in the list.

Deleting an ACE from an existing ACL

To delete and ACE, you can use either the sequence number of an ACE or the syntax of the ACE.
"Appending an ACE to an existing list" (page
Enters the
1
Named-ACL context
for "My-list"
88).
1
3
Inserts a new ACE
2
assigned to line 45
3
4
2
1
2
3
Editing an existing ACL
89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents