HP 6125G HP 6125G & 6125G/XG Blade Switches ACL and QoS Configuration - Page 16

Copying an IPv4 ACL, Packet filtering with ACLs

Page 16 highlights

To successfully copy an ACL, make sure that: • The destination ACL number is from the same category as the source ACL number. • The source ACL already exists but the destination ACL does not. Copying an IPv4 ACL Step 1. Enter system view. 2. Copy an existing IPv4 ACL to create a new IPv4 ACL. Command system-view acl copy { source-acl-number | name source-acl-name } to { dest-acl-number | name dest-acl-name } Copying an IPv6 ACL Step 1. Enter system view. Command system-view 2. Copy an existing IPv6 ACL to generate a acl ipv6 copy { source-acl6-number | name new one of the same category. source-acl6-name } to { dest-acl6-number | name dest-acl6-name } Packet filtering with ACLs You can use an ACL to filter incoming or outgoing IPv4 or IPv6 packets. You can apply one IPv4 ACL, one IPv6 AL, and one Ethernet frame header ACL most to filter packets in the same direction of an interface. NOTE: ACLs on VLAN interfaces filter only packets forwarded at Layer 3. Applying an IPv4 or Ethernet frame header ACL for packet filtering Step Command 1. Enter system view. system-view 2. Enter interface view. interface interface-type interface-number 3. Apply an IPv4 basic, IPv4 advanced, or Ethernet frame packet-filter { acl-number | header ACL to the interface to name acl-name } { inbound filter packets. | outbound } Remarks N/A N/A By default, no ACL is applied to any interface. Applying an IPv6 ACL for packet filtering 10

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84

10
To successfully copy an ACL, make sure that:
The destination ACL number is from the same category as the source ACL number.
The source ACL already exists but the destination ACL does not.
Copying an IPv4 ACL
Step
Command
1.
Enter system view.
system-view
2.
Copy an existing IPv4 ACL to create a
new IPv4 ACL.
acl copy
{
source-acl-number
|
name
source-acl-name
}
to
{
dest-acl-number
|
name
dest-acl-name
}
Copying an IPv6 ACL
Step
Command
1.
Enter system view.
system-view
2.
Copy an existing IPv6 ACL to generate a
new one of the same category.
acl ipv6 copy
{
source-acl6-number
|
name
source-acl6-name
}
to
{
dest-acl6-number
|
name
dest-acl6-name
}
Packet filtering with ACLs
You can use an ACL to filter incoming or outgoing IPv4 or IPv6 packets. You can apply one IPv4 ACL, one
IPv6 AL, and one Ethernet frame header ACL most to filter packets in the same direction of an interface.
NOTE:
ACLs on VLAN interfaces filter only packets forwarded at Layer 3.
Applying an IPv4 or Ethernet frame header ACL for packet
filtering
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type
interface-number
N/A
3.
Apply an IPv4 basic, IPv4
advanced, or Ethernet frame
header ACL to the interface to
filter packets.
packet-filter
{
acl-number
|
name
acl-name
} {
inbound
|
outbound
}
By default, no ACL is applied to any
interface.
Applying an IPv6 ACL for packet filtering