1-9
# Apply rule 2 of user-defined ACL 5000 on Ethernet 1/0/3 to filter inbound packets. Here, it is assumed
that the ACL and its rule numbered 2 are already configured.
[Sysname] interface Ethernet 1/0/3
[Sysname-Ethernet1/0/3] packet-filter inbound user-group 5000 rule 2
[Sysname-Ethernet1/0/3] quit
# Apply rule 1 of advanced ACL 3000 and rule 2 of Layer 2 ACL 4000 on Ethernet 1/0/4 to filter inbound
packets. Here, it is assumed that the ACLs and their rules are already configured.
[Sysname] interface Ethernet 1/0/4
[Sysname-Ethernet1/0/4] packet-filter inbound ip-group 3000 rule 1 link-group 4000 rule 2
After completing the above configuration, you can use the
display packet-filter
command to view
information about packet filtering.
packet-filter vlan
Syntax
packet-filter
vlan
vlan-id
{
inbound
|
outbound
}
acl-rule
undo
packet-filter
vlan
vlan-id
{
inbound
|
outbound
}
acl-rule
View
System view
Parameters
vlan-id
: VLAN ID.
inbound
: Specifies to filter packets received by the ports in the VLAN.
outbound
: Specifies to filter packets to be transmitted by the ports in the VLAN.
acl-rule
: ACL rules to be applied, which can be a combination of the rules of multiple ACLs, as
described in
Table 1-5
.
Description
Use the
packet-filter vlan
command to apply ACL rules on ports in a VLAN to filter packets.
Use the
undo packet-filter vlan
command to remove the application of ACL rules on ports of a VLAN.
Note that the
packet-filter
vlan
command applies the ACL rules on all ports in a VLAN, allowing you to
apply ACL rules to multiple ports in one operation.
Examples
# Apply all rules of basic ACL 2000 on all ports in VLAN 10 to filter inbound packets. Here, it is assumed
that the ACL and its rules and the VLAN are already configured.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] packet-filter vlan 10 inbound ip-group 2000
Содержание 5500-EI PWR
Страница 43: ...2 6...
Страница 76: ...1 17...
Страница 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Страница 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Страница 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Страница 519: ...iii...
Страница 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Страница 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Страница 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Страница 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Страница 1111: ...ii xmodem get 3 18...
Страница 1314: ...A 44 Z...