1-7
<Sysname> display time-range trname
Current time is 10:45:15 4/14/2005 Thursday
Time-range : trname ( Inactive )
from 08:00 12/1/2005 to 23:59 12/31/2100
Table 1-3 display time-range command output description
Field Description
Current time Current system time
Time-range
Configuration and status of the time range, including the
name of the time range, its status (active or inactive), and
its start time and end time.
packet-filter
Syntax
packet-filter { acl-number | name acl-name } inbound
undo packet-filter { acl-number | name acl-name } inbound
View
Ethernet port view, VLAN interface view
Default Level
2: System level
Parameters
acl-number: Specifies an ACL by its number:
z 2000 to 2999 for basic ACLs
z 3000 to 3999 for advanced ACLs
z 4000 to 4999 for Ethernet frame header ACLs
name acl-name: Specifies an ACL by its name. The acl-name argument takes a case insensitive string
of 1 to 32 characters. It must start with an English letter.
inbound: Filters incoming packets.
Description
Use the packet-filter command to apply an ACL to an interface to filter IPv4 packets or Ethernet
frames.
Use the undo packet-filter command to restore the default.
By default, an interface does not filter IPv4 packets or Ethernet frames.
If you execute the command repeatedly, the last configuration takes effect.
Examples
# Apply basic ACL 2001 to the inbound direction of interface GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1