![](/images/new-backgrounds/1121221/121221231x1.webp)
Step 1: Create an ACL and Define an ACL Rule
This command creates an ACL named list1 and configures a rule for the ACL. After the mask has been applied, it permits packets carrying TCP traffic that matches the specified Source IP address, and sends these packets to the specified Destination IP address.
console#config
Step 2: Define the Second Rule for ACL 179
Define the rule to set similar conditions for UDP traffic as for TCP traffic.
console(config)#exit
Step 3: Apply the Rule to Outbound (Egress) Traffic on Port 1/g2
Only traffic matching the criteria will be accepted.
console(config)#interface ethernet 1/g2
Configuring a MAC ACL
The following steps configure a MAC ACL that denies traffic with any MAC address access to hosts with a MAC address of 00:11:22:33:XX:XX, where XX is any hexadecimal value
The rule is applied to interface 1/g5 in the inbound direction and has a priority value of 6 (the lower the number, the higher the priority).
Step 1: Set up a MAC Access List
console#config
console(config)#mac
Step 2: Specify the MAC ACL Attributes
Step 3: Configure a MAC Access Group
console(config)#interface ethernet 1/g5
116
Device Security