3Com 4210, 5500G, 4200G manual # Apply ACL 4000 to Ethernet 1/0/1

Models: 4210 5500 5500G 4200G

1 336
Download 336 pages 59.74 Kb
Page 210
Image 210

210CHAPTER 22: ACL CONFIGURATION GUIDE

Network Diagram Figure 60 Network diagram for Ethernet frame header ACL configuration

PC 1

0011-0011-0011

PC 2

Eth1/0/1

To the router

Switch

Networking and PC 1 and PC 2 connect to the switch through Ethernet 1/0/1 (assuming that the Configuration switch is a Switch 5500). PC 1’s MAC address is 0011-0011-0011. Apply an Requirements Ethernet frame header ACL on the interface to filter packets with the source MAC

address of 0011-0011-0011 and the destination MAC address of 0011-0011-0012 from 8:00 to 18:00 everyday.

Applicable Products

Product series

Software version

Hardware version

 

 

 

Switch 5500

Release V03.02.04

All versions

Switch 5500G

Release V03.02.04

All versions

Switch 4500

Release V03.03.00

All versions

 

 

 

Configuration Procedure # Define a periodic time range that is from 8:00 to 18:00 everyday.

<3Com> system-view

[3Com] time-range test 8:00 to 18:00 daily

#Define ACL 4000 to filter packets with the source MAC address of 0011-0011-0011 and the destination MAC address of 0011-0011-0012.

[3Com] acl number 4000

[3Com-acl-ethernetframe-4000] rule 1 deny source 0011-0011-0011 ffff -ffff-ffff dest 0011-0011-0012 ffff-ffff-ffff time-range test [3Com-acl-ethernetframe-4000] quit

# Apply ACL 4000 to Ethernet 1/0/1.

[3Com] interface Ethernet 1/0/1

[3Com-Ethernet1/0/1] packet-filter inbound link-group 4000

Complete Configuration #

acl number 4000

rule 1 deny source 0011-0011-0011 ffff-ffff-ffff dest 0011-0011-001 2 ffff-ffff-ffff time-range test

#

interface Ethernet1/0/1

packet-filter inbound link-group 4000 rule 1

#

time-range test 08:00 to 18:00 daily

#

Page 210
Image 210
3Com 4210, 5500G, 4200G manual # Apply ACL 4000 to Ethernet 1/0/1