
Using Port Groups in Custom Packet Filters
337
Using Port Groups
in Custom Packet
Filters
You can use a port group (a list of module ports) as filtering criteria in a
packet filter.
A packet filter uses the group to make filtering decisions by accessing the
group’s source port group mask and destination port group mask. In the
mask, 32 bits indicate to which of 32 possible groups a port belongs. For
example, setting mask bit number 7 assigns the port to group number 7.
You reference these group masks using the opcodes SPGM (source port
group mask), and DPGM (destination port group mask). What follows is
an example of using port groups in packet filters.
Port Group Packet
Filter Example
In this example, packets are not forwarded to ports in groups 3 and 8.
Port Group Filter
Operation
When an address is learned on a port, the address and the port number
the packet was received on are inserted into the bridge address table and
a bit mask that is associated with the address that denotes the group
membership is inserted into the port group mask table.
The bridge address table stores each SA/DA MAC address with the port
number. The port group masks are stored in a smaller table associating
port numbers to port group masks.
For example, assume you defined port group 1 with port 3 being a
member and port group 2 with port 5 being a member.
Name
“Discard Groups 3 and 8”
pushSPGM
# Get source port group mask.
pushLiteral.l
0x0084
# Select bits 3 and 8.
and
# If port group bits 3 & 8 are common
# with SPGM, then non-zero value is
# pushed onto stack.
pushLiteral.l
0
# Push zero.
eq
# Only if SPGM is not in port groups
# corresponding to bits 3 & 8, then
# packet is forwarded.
Содержание 4007
Страница 1: ...http www 3com com Switch 4007 Implementation Guide Release 3 0 5 Part No 10013673 Published May 2000 ...
Страница 36: ...36 ABOUT THIS GUIDE ...
Страница 37: ...I UNDERSTANDING YOUR SWITCH 4007 SYSTEM Chapter 1 Configuration Overview ...
Страница 38: ......
Страница 50: ...50 CHAPTER 1 CONFIGURATION OVERVIEW ...
Страница 52: ......
Страница 70: ...70 CHAPTER 3 INSTALLING MANAGEMENT MODULES ...
Страница 110: ...110 CHAPTER 4 CONFIGURING AND USING EME OPTIONS ...
Страница 130: ...130 CHAPTER 5 MANAGING THE CHASSIS POWER AND TEMPERATURE ...
Страница 222: ...222 CHAPTER 11 IP MULTICAST FILTERING WITH IGMP ...
Страница 240: ...240 CHAPTER 13 RESILIENT LINKS ...
Страница 304: ...304 CHAPTER 14 VIRTUAL LANS VLANS ...
Страница 350: ...350 CHAPTER 15 PACKET FILTERING ...
Страница 506: ...506 CHAPTER 19 OPEN SHORTEST PATH FIRST OSPF ROUTING ...
Страница 534: ...534 CHAPTER 20 IPX ROUTING ...
Страница 612: ...612 CHAPTER 22 QOS AND RSVP ...
Страница 656: ...656 CHAPTER 23 DEVICE MONITORING ...
Страница 657: ...IV REFERENCE Appendix A Technical Support Index ...
Страница 658: ......
Страница 664: ......