HP StorageWorks 8/80 Brocade Converged Enhanced Ethernet Administrator's Guide - Page 115

Creating an extended MAC ACL and adding rules, Modifying MAC ACL rules

Page 115 highlights

ACL configuration and management 8 3. Enter the deny command to create a rule in the MAC ACL to drop traffic with the source MAC address. switch(conf-macl-std)#deny 0022.3333.4444 count 4. Enter the permit command to create a rule in the MAC ACL to permit traffic with the source MAC address. switch(conf-macl-std)#permit 0022.5555.3333 count 5. Use the seq command to create MAC ACL rules in a specific sequence. switch(conf-macl-std)#seq 100 deny 0011.2222.3333 count switch(conf-macl-std)#seq 1000 permit 0022.1111.2222 count Creating an extended MAC ACL and adding rules NOTE You can use the resequence command to change all the sequence numbers assigned to the rules in a MAC ACL. For detailed information, see "Reordering the sequence numbers in a MAC ACL" on page 96. The MAC ACL name length is limited to 64 characters. To create an extended MAC ACL and add rules, perform the following steps from Privileged EXEC mode. 1. Enter the configure terminal command to enter global configuration mode. 2. Create an extended MAC ACL and enter ACL configuration mode. Example of setting the name of the extended MAC ACL to "test_02." switch(config)#mac access-list extended test_02 3. Create a rule in the MAC ACL to permit traffic with the source MAC address and the destination MAC address. Example switch(conf-macl-ext)#permit 0022.3333.4444 0022.3333.5555 4. Use the seq command to insert the rule anywhere in the MAC ACL. Example switch(conf-macl-std)#seq 5 permit 0022.3333.4444 0022.3333.5555 5. Enter the copy command to save the running-config file to the startup-config file. switch(conf-macl-std)#exit switch(config)#end switch#copy running-config startup-config Modifying MAC ACL rules You cannot modify the existing rules of a MAC ACL. However, you can remove the rule and then recreate it with the desired changes. If you need to add more rules between existing rules than the current sequence numbering allows, you can use the resequence command to reassign sequence numbers. For detailed information, see "Reordering the sequence numbers in a MAC ACL" on page 96. Converged Enhanced Ethernet Administrator's Guide 95 53-1001346-01

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162

Converged Enhanced Ethernet Administrator’s Guide
95
53-1001346-01
ACL configuration and management
8
3.
Enter the
deny
command to create a rule in the MAC ACL to drop traffic with the source MAC
address.
switch(conf-macl-std)#
deny 0022.3333.4444 count
4.
Enter the
permit
command to create a rule in the MAC ACL to permit traffic with the source
MAC address.
switch(conf-macl-std)#
permit 0022.5555.3333 count
5.
Use the
seq
command to create MAC ACL rules in a specific sequence.
switch(conf-macl-std)#
seq 100 deny 0011.2222.3333 count
switch(conf-macl-std)#
seq 1000 permit 0022.1111.2222 count
Creating an extended MAC ACL and adding rules
NOTE
You can use the
resequence
command to change all the sequence numbers assigned to the rules
in a MAC ACL. For detailed information, see
“Reordering the sequence numbers in a MAC ACL”
on
page 96.
The MAC ACL name length is limited to 64 characters.
To create an extended MAC ACL and add rules, perform the following steps from Privileged EXEC
mode.
1.
Enter the
configure terminal
command to enter global configuration mode.
2.
Create an extended MAC ACL and enter ACL configuration mode.
Example of setting the name of the extended MAC ACL to “test_02.”
switch(config)#
mac access-list extended test_02
3.
Create a rule in the MAC ACL to
permit
traffic with the source MAC address and the destination
MAC address.
Example
switch(conf-macl-ext)#
permit 0022.3333.4444 0022.3333.5555
4.
Use the
seq
command to insert the rule anywhere in the MAC ACL.
Example
switch(conf-macl-std)#
seq 5 permit 0022.3333.4444 0022.3333.5555
5.
Enter the copy command to save the running-config file to the startup-config file.
switch(conf-macl-std)#
exit
switch(config)#end
switch#
copy running-config startup-config
Modifying MAC ACL rules
You cannot modify the existing rules of a MAC ACL. However, you can remove the rule and then
recreate it with the desired changes.
If you need to add more rules between existing rules than the current sequence numbering allows,
you can use the resequence command to reassign sequence numbers. For detailed information,
see
“Reordering the sequence numbers in a MAC ACL”
on page 96.