Configuration Guide
530
Configuring ACL
ACL Configurations
Step 2
interface {fastEthernet
port |
range fastEthernet
port-list |
gigabitEthernet
port |
range
gigabitEthernet
port-list
}
access-list bind
policy-name
(Optional) Enter the interface configuration mode and bind the policy to the port.
port | port-list
: The port (ports) to which the policy will bind.
policy-name
: The name of the policy.
interface vlan
vlan-id
access-list bind
policy-name
(Optional) Enter layer 3 interface configuration mode and bind the policy to the VLAN.
vlan-id
: The VLAN to which the policy will bind.
policy-name
: The name of the policy.
Step 3
show access-list bind
(Optional) View the configuration of binding.
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to bind Policy 1 to port 2 and Policy 2 to VLAN 2:
Switch#configure
Switch(config)#interface gigabitEthernet
1/0/2
Switch(config-if)#access-list bind policy
1
Switch(config-if)#exit
Switch(config)#interface vlan
2
Switch(config-if)#access-list bind policy
2
Switch(config-if)#show access-list bind
Index
Policy
Name
Interface/VID
Direction
Type
-----
-----------
-------------
--------
----
1
1 Gi1/0/2 Ingress Port
2
2 2 Ingress Vlan
Index
ACL
ID
Interface/VID
Direction
Type
-----
-----------
-------------
--------
----
Switch(config-if)#end
Switch#copy running-config startup-config
Содержание TL-SG2424
Страница 26: ...Part 1 Accessing the Switch CHAPTERS 1 Overview 2 Web Interface Access 3 Command Line Interface Access...
Страница 130: ...Part 4 Configuring LAG CHAPTERS 1 LAG 2 LAG Configuration 3 Configuration Example 4 Appendix Default Parameters...
Страница 147: ...Part 5 Monitoring Traffic CHAPTERS 1 Traffic Monitor 2 Appendix Default Parameters...
Страница 449: ...Part 15 Configuring ARP CHAPTERS 1 Overview 2 ARP Configurations...
Страница 508: ...Configuring Voice VLAN Configuration Guide 485...
Страница 768: ...Configuring SNMP RMON Appendix Default Parameters Configuration Guide 745 Parameter Default Setting Status Disable...