Purpose
Command or Action
Example:
Device> enable
•
Enter your password if prompted.
Enters global configuration mode.
configure terminal
Example:
Device# configure terminal
Step 2
Specifies the interface type and number, and enters interface
configuration mode.
interface type number
Example:
Device(config)# interface gigabitethernet2/0/1
Step 3
Creates a service instance (an instance of an EVC) on an
interface and enters service instance configuration mode.
service instance id
ethernet
Example:
Device(config-if)# service instance 100
ethernet
Step 4
Defines the matching criteria to be used to map ingress dot1q
frames on an interface to the appropriate service instance.
encapsulation dot1q vlan-id
Example:
Device(config-if-srv)# encapsulation dot1q 100
Step 5
Binds the service instance to a bridge- domain instance where
bridge-id
is the identifier for the bridge- domain instance.
bridge-domain bridge-id
Example:
Device(config-if-srv)# bridge-domain 200
Step 6
Sets the maximum number of secure addresses permitted on
the service instance.
Default value for a service instance is
'1'.
Note
mac security maximum addresses
maximum-addresses
Example:
Device(config-if-srv)# mac security maximum
addresses 500
Step 7
Enables MAC security on the service instance.
mac security
Example:
Device(config-if-srv)# mac security
Step 8
Layer 2 Configuration Guide for Cisco NCS 4200 Series
52
Configuring MAC Address Security on Service Instances and EVC Port Channels
Configuring MAC Address Security on a Service Instance