23Configuring service instancesBefore configuring the MEPs and MIPs, you must first configure service instances. A service instance is aset of service access points (SAPs), and belongs to an MA in an MD.A service instance is indicated by an integer to represent an MA in an MD. The MD and MA define thelevel and VLAN attribute of the messages handled by the MPs in a service instance.Service instances fall into two types:• Service instance with the MD name, which takes effect in any version of CFD.• Service instance without the MD name, which takes effect in only CFD IEEE 802.1ag.You can create either type of service instance as needed.Creating a service instance with the MD nameTo create a service instance with the MD name, create the MD and MA for the service instance first.Follow these steps in strict order to configure a service instance with the MD name:To do... Use the command... RemarksEnter system view system-view —Create an MD cfd md md-name level level-value RequiredNot created by default.Create an MA cfd ma ma-name md md-name vlanvlan-idRequiredNot created by default.Create a service instance with theMD namecfd service-instance instance-id mdmd-name ma ma-nameRequiredNot created by default.CAUTION:You must create the MD, MA, and service instance by strictly following the order stated in the table.Creating a service instance without the MD nameWhen you create a service instance without the MD name, the system automatically creates the MA andMD for the service instance.Follow these steps to create a service instance without the MD name:To do... Use the command... RemarksEnter system view system-view —Create a service instance withoutthe MD namecfd service-instance instance-idmaid format { icc-based ma-name| string ma-name } level level-valuevlan vlan-idRequiredNot created by default.Configuring MEPsCFD is implemented through various operations on MEPs. As a MEP is configured on a service instance,the MD level and VLAN attribute of the service instance become the attribute of the MEP.