Binding a service instance with a VPLS instance
To bind a service instance with a VPLS instance, create the service instance on a Layer 2 Ethernet
interface, configure a packet matching rule for the service instance, and then bind the service instance
with the VPLS instance. After these configurations, packets that arrive at the Layer 2 Ethernet interface
and match the packet matching rule are forwarded by the bound VPLS instance. A service instance
supports multiple types of packet matching rules (such as matching all packets received on the port,
packets carrying the specified VLAN tags, all tagged packets, and all packets with no VLAN tags),
providing a more flexible VPLS instance access control. Use this method when users connected to a VLAN
interface belong to different VPNs. For more information about service instances, see Layer 2—LAN
Switching Configuration Guide.
To bind a service instance with a VPLS instance:
Step
1.
Enter system view.
2.
Enter the view of the interface
connected to a CE.
3.
Create a service instance and
enter its view.
4.
Configure a packet matching
rule for the service instance.
5.
Associate the service instance
with a VPLS instance.
Configuring MAC address learning
Step
1.
Enter system view.
2.
Enter VSI view.
3.
Enable
address learning for the VPLS
instance.
Configuring VPLS instance attributes
Step
1.
Enter system view.
2.
Enter VSI view.
Command
system-view
interface interface-type
interface-number
service-instance service-instance-id
encapsulation { s-vid vlan-id
[ only-tagged ] | port-based |
tagged | untagged }
xconnect vsi vsi-name
[ access-mode { ethernet | vlan } ] *
Command
system-view
vsi vsi-name
or
disable
MAC
mac-learning { enable | disable }
Command
system-view
vsi vsi-name
172
Remarks
N/A
N/A
By default, no service instance is
created.
By default, no packet matching rule
is configured for a service
instance.
By default, a service instance is not
associated with any VPLS instance.
Remarks
N/A
N/A
Optional.
Enabled by default.
Remarks
N/A
N/A