配置伪线端接
要在 PE 设备上配置伪线逻辑接口,请执行以下任务:
配置逻辑接口。
配置传输逻辑接口
配置服务逻辑接口。
配置 EVPN 路由实例以支持传入的 VLAN 服务。
要配置逻辑接口,请执行以下作:
要配置逻辑接口,请执行以下作:
指定要配置伪线逻辑接口。
user@host# edit interfaces ps0
指定要配置单元 0 ,表示传输逻辑接口。
[edit interfaces ps0] user@host# edit unit 0
指定传输逻辑接口的封装方法。您可以指定
ethernet-ccc(基于端口)或vlan-ccc(基于 VLAN)封装。[edit interfaces ps0 unit 0] user@host# set encapsulation ethernet-ccc
要配置服务逻辑接口,请执行以下作:
为服务逻辑接口配置单元。使用非零单元号。
user@host# edit interfaces ps0 unit1
在服务接口上配置封装。
[edit interfaces ps0 unit 1] user@host# set encapsulation vlan-bridge;
(选答)配置 VLAN ID。
[edit interfaces ps0 unit 1] user@host# set vlan-id vlan-id;
(选答)配置 VLAN 标记 ID 以支持双标记 VLAN。
[edit interfaces ps0 unit 1] set vlan-tags inner vlan-id outer vlan-id;
以下是具有支持单标记和双标记 VLAN 的服务以及与该接口关联的 L2 电路的逻辑接口的配置示例:
ps0 {
anchor-point {
lt-0/0/0;
}
flexible-vlan-tagging;
mac 00:00:5E:00:53:00;
unit 0 {
encapsulation ethernet-ccc;
}
unit 1 {
encapsulation vlan-bridge;
vlan-id 600;
}
unit 2 {
encapsulation vlan-bridge;
vlan-tag outer 200 inner 101;
}
}
protocols {
l2circuit {
neighbor 192.168.100.1 {
interface ps0.0 {
virtual-circuit-id 700;
encapsulation-type ethernet-vlan;
ignore-mtu-mismatch;
pseudowire-status-tlv;
}
}
}
}
以下是与服务逻辑接口对应的 EVPN 路由实例的配置示例:
routing-instances evpn-1 {
instance-type evpn;
vlan-id 600;
interface ps0.1;
route-distanguisher 3;3;
vrf-target target:1:1;
protocols {
evpn;
}
}
有关配置逻辑接口终端的更多信息,请参阅 伪线用户逻辑接口概述。
有关配置 EVPN 路由实例的详细信息,请参阅 配置 EVPN 路由实例。