在捆绑 VLAN 的逻辑接口上配置第 2 层电路
本主题介绍如何在绑定到 VLAN ID 列表的逻辑接口上配置第 2 层电路。
配置 VLAN 捆绑逻辑接口以支持第 2 层 VPN 路由实例
要配置 VLAN 捆绑逻辑接口,请通过包含 语句或 语句来指定 VLAN ID 列表:vlan-id-list
vlan-tags
interfaces { ethernet-interface-name { vlan-tagging; # Support single- or dual-tag logical interfaces flexible-vlan-tagging; # Support mixed tagging encapsulation (extended-vlan-ccc | flexible-ethernet-services); unit logical-unit-number { encapsulation vlan–ccc; # Required for single-tag vlan-id-list [vlan-id vlan-id–vlan-id]; # For single-tag vlan-tags outer tpid.vlan-id inner-list [vlan-id vlan-id–vlan-id]; # For dual-tag } . . . } }
可以在以下层次结构级别包含语句:
[edit]
[edit logical-systems logical-system-name]
对于单标记逻辑接口,请包含 语句并指定 ,以便在第 2 层电路内部使用 CCC 电路封装。encapsulation
vlan-ccc
注:
对于双标记逻辑接口,Junos OS 会自动使用 封装类型。vlan-ccc
另请参阅
指定用于处理连接到第 2 层电路的 CCC 的流量的接口
要将 VLAN 捆绑逻辑接口配置为用于处理连接到第 2 层电路的电路流量的接口,请包含以下语句:
l2circuit { neighbor address { interface logical-interface-name { virtual-circuit-id number; no-control-word; } } }
可以在以下层次结构级别包含语句:
[edit protocols]
[edit logical-systems logical-system-name protocols]
要启用第 2 层电路,请包含 语句。l2circuit
要将路由器配置为第 2 层电路的邻接方,请使用语句指定 邻接方地址。neighbor
要指定用于处理连接到第 2 层电路的电路流量的接口,请包含该 语句并指定 VLAN 捆绑逻辑接口。interface