配置 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