为第 2 层批发 VLAN 接口配置封装
第 2 层批发网络中的每个动态 VLAN 接口都必须使用封装。您可以通过在层次结构级别使用encapsulation[edit dynamic-profiles profile-name interface “$junos-interface-ifd-name” unit “$junos-interface-unit”]语句为每个 VLAN 接口动态配置封装,或者在层次结构级别为[edit interfaces interface-name]要使用的每个动态创建的 VLAN 接口配置物理接口的封装。但是,您选择在层次结构级别配置[edit dynamic-profiles profile-name interface “$junos-interface-ifd-name” unit “$junos-interface-unit”](或不配置)封装的方式会影响在层次结构级别配置[edit interfaces interface-name]封装的方式。
表 1 提供了第 2 层批发网络中动态配置文件和物理接口的有效封装组合。
动态配置文件封装 |
物理接口封装 |
使用说明 |
|---|---|---|
|
|
|
|
|
使用 |
|
|
|
无封装类型 |
|
|
要为第 2 层批发 VLAN 接口配置封装: