SONiC中的VLAN
SONiC中支持VLAN要满足以下要求:
- 支持创建多个 802.1Q VLAN.
- VLAN可以包含物理端口或者LAG口,或者两者的混合.
- 带VLAN标签模式下一个物理端口或者LAG口可以加入多个VLAN.
- untagged 模式下一个物理端口或者LAG口只能加入一个VLAN.
- VLAN ID (pvid) 在物理端口或者LAG口上可配置.
- VLAN接口上最多可配置32个IP地址.
- VLAN可配置禁止未知单播包Flooding.
- VLAN可配置禁止未知多播包Flooding.
- VLAN可配置禁止未知广播包Flooding.
- It should be able to retrieve VLAN level stats.
- By default VLAN interface is up regardless of member state. VLAN autostate may be enabled.
Assumptions
New config model
One of the major assumptions for VLAN trunk design in this document is that the configuration of VLAN will be done through config manager based on the new config model.
下图的New config model比较清晰的说明了各个部件在配置管理中的作用