Show Table of Contents
8.5. VLAN 接口命名方案
通常,VLAN 接口名称格式为:interface-name.VLAN-ID。
VLAN-ID 范围为 0 到 4096,最多为四位数,接口名称总计不超过 15 个字符。接口名称的长度限制由内核标头规定,且是一个通用限制,会影响所有应用程序。
在 Red Hat Enterprise Linux 7 中支持四种 VLAN 接口名称的命名规则:
- VLAN + VLAN ID
- 单词
vlan加上 VLAN ID。例如:vlan0005 - VLAN + VLAN ID,不填充
- 单词
vlan加上 VLAN ID,不会在前面添加额外的两个零。例如:vlan5 - 设备名称 + VLAN ID
- 上级接口名称加上 VLAN ID。例如:eth0.0005
- 设备名称 + VLAN ID,不填充
- 上级接口名称加上 VLAN ID,不中前面添加额外的两个零。例如:eth0.05

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.