本机 VLAN
从瞻博网络云原生路由器 23.1 版开始,云原生路由器支持在中继接口上接收和转发未标记的数据包。通常情况下,中继端口只接受已标记的数据包,而未标记的数据包将被丢弃。通过在要接收未标记数据包的接口上配置本机 VLAN 标识符 (ID),可以使云原生路由器结构中继端口接受未标记的数据包。当云原生路由器交换矩阵中继端口启用以接受未标记的数据包时,此类数据包将在本机 VLAN 域中转发。
本机 VLAN
在部署时间之前,启用 native-vlan-id Helm 图表中的密钥,以配置 VLAN 标识符,以便将其与交换矩阵中继接口上接收的未标记数据包相关联。编辑 values.yaml Juniper_Cloud_Native_Router_<release-number>/helmchart 目录中的文件,并添加键 native-vlan-id 及其值。例如:
fabricInterface:
- eth1:
ddp: on
interface_mode: trunk
vlan-id-list: [100, 200, 300, 700-705]
storm-control-profile: rate_limit_pf1
native-vlan-id: 100
no-local-switching: true
注意:
编辑 values.yaml 文件后,您必须使用编辑后的 values.yaml 安装或升级云原生路由器,以确保 native-vlan-id 密钥已启用。
要验证,如果为接口启用了本机 VLAN,请执行命令 kubectl exec -it -n contrail contrail-vrouter-<agent container> -- bash 命令连接到 vRouter 代理,然后运行命令 vif --get <interface index id>。示例输出如下所示:
vif0/1 PCI: 0000:00:00.0 (Speed 10000, Duplex 1)
Type:Physical HWaddr:6a:45:b2:a8:ce:5c
Vrf:0 Flags:L2Vof QOS:-1 Ref:11
RX port packets:36550 errors:0
RX queue packets:36550 errors:0
RX queue errors to lcore 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Fabric Interface: eth_bond_bond0 Status: UP Driver: net_bonding
Slave Interface(0): 0000:3b:02.0 Status: UP Driver: net_iavf
Vlan Mode: Trunk Vlan: 100 200 300
Native vlan id: 100
RX packets:36550 bytes:5875795 errors:0
TX packets:0 bytes:0 errors:0
Drops:613