Nftables-如何标记qinq(双vlan)?

时间:2017-08-17 12:00:31

标签: linux ubuntu network-programming iptables ebtables

嘿,我在Ubuntu 16.04中使用Nftables,我试图根据内部Vlan id标记数据包(创建此规则)。到目前为止,我已经成功地用这种方式用Nftables标记第一个Vlan id:

nft add table netdev l2  #create table of type netdev  (layer 2)
nft add chain netdev l2 ingress #create chain
nft add rule netdev l2 ingress vlan id 4092 mark set 5 #if(vlan==4092) {mark 5} 

如何根据第二个Vlan id设置相同的规则?

0 个答案:

没有答案
相关问题