vlanctl --if-suffix
change real interface name mode,if not set , default mode is RG.
vlanctl --if
create vlan operations interface eg. vlanctl --if-create eth0 0 => generate eth0.0 with eth0
vlanctl --if-create
create vlan operations interface and specify name
vlanctl --if-create-name
delete vlan operations interface with name
vlanctl --if-delete
-- NOTIFY start-----------------------------
--------------------------------------------
when create a vlan interface,it will create 10 tables about this vlan interface automatically.
interface --
A tagging rule table determined by
when a table is created,the default values are set to: TPID(0x8100), pbits(0),vid(1),cfi(0)
and DSCP-TO-PBITS table are set by copying the lowest 3 bits of each DSCP value as the pbits value,
eg. DSCP=5 PBITS=5, DSCP=15 PBITS=7.
--------------------------------------------
-- NOTIFY end-------------------------------
change default actions of a vlan tag rules table,
vlanctl --if
[--default-tpid
change DSCP to Pbits translation
vlanctl --if
change Tpid table
vlanctl --if
--------------------------------------------
display a rule table. eg. vlanctl --if eth0 --rx --tags 0 --show-table
vlanctl --if
dispaly DSCP to Pbits table
vlanctl --if
display TPID table
vlanctl --if
display device local stats
vlanctl --local-stats
--------------------------------------------
runtest
vlanctl --run-test
--------------------------------------------
delete all tag rules
vlanctl --rule-remove-all
delete a tag rule
vlanctl --if
---------------------------------------------
Add a tag rule
vlanctl --if
filters:
--filter-skb-prio
--filter-skb-mark-flowid
--filter-skb-mark-port
--filter-ethertype
--filter-ipproto
--filter-dscp
--filter-dscp2pbits
--filter-vlan-dev-mac-addr
1: match unicast recive frames dest MAC addr against the recive virtual interface
--filter-pbits
--filter-cfi
--filter-vid
--filter-tag-ethertype
--filter-txif
commands:
--pop-tag remove the outermost VLAN tag.
--push-tag add default VLAN tag of the corresponding Tagging rule Table as the new outer tag.
--drop-frame drop the frame
--continue pass the frame
--set-rxif
--dscp2pbits
--set-dscp
--set-skb-prio
--set-skb-mark-port
--set-skb-mark-queue
--set-skb-mark-flowid
--set-ethertype
--set-pbits
--set-cfi
--set-vid
--set-tag-ethertype
--copy-pbits
--copy-cfi
--copy-vid
--copy-tag-ethertype
copy the Ethernet type value from VLAN header number
position: <--rule-append> | <--rule-insert-before rule-id=""> |<--rule-insert-after rule-id="">--rule-insert-after>--rule-insert-before>--rule-append>
--rule-append insert as a last rule
--rule-insert-before
--rule-insert-after
這是上cpu用Software去做vlan嗎?
回覆刪除我家的情况是,光猫和VLAN交换机在多媒体箱,一根网线连接无线路由器。单线复用实现WIFA全覆盖。为了实现这项功能,采用VLAN交换机建立VLAN分组,同时无线路由器建立VLAN分组的方式。
回覆刪除最近升级华硕AC86U无线路由器,发现这款路由器不支持robocfg功能,仅支持博通自有vlanctl设置。我对vlanctl完全不熟悉,网上找不到相关博文,请楼主帮忙实现以下robocfg相对应的vlanctl脚本。谢谢!
robocfg vlans reset vlan 1 ports "0u 1u 2u 3u 4u 5t" vlan 41 ports "0t 5u"