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