Skip to main content
Version: current

ingress-vlan-translation


interface/ethernet/switch/ingress-vlan-translation

Syscap: musicswitch
Type: Directory

The Ingress VLAN Translation table allows for up to 15 entries for each port. One or multiple fields can be selected from the packet header for lookup in the Ingress VLAN Translation table. The S-VLAN or C-VLAN or both configured in the first matched entry are assigned to the packet.

FlagNameDescription
Xdisabled
Iinvalid
Ddynamic
ArgumentTypeDescription
protocolalt { protocol-name: enum (length | llc-bpdu) { length:1, llc-bpdu:0x4242 } , protocol-number: num [ .. 65535] }Matching Ethernet protocol. (only for Ingress VLAN Translation)
sa-learningboolEnables or disables source MAC learning after VLAN translation. (only for Ingress VLAN Translation)
ports ( mandatory )multi { array-id }Matching switch ports for VLAN translation rule.
service-vlan-formatenum (untagged-or-tagged | priority-tagged-or-tagged | tagged | any) { untagged-or-tagged:0, priority-tagged-or-tagged:1, tagged:2, any:3 }Type of frames with service tag for which VLAN translation rule is valid.
service-vidnumMatching VLAN ID of the service tag.
service-pcpnumMatching PCP of the service tag.
service-deinumMatching DEI of the service tag.
customer-vlan-formatenum (untagged-or-tagged | priority-tagged-or-tagged | tagged | any) { untagged-or-tagged:0, priority-tagged-or-tagged:1, tagged:2, any:3 }Type of frames with customer tag for which VLAN translation rule is valid.
customer-vidnumMatching the VLAN ID of the customer tag.
customer-pcpnumMatching PCP of the customer tag.
customer-deinumMatching DEI of the customer tag.
new-service-vidalt { special-vid: enum (customer-vid) { customer-vid:4096 } , vid: num [ .. 4095] }The new service VLAN ID replaces the matching service VLAN ID.
new-customer-vidalt { special-vid: enum (service-vid) { service-vid:4096 } , vid: num [ .. 4095] }The new customer VLAN ID replaces the matching customer VLAN ID. If set to 4095 and ingress VLAN translation is used, then traffic is dropped.
pcp-propagationbool

Enables or disables PCP propagation.

  • If the port type is Edge, the customer PCP is copied from the service PCP.
  • If the port type is Network, the service PCP is copied from the customer PCP.
swap-vidsenum (no | assign-cvid-to-svid) { no:0, assign-cvid-to-svid:0 }

Below is a table of traffic that triggers a rule that has a certain VLAN format set; note that traffic that is tagged with VLAN ID 0 is a special case that is also taken into account.

PropertyDescription
anyAccepts:
  • Untagged traffic
  • Tagged traffic
  • Tagged traffic with priority set
  • VLAN 0 traffic
  • VLAN 0 traffic with priority set
priority-tagged-or-taggedAccepts:
  • Tagged traffic
  • Tagged traffic with priority set
  • VLAN 0 traffic
  • VLAN 0 traffic with priority set
taggedAccepts:
  • Tagged traffic
  • Tagged traffic with priority set
untagged-or-taggedAccepts:
  • Untagged traffic
  • Tagged traffic
  • Tagged traffic with priority set
danger

If VLAN-format is set to any, then customer-vid``/``service-vid set to 0 will trigger the switch rule with VLAN 0 traffic. In this case, the switch rule will be looking for untagged traffic or traffic with a VLAN 0 tag, and only untagged-or-tagged will filter out VLAN 0 traffic.