Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typos

...

The Cloud Router Switch series are highly integrated switches with high-performance MIPS CPU and feature-rich packet processorprocessors. The CRS switches can be designed into various Ethernet applications including unmanaged switch, Layer 2 managed switch, carrier switch, and wireless/wired unified packet processing. See See Cloud Router Switch configuration examples

...

FeaturesDescription
Forwarding
  • Configurable ports for switching or routing
  • Full non-blocking wirespeed wire-speed switching
  • Up to 16k MAC entries in Unicast FDB for Layer 2 unicast forwarding
  • Up to 1k MAC entries in Multicast FDB for multicast forwarding
  • Up to 256 MAC entries in Reserved FDB for control and management purposes
  • All Forwarding Databases support IVL and SVL
  • Configurable Port-based MAC learning limit
  • Jumbo frame support (CRS1xx: 4064 Bytes; CRS2xx: 9204 Bytes)
  • IGMP Snooping support
Mirroring
  • Various types of mirroring:
    • Port-based mirroring
    • VLAN-based mirroring
    • MAC-based mirroring
  • 2 independent mirroring analyzer ports
VLAN
  • Fully compatible with IEEE802.1Q and IEEE802.1ad VLAN
  • 4k active VLANs
  • Flexible VLAN assignment:
    • Port-based VLAN
    • Protocol-based VLAN
    • MAC-based VLAN
  • From any to any VLAN translation and swapping
  • 1:1 VLAN switching - VLAN to port mapping
  • VLAN filtering
Port Isolation and Leakage
  • Applicable for Private VLAN implementation
  • 3 port profile types: Promiscuous, Isolated, and Community
  • Up to 28 Community profiles
  • Leakage profiles allow bypassing egress VLAN filtering
Trunking
  • Supports static link aggregation groups
  • Up to 8 Port Trunk groups
  • Up to 8 member ports per Port Trunk group
  • Hardware automatic failover and load balancing
Quality of Service (QoS)
  • Flexible QoS classification and assignment:
    • Port-based
    • MAC-based
    • VLAN-based
    • Protocol-based
    • PCP/DEI based
    • DSCP based
    • ACL based
  • QoS remarking and remapping for QoS domain translation between a service provider and client networks
  • Overriding of each QoS assignment according to the configured priority
Shaping and Scheduling
  • 8 queues on each physical port
  • Shaping per port, per queue, per queue group
Access Control List
  • Ingress and Egress ACL tables
  • Up to 128 ACL rules (limited by RouterOS)
  • Classification based on ports, L2, L3, L4 protocol header fields
  • ACL actions include filtering, forwarding, and modifying the protocol header fields

...

This table clarifies the main differences between Cloud Router Switch models.

ModelSwitch ChipCPUWirelessSFP+ portAccess Control ListJumbo Frame (Bytes)
CRS105-5S-FBQCA-8511400MHz--+9204
CRS106-1C-5SQCA-8511400MHz--+9204
CRS112-8G-4SQCA-8511400MHz--+9204
CRS210-8G-2S+QCA-8519400MHz-++9204
CRS212-1G-10S-1S+QCA-8519400MHz-++9204
CRS226-24G-2S+QCA-8519400MHz-++9204
CRS125-24G-1SQCA-8513L600MHz---4064
CRS125-24G-1S-2HnDQCA-8513L600MHz+--4064
CRS109-8G-1S-2HnDQCA-8513L600MHz+--4064

Abbreviations and Explanations

...

Drop precedence - internal CRS switch QoS attribute used for packet enqueuing or dropping.

Port Switching

...

In order to To set up port switching on CRS1xx/2xx series switches, check the Bridge Hardware Offloading page.

...

Note

Multiple hardware offloaded bridge configuration is designed as a fast and simple port isolation solution, but it limits a part of the VLAN functionality supported by the CRS switch - chip. For advanced configurations use one bridge within the CRS switch chip for all ports, configure VLANs, and isolate port groups with port isolation profile configuration.

...

Warning

CRS1xx/2xx series switches are capable of running can run multiple hardware offloaded bridges with (R)STP enabled, but it is not recommended since the device is not designed to run multiple (R)STP instances on a hardware level. To isolate multiple switch groups and have (R)STP enabled you should isolate port groups with port isolation profile configuration.

Global Settings

...

The CRS switch chip is configurable from the /interface ethernet switch console menu.

Sub-menu: /interface ethernet switch

PropertyDescription
name (string value; Default: switch1)Name of the switch.
bridge-type (customer-vid-used-as-lookup-vid | service-vid-used-as-lookup-vid; Default: customer-vid-used-as-lookup-vid)Bridge The bridge type defines which VLAN tag is used as Lookup-VID. Lookup-VID serves as the VLAN key for all VLAN-based lookuplookups.
mac-level-isolation (yes | no; Default: yes)Globally enables or disables MAC level isolation. Once enabled, the switch will check the source and destination MAC address entries and their isolation-profile from the unicast forwarding table. By default, the switch will learn MAC addresses and place them into a promiscuous isolation profile. Other isolation profiles can be used when creating static unicast entries. If the source or destination MAC address is located on a promiscuous isolation profile, the packet is forwarded. If both source and destination MAC addresses are located on the same community1 or community2 isolation profile, the packet is forwarded. The packet is dropped when the source and destination MAC address isolation profile is isolated, or when the source and destination MAC address isolation profiles are from different communities (e.g. source MAC address is community1 and destination MAC address is community2). When MAC level isolation is globally disabled, the isolation is bypassed.
use-svid-in-one2one-vlan-lookup (yes | no; Default: no)Whether to use service VLAN id ID for 1:1 VLAN switching lookup.
use-cvid-in-one2one-vlan-lookup (yes | no; Default: yes)Whether to use customer VLAN id ID for 1:1 VLAN switching lookup.
multicast-lookup-mode

(dst-ip-and-vid-for-ipv4 | dst-mac-and-vid-always;

Default:dst-ip-and-vid-for-ipv4)
Lookup mode for IPv4 multicast bridging.
  • dst-mac-and-vid-always - For all packet types lookup key is the destination MAC and VLAN idID.
  • dst-ip-and-vid-for-ipv4 - For IPv4 packets lookup key is the destination IP and VLAN idID. For other packet types, the lookup key is the destination MAC and VLAN idID.
unicast-fdb-timeout (time interval; Default: 5m)Timeout for Unicast FDB entries.
override-existing-when-ufdb-full (yes | no; Default: no)Enable or disable to override existing entry which has the lowest aging value when UFDB is full.

...

PropertyDescription
drop-if-no-vlan-assignment-on-ports (ports; Default: none)Ports which drop frames if no MAC-based, Protocol-based VLAN assignment or Ingress VLAN Translation is applied.
drop-if-invalid-or-src-port-
-not-member-of-vlan-on-ports

(ports; Default: none)
Ports that drop invalid and other port VLAN id ID frames.
unknown-vlan-lookup-mode (ivl | svl; Default: svl)Lookup and learning mode for packets with invalid VLAN.
forward-unknown-vlan (yes | no; Default: yes)Whether to allow forwarding VLANs that are not members of the VLAN table.

...

PropertyDescription
ingress-mirror0 (port | trunk,format; Default: none,modified)The first ingress mirroring analyzer port or trunk and mirroring format:
  • analyzer-configured - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the analyzer port.
  • modified - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the egress port.
  • original - Traffic is mirrored without any change to the original incoming packet format. But the service VLAN tag is stripped in the edge port.
ingress-mirror1 (port | trunk,format; Default: none,modified)The second ingress mirroring analyzer port or trunk and mirroring format:
  • analyzer-configured - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the analyzer port.
  • modified - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the egress port.
  • original - Traffic is mirrored without any change to the original incoming packet format. But the service VLAN tag is stripped in the edge port.
ingress-mirror-ratio (1/32768..1/1; Default: 1/1)The proportion of ingress mirrored packets compared to all packets.
egress-mirror0 (port | trunk,format; Default: none,modified)The first egress mirroring analyzer port or trunk and mirroring format:
  • analyzer-configured - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the analyzer port.
  • modified - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the egress port.
  • original - Traffic is mirrored without any change to the original incoming packet format. But the service VLAN tag is stripped in the edge port.
egress-mirror1 (port | trunk,format; Default: none,modified)The second egress mirroring analyzer port or trunk and mirroring format:
  • analyzer-configured - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the analyzer port.
  • modified - The packet is the same as the packet to the destination. VLAN format is modified based on the VLAN configurations of the egress port.
  • original - Traffic is mirrored without any change to the original incoming packet format. But the service VLAN tag is stripped in the edge port.
egress-mirror-ratio (1/32768..1/1; Default: 1/1)Proportion of egress mirrored packets compared to all packets.
mirror-egress-if-ingress-mirrored (yes | no; Default: no)When a packet is applied to both ingress and egress mirroring, only ingress mirroring is performed on the packet, if this setting is disabled. If this
setting is enabled both mirroring types are applied.
mirror-tx-on-mirror-port (yes | no; Default: no)
mirrored-packet-qos-priority (0..7; Default: 0)Remarked priority in mirrored packets.
mirrored-packet-drop-precedence (drop | green | red | yellow; Default: green)Remarked drop precedence in mirrored packets. This QoS attribute is used for mirrored packet enqueuing or dropping.
fdb-uses (mirror0 | mirror1; Default: mirror0)Analyzer port used for FDB-based mirroring.
vlan-uses (mirror0 | mirror1; Default: mirror0)Analyzer port used for VLAN-based mirroring.

...

PropertyDescription
vlan-type (edge-port | network-port; Default: network-port)Port VLAN type specifies whether VLAN id ID is used in UFDB learning. Network The network port learns VLAN id ID in UFDB, edge port does not - VLAN 0. It can be observed only in IVL learning mode.
isolation-leakage-profile-override (yes | no; Default:

!isolation-leakage-profile-override)

isolation-leakage-profile (0..31;)
Custom port profile for port isolation/leakage configurations.
  • Port-level isolation profile 0. Uplink port - allows the port to communicate with all ports in the device.
  • Port-level isolation profile 1. Isolated port - allows the port to communicate only with uplink ports.
  • Port-level isolation profile 2 - 31. Community port - allows communication among the same community ports and uplink ports.
learn-override (yes | no; Default: !learn-override)
learn-limit (1..1023; Default: !learn-limit)
Enable or disable MAC address learning and set the MAC limit on the port. MAC learning limit is disabled by default when !learn-override and !learn-limit are set. Property learn-override is replaced with learn under /interface bridge port menu since RouterOS v6.42.
drop-when-ufdb-entry-src-drop (yes | no; Default: yes)Enable or disable to drop packets when UFDB entry has action src-drop.
allow-unicast-loopback (yes | no; Default: no)Unicast loopback on port. When enabled, it permits sending back when the source port and destination port are the same one for known unicast packets.
allow-multicast-loopback (yes | no; Default: no)Multicast loopback on port. When enabled, it permits sending back when the source port and destination port are the same for registered multicast orbroadcast or broadcast packets.
action-on-static-station-move (copy-to-cpu | drop | forward | redirect-to-cpu; Default: forward)Action for packets when UFDB already contains a static entry with such MAC but with a different port.
drop-dynamic-mac-move (yes | no; Default: no)Prevents MAC relearning until UFDB timeout if MAC is already learned on other another port.


PropertyDescription
allow-fdb-based-vlan-translate (yes | no; Default: no)Enable or disable MAC-based VLAN translation on the port.
allow-mac-based-service-vlan-assignment-for (all-frames | none |

tagged-frame-only | untagged-and-priority-tagged-frame-only; Default:

none)
Frame type for which applies MAC-based service VLAN translation.
allow-mac-based-customer-vlan-assignment-for (all-frames | none |

tagged-frame-only | untagged-and-priority-tagged-frame-only; Default:

none)
Frame type for which applies MAC-based customer VLAN translation.
default-customer-pcp (0..7; Default: 0)Default customer PCP of the port.
default-service-pcp (0..7; Default: 0)Default service PCP of the port.
pcp-propagation-for-initial-pcp (yes | no; Default: no)Enables or disables PCP propagation for initial PCP assignment on ingress.
  • If the port vlan-type is Edge port, the service PCP is copied from the customer PCP.
  • If the port vlan-type is a Network port, the customer PCP is copied from the service PCP.
filter-untagged-frame (yes | no; Default: no)Whether to filter untagged frames on the port.
filter-priority-tagged-frame (yes | no; Default: no)Whether to filter tagged frames with priority on the port.
filter-tagged-frame (yes | no; Default: no)Whether to filter tagged frames on the port.

...

PropertyDescription
egress-vlan-tag-table-lookup-key (according-to-bridge-type | egress-vid; Default: egress-vid)Egress VLAN table (VLAN Tagging) lookup:
  • egress-vid - Lookup VLAN id ID is CVID when Edge port is configured, SVID when Network port is configured.
  • according-to-bridge-type - Lookup VLAN id ID is CVID when customer VLAN bridge is configured, SVID when service VLAN bridge is configured. The Customer tag is unmodified for Edge port in service VLAN bridge.
egress-vlan-mode (tagged | unmodified | untagged; Default: unmodified)Egress VLAN tagging action on the port.
egress-pcp-propagation (yes | no; Default: no)Enables or disables egress PCP propagation.
  • If the port vlan-type is Edge port, the service PCP is copied from the customer PCP.
  • If the port vlan-type is Network port, the customer PCP is copied from the service PCP.

...

PropertyDescription
qos-scheme-precedence (da-based | dscp-based | ingress-acl-based | pcp-based | protocol-based | sa-based | vlan-based; Default: pcp-based, sa-based, da-based, dscp-based, protocol-based, vlan-based)Specifies applied QoS assignment schemes on the ingress of the port.
  • da-based
  • dscp-based
  • ingress-acl-based
  • pcp-based
  • protocol-based
  • sa-based
  • vlan-based
pcp-or-dscp-based-qos-change-dei (yes | no; Default: no)Enable or disable PCP or DSCP based DEI change on port.
pcp-or-dscp-based-qos-change-pcp (yes | no; Default: no)Enable or disable PCP or DSCP based PCP change on port.
pcp-or-dscp-based-qos-change-dscp (yes | no; Default: no)Enable or disable PCP or DSCP based DSCP change on port.
dscp-based-qos-dscp-to-dscp-mapping (yes | no; Default: yes)Enable or disable DSCP to internal DSCP mapping on port.
pcp-based-qos-drop-precedence-mapping (PCP/DEI-range:drop-precedence; Default: 0-15:green)The new value of drop precedence for the PCP/DEI to drop precedence (drop | green | red | yellow) mapping. Multiple mappings are allowed separated by a comma e.g. "0-7:yellow,8-15:red".
pcp-based-qos-dscp-mapping (PCP/DEI-range:DEI; Default: 0-15:0)The new value of DSCP for the PCP/DEI to DSCP (0..63) mapping. Multiple mappings are allowed separated by a comma e.g. "0-7:25,8-15:50".
pcp-based-qos-dei-mapping (PCP/DEI-range:DEI; Default: 0-15:0)The new value of DEI for the PCP/DEI to DEI (0..1) mapping. Multiple mappings are allowed separated by a comma e.g. "0-7:0,8-15:1".
pcp-based-qos-pcp-mapping (PCP/DEI-range:DEI; Default: 0-15:0)The new value of PCP for the PCP/DEI to PCP (0..7) mapping. Multiple mappings are allowed separated by a comma e.g. "0-7:3,8-15:4".
pcp-based-qos-priority-mapping (PCP/DEI-range:DEI; Default: 0-15:0)The new value of internal priority for the PCP/DEI to priority (0..15) mapping. Multiple mappings are allowed separated by a comma e.g. "0-7:5,8-15:15".

...

PropertyDescription
ingress-customer-tpid-override (yes | no;

Default:!ingress-customer-tpid-override)

ingress-customer-tpid (0..10000; Default: 0x8100)
Ingress customer TPID override allows accepting specific frames with a custom customer tag TPID. Default The default value is for the tag of 802.1Q frames.
egress-customer-tpid-override (yes | no; Default:

!egress-customer-tpid-override)
egress-customer-tpid (0..10000; Default:

0x8100)
Egress customer TPID override allows custom identification for egress frames with a customer tag. Default The default value is for the tag of 802.1Q frames.
ingress-service-tpid-override (yes | no; Default:

!ingress-service-tpid-override)

ingress-service-tpid (0..10000; Default: 0x88A8)
Ingress service TPID override allows accepting specific frames with a custom service tag TPID. Default The default value is for the service tag of 802.1AD frames.
egress-service-tpid-override (yes | no; Default:

!egress-service-tpid-override)
egress-service-tpid (0..10000; Default:

0x88A8)
Egress service TPID override allows custom identification for egress frames with a service tag. Default The default value is for the service tag of 802.1AD frames.

...

PropertyDescription
action (action; Default: forward)Action for UFDB entry:
  • dst-drop - Packets are dropped when their destination MAC match matches the entry.
  • dst-redirect-to-cpu - Packets are redirected to the CPU when their destination MAC match matches the entry.
  • forward - Packets are forwarded.
  • src-and-dst-drop - Packets are dropped when their source MAC or destination MAC match matches the entry.
  • src-and-dst-redirect-to-cpu - Packets are redirected to CPU when their source MAC or destination MAC match matches the entry.
  • src-drop - Packets are dropped when their source MAC match matches the entry.
  • src-redirect-to-cpu - Packets are redirected to the CPU when their source MAC match matches the entry.
disabled (yes | no; Default: no)Enables or disables Unicast FDB entry.
isolation-profile (community1 | community2 | isolated | promiscuous; Default: promiscuous)MAC level isolation profile.
mac-address (MAC address)The action command applies to the packet when the destination MAC or source MAC matches the entry.
mirror (yes | no; Default: no)Enables or disables mirroring based on source MAC or destination MAC.
port (port)Matching port for the Unicast FDB entry.
qos-group (none; Default: none)Defined QoS group from QoS group menu.
svl (yes | no; Default: no)Unicast FDB learning mode:
  • Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs.
  • Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
vlan-id (0..4095)Unicast FDB lookup/learning VLAN id.

...

PropertyDescription
address (X.X.X.X | XX:XX:XX:XX:XX:XX)Matching IP address or MAC address for multicast packets.
bypass-vlan-filter (yes | no; Default: no)Allow to bypass VLAN filtering for matching multicast packets.
disabled (yes | no; Default: no)Enables or disables Multicast FDB entry.
ports (ports)Member ports for multicast traffic.
qos-group (none; Default: none)Defined QoS group from QoS group menu.
svl (yes | no; Default: no)Multicast FDB learning mode:
  • Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs.
  • Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
vlan-id (0..4095; Default: 0)Multicast FDB lookup VLAN idID. If the VLAN learning mode is IVL, VLAN id is lookup id, otherwise VLAN id = 0.

...

PropertyDescription
action (copy-to-cpu | drop | forward | redirect-to-cpu; Default: forward)Action for RFDB entry:
  • copy-to-cpu - Packets are copied to the CPU when their destination MAC match matches the entry.
  • drop - Packets are dropped when their destination MAC match matches the entry.
  • forward - Packets are forwarded when their destination MAC match matches the entry.
  • redirect-to-cpu - Packets are redirected to CPU when their destination MAC match matches the entry.
bypass-ingress-port-policing (yes | no; Default: no)Allow to bypass Ingress Port Policer for matching packets.
bypass-ingress-vlan-filter (yes | no; Default: no)Allow to bypass VLAN filtering for matching packets.
disabled (yes | no; Default: no)Enables or disables Reserved FDB entry.
mac-address (MAC address; Default: 00:00:00:00:00:00)Matching MAC address for Reserved FDB entry.
qos-group (none; Default: none)Defined QoS group from QoS group menu.

...

PropertyDescription
disabled (yes | no; Default: no)Indicate whether the VLAN entry is disabled. Only enabled entry is applied to the lookup process and forwarding decision.
flood (yes | no; Default: no)Enables or disables forced VLAN flooding per VLAN. If the feature is

enabled, the result of the destination MAC lookup in the UFDB or MFDB is ignored,

and the packet is forced to flood in the VLAN.
ingress-mirror (yes | no; Default: no)Enable the ingress mirror per VLAN to support the VLAN-based mirror function.
learn (yes | no; Default: yes)Enables or disables source MAC learning for VLAN.
ports (ports)Member ports of the VLAN.
qos-group (none; Default: none)Defined QoS group from QoS group menu.
svl (yes | no; Default: no)FDB lookup mode for lookup in UFDB and MFDB.
  • Shared VLAN Learning (svl) - learning/lookup is based on MAC addresses - not on VLAN IDs.
  • Independent VLAN Learning (ivl) - learning/lookup is based on both MAC addresses and VLAN IDs.
vlan-id (0..4095)VLAN id ID of the VLAN member entry.

...

Egress packets can be assigned different VLAN tag formatformats. The VLAN tags can be removed, added, or remained as is when the packet is sent to the egress port (destination port). Each port has dedicated control on of the egress VLAN tag format. The tag formats include:

...

PropertyDescription
disabled (yes | no; Default: no)Enables or disables Egress VLAN Tag table entry.
tagged-ports (ports)Ports which that are tagged in egress.
vlan-id (0..4095)VLAN id ID which is tagged in egress.

...

PropertyDescription
customer-dei (0..1; Default: none)Matching DEI of the customer tag.
customer-pcp (0..7; Default: none)Matching PCP of the customer tag.
customer-vid (0..4095; Default: none)Matching the VLAN id ID of the customer tag.
customer-vlan-format (any | priority-tagged-or-tagged | tagged | untagged-or-tagged; Default:any)Type of frames with customer tag for which VLAN translation rule is valid.
disabled (yes | no; Default: no)Enables or disables VLAN translation entry.
new-customer-vid (0..4095; Default: none)The new customer VLAN id which ID replaces the matching customer VLAN idID. If set to 4095 and ingress VLAN translation is used, then traffic is dropped.
new-service-vid (0..4095; Default: none)The new service VLAN id which ID replaces the matching service VLAN idID.
pcp-propagation (yes | no; Default: no)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.
ports (ports)Matching switch ports for VLAN translation rule.
protocol (protocols; Default: none)Matching Ethernet protocol. (only for Ingress VLAN Translation)
sa-learning (yes | no; Default: no)Enables or disables source MAC learning after VLAN translation. (only for Ingress VLAN Translation)
service-dei (0..1; Default: none)Matching DEI of the service tag.
service-pcp (0..7; Default: none)Matching PCP of the service tag.
service-vid (0..4095; Default: none)Matching VLAN id ID of the service tag.
service-vlan-format (any | priority-tagged-or-tagged | tagged | untagged-or-tagged; Default:any)Type of frames with service tag for which VLAN translation rule is valid.

...

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


Warning

If VLAN-format is set to any, then customer-vid/service-vid set  set to 0 will 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, only and only untagged-or-tagged will filter out VLAN 0 traffic in this case.

...

Protocol Based VLAN table is used to assign VID and QoS attributes to related protocol packet packets per port.

Sub-menu: /interface ethernet switch protocol-based-vlan

PropertyDescription
disabled (yes | no; Default: no)Enables or disables Protocol Based VLAN entry.
frame-type (ethernet | llc | rfc-1042; Default: ethernet)Encapsulation type of the matching frames.
new-customer-vid (0..4095; Default: 0)The new customer VLAN id which ID replaces the original customer VLAN id ID for the specified protocol. If set to 4095, then traffic is dropped.
new-service-vid (0..4095; Default: 0)The new service VLAN id which ID replaces the original service VLAN id ID for the specified protocol.
ports (ports)Matching switch ports for Protocol-based VLAN rule.
protocol (protocol; Default: 0)Matching protocol for Protocol-based VLAN rule.
qos-group (none; Default: none)Defined QoS group from QoS group menu.
set-customer-vid-for (all | none | tagged | untagged-or-priority-tagged; Default: all)Customer VLAN id ID assignment command for different packet typetypes.
set-qos-for (all | none | tagged | untagged-or-priority-tagged; Default: none)Frame type for which QoS assignment command applies.
set-service-vid-for (all | none | tagged | untagged-or-priority-tagged; Default: all)Service VLAN id ID assignment command for different packet typetypes.

MAC Based VLAN

MAC Based VLAN table is used to assign VLAN based on the source MAC.

Sub-menu: /interface ethernet switch mac-based-vlan

PropertyDescription
disabled (yes | no; Default: no)Enables or disables MAC Based VLAN entry.
new-customer-vid (0..4095; Default: 0)The new customer VLAN id which ID replaces the original service VLAN id ID for matched packets. If set to 4095, then traffic is dropped.
new-service-vid (0..4095; Default: 0)The new service VLAN id which ID replaces the original service VLAN id ID for matched packets.
src-mac-address (MAC address)Matching source MAC address for MAC based VLAN rule.

...

1:1 VLAN switching can be used to replace the regular L2 bridging for matched packets. When a packet hits a 1:1 VLAN switching table entry, the destination port information in the entry is assigned to the packet. The matched destination information in the UFDB and MFDB entry no longer applies to the packet.

...

The CRS switches support flexible multi-level isolation features, which can be used for user access control, traffic engineering and advanced security and network management. The isolation features provide an organized fabric structure allowing user to easily program and control the access by port, MAC address, VLAN, protocol, flow, and frame type. The following isolation and leakage features are supported:

...

Port-level isolation supports different control schemes on the source port and destination port. Each entry can be programmed with access control for either the source port or the destination port.

  • When the entry is programmed with source port access control, the entry is

...

Port leakage allows bypassing egress VLAN filtering on the port. Leaky A leaky port is allowed to access other ports for various applications such as security, network control, and management. Note: When both isolation and leakage is are applied to the same port, the port is isolated.

...

PropertyDescription
disabled (yes | no; Default: no)Enables or disables port isolation/leakage entry.
flow-id (0..63; Default: none)
forwarding-type (bridged; routed; Default: bridged,routed)Matching traffic forwarding type on Cloud Router Switch.
mac-profile (community1 | community2 | isolated | promiscuous; Default: none)Matching MAC isolation/leakage profile.
port-profile (0..31; Default: none)Matching Port isolation/leakage profile.
ports (ports; Default: none)Isolated/leaked ports.
protocol-type (arp; nd; dhcpv4; dhcpv6; ripv1; Default: arp,nd,dhcpv4,dhcpv6,ripv1)Included protocols for isolation/leakage.
registration-status (known; unknown; Default: known,unknown)Registration status for matching packets. Known are present in UFDB and MFDB, and unknown are not.
traffic-type (unicast; multicast; broadcast; Default: unicast,multicast,broadcast)Matching traffic type.
type (dst | src; Default: src)Lookup type of the isolation/leakage entry:
  • src - Entry applies to ingress packets of the ports.
  • dst - Entry applies to egress packets of the ports.
vlan-profile (community1 | community2 | isolated | promiscuous; Default: none)Matching VLAN isolation/leakage profile.

...

Traffic shaping restricts the rate and burst size of the flow which is transmitted out from the interface. The shaper is implemented by a token bucket. If the packet exceeds the maximum rate or the burst size, which means no not enough token for the packet, the packet is stored to buffer until there is enough token to transmit it.

...

The global QoS group table is used for VLAN-based, Protocol-based, and MAC-based QoS group assignment configuration.

...

PropertyDescription
dei (0..1; Default: none)The new value of DEI for the QoS group.
disabled (yes | no; Default: no)Enables or disables protocol QoS group entry.
drop-precedence (drop | green | red | yellow; Default: green)Drop precedence is an internal QoS attribute used for packet enqueuing or dropping.
dscp (0..63; Default: none)The new value of DSCP for the QoS group.
name (string value; Default: groupX)Name of the QoS group.
pcp (0..7; Default: none)The new value of PCP for the QoS group.
priority (0..15; Default: 0)Internal priority is a local significance of priority for classifying traffics traffic to different egress queues on a port. (1 is highest, 15 is lowest)

...

The global DSCP to DSCP mapping table is used for mapping from the packet's original DSCP to the new DSCP value configured in the table.

...

Access Control List contains of ingress policy and egress policy engines and allows to configure configuration of up to 128 policy rules (limited by RouterOS). It is an advanced tool for wire-speed packet filtering, forwarding, shaping, and modifying based on Layer2, Layer3, and Layer4 protocol header field conditions.

Note

See the Summary section for Access Control List supported Cloud Router Switch devices.

...

Warning

Due to hardware limitations, it is not possible to match broadcast/multicast traffic on specific ports. You should use port isolation, drop traffic on ingress ports, or use VLAN filtering to prevent certain broadcast/multicast traffic from being forwarded.

...

PropertyDescription
disabled (yes | no; Default: no)Enables or disables ACL entry.
table (egress | ingress; Default: ingress)Selects the policy table for incoming or outgoing packets.
invert-match (yes | no; Default: no)Inverts the whole ACL rule matching.
src-ports (ports,trunks)Matching physical source ports or trunks.
dst-ports (ports,trunks)Matching physical destination ports or trunks. It is not possible to match broadcast/multicast traffic on the egress port due to a hardware limitation.
mac-src-address (MAC address/Mask)Source MAC address and mask.
mac-dst-address (MAC address/Mask)Destination MAC address and mask.
dst-addr-registered (yes | no)Defines whether to match packets with registered state - packets which whose destination MAC address is in UFDB/MFDB/RFDB. Valid only in the egress table.
mac-protocol (802.2 | arp | homeplug-av | ip | ip-or-ipv6 | ipv6 | ipx | lldp | loop-protect | mpls-multicast | mpls-unicast | non-ip | packing-compr | packing-simple | pppoe | pppoe-discovery | rarp | service-vlan | vlan or integer: 0..65535 decimal format or 0x0000-0xffff hex format)Ethernet payload type (MAC-level protocol)
  • 802.2 - 802.2 Frames (0x0004)
  • arp - Address Resolution Protocol (0x0806)
  • homeplug-av - HomePlug AV MME (0x88E1)
  • ip - Internet Protocol version 4 (0x0800)
  • ip-or-ipv6 - IPv4 or IPv6 (0x0800 or 0x86DD)
  • ipv6 - Internet Protocol Version 6 (0x86DD)
  • ipx - Internetwork Packet Exchange (0x8137)
  • lldp - Link Layer Discovery Protocol (0x88CC)
  • loop-protect - Loop Protect Protocol (0x9003)
  • mpls-multicast - MPLS multicast (0x8848)
  • mpls-unicast - MPLS unicast (0x8847)
  • non-ip - Not Internet Protocol version 4 (not 0x0800)
  • packing-compr - Encapsulated packets with compressed IP packing (0x9001)
  • packing-simple - Encapsulated packets with simple IP packing (0x9000)
  • pppoe - PPPoE Session Stage (0x8864)
  • pppoe-discovery - PPPoE Discovery Stage (0x8863)
  • rarp - Reverse Address Resolution Protocol (0x8035)
  • service-vlan - Provider Bridging (IEEE 802.1ad) & Shortest Path Bridging IEEE 802.1aq (0x88A8)
  • vlan - VLAN-tagged frame (IEEE 802.1Q) and Shortest Path Bridging IEEE 802.1aq with NNI compatibility (0x8100)
drop-precedence (drop | green | red | yellow)Matching internal drop precedence. Valid only in the egress table.
custom-fields

...

PropertyDescription
lookup-vid (0..4095)VLAN id used in lookup. It can be changed before reaching the egress table.
service-vid (0-4095)Matching service VLAN id.
service-pcp (0..7)Matching service PCP.
service-dei (0..1)Matching service DEI.
service-tag (priority-tagged | tagged | tagged-or-priority-tagged | untagged)Format of the service tag.
customer-vid (0-4095)Matching customer VLAN idID.
customer-pcp (0..7)Matching customer PCP.
customer-dei (0..1)Matching customer DEI.
customer-tag (priority-tagged | tagged | tagged-or-priority-tagged | untagged)Format of the customer tag.
priority (0..15)Matching internal priority. Valid only in the egress table.

ACL condition part for IPv4 and IPv6 related fields of packets.

PropertyDescription
ip-src (IPv4/0..32)Matching source IPv4 address.
ip-dst (IPv4/0..32)Matching destination IPv4 address.
ip-protocol (tcp | udp | udp-lite | other)IP protocol type.
src-l3-port (0-65535)Matching Layer3 source port.
dst-l3-port (0-65535)Matching Layer3 destination port.
ttl (0 | 1 | max | other)Matching TTL field of the packet.
dscp (0..63)Matching DSCP field of the packet.
ecn (0..3)Matching ECN field of the packet.
fragmented (yes | no)Whether to match fragmented packets.
first-fragment (yes | no)YES matches not fragmented and the first fragments, NO matches other fragments.
ipv6-src (IPv6/0..128)Matching source IPv6 address.
ipv6-dst (IPv6/0..128)Matching destination IPv6 address.
mac-isolation-profile (community1 | community2 | isolated | promiscuous)Matches isolation profile based on UFDB. Valid only in the egress policy table.
src-mac-addr-state (dynamic-station-move | sa-found | sa-not-found | static-station-move)Defines whether to match packets with registered state - packets which whose destination MAC address is in UFDB/MFDB/RFDB. Valid only in the egress policy table.
flow-id (0..63)

...

PropertyDescription
action (copy-to-cpu | drop | forward |

redirect-to-cpu | send-to-new-dst-ports; Default:

forward)
  • copy-to-cpu - Packets are copied to the CPU if they match the ACL conditions.
  • drop - Packets are dropped if they match the ACL conditions.
  • forward - Packets are forwarded if they match the ACL conditions.
  • redirect-to-cpu - Packets are redirected to the CPU if they match the ACL conditions.
  • send-to-new-dst-ports - Packets are sent to new destination ports if they match the ACL conditions.
new-dst-ports (ports,trunks)If the action is "send-to-new-dst-ports", then this property sets which ports/trunks are the new destinations.
mirror-to (mirror0 | mirror1)Mirroring destination for ACL packets.
policer (policer)Applied ACL Policer for ACL packets.
src-mac-learn (yes | no)Whether to learn the source MAC of the matched ACL packets. Valid only in the ingress policy table.
new-service-vid (0..4095)New service VLAN id ID for ACL packets.
new-service-pcp (0..7)New service PCP for ACL packets.
new-service-dei (0..1)New service DEI for ACL packets.
new-customer-vid (0..4095)New customer VLAN id ID for ACL packets. If set to 4095, then traffic is dropped.
new-customer-pcp (0..7)New customer PCP for ACL packets.
new-customer-dei (0..1)New customer DEI for ACL packets.
new-dscp (0..63)New DSCP for ACL packets.
new-priority (0..15)New internal priority for ACL packets.
new-drop-precedence (drop | green | red | yellow)New internal drop precedence for ACL packets.
new-registered-state (yes | no)Whether to modify packet status. YES sets packet status to registered, NO - unregistered. Valid only in the ingress policy table.
new-flow-id (0..63)

...

PropertyDescription
attack-filter-bypass (yes | no; Default: no)
ingress-vlan-filter-bypass (yes | no; Default: no)Allows bypassing ingress VLAN filtering in the VLAN table for matching packets. Applies This applies only to the ingress policy table.
egress-vlan-filter-bypass (yes | no; Default: no)Allows bypassing egress VLAN filtering in the VLAN table for matching packets. Applies This applies only to the ingress policy table.
isolation-filter-bypass (yes | no; Default: no)Allows bypassing the Isolation table for matching packets. Applies This applies only to the ingress policy table.
egress-vlan-translate-bypass (yes | no; Default: no)Allows bypassing egress VLAN translation table for matching packets.

...

PropertyDescription
name (string; Default: policerX)Name of the Policer used in ACL.
yellow-rate (integer)Maximum data rate limit for packets with yellow drop precedence.
yellow-burst (integer; Default: 0)Maximum data rate which can be transmitted while the burst is allowed for packets with yellow drop precedence.
red-rate (integer); Default: 0)Maximum data rate limit for packets with red drop precedence.
red-burst (integer; Default: 0)Maximum data rate which can be transmitted while the burst is allowed for packets with red drop precedence.
meter-unit (bit | packet; Default: bit)Measuring units for ACL traffic rate.
meter-len (layer-1 | layer-2 | layer-3; Default: layer-1)Packet classification which sets the packet byte length for metering.
  • layer-1 - includes entire layer-2 frame + FCS + inter-packet gap + preamble.
  • layer-2 - includes layer-2 frame + FCS.
  • layer-3 - includes only layer-3 + ethernet padding without layer-2 header and FCS.
color-awareness (yes | no; Default: no)YES makes the policer to take into account pre-colored drop precedence, NO - ignores drop precedence.
bucket-coupling (yes | no; Default: no)
yellow-action (drop | forward | remark; Default: drop)Performed action for exceeded traffic with yellow drop precedence.
new-dei-for-yellow (0..1 | remap)New DEI for yellow drop precedence packets.
new-pcp-for-yellow (0..7 | remap)New PCP for yellow drop precedence packets.
new-dscp-for-yellow (0..63 | remap)New DSCP for yellow drop precedence packets.
red-action (drop | forward | remark; Default: drop)Performed action for exceeded traffic with red drop precedence.
new-dei-for-red (0..1 | remap)New DEI for red drop precedence packets.
new-pcp-for-red (0..7 | remap)New PCP for red drop precedence packets.
new-dscp-for-red (0..63 | remap)New DSCP for red drop precedence packets.

...