Skip to main content
Version: current

switch


interface/ethernet/switch

Conditions: !smips
Syscap: musicswitch
Type: Settings Directory

Global parameters for CRS1xx and 2xx series switches.

ArgumentTypeDescription
namestringName of the switch.
bridge-typeenum (customer-vid-used-as-lookup-vid | service-vid-used-as-lookup-vid) { customer-vid-used-as-lookup-vid:0, service-vid-used-as-lookup-vid:1 }Defines which VLAN tag is used as Lookup-VID. Lookup-VID serves as the VLAN key for all VLAN-based lookups.
drop-if-no-vlan-assignment-on-portsmulti { array-id }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-portsmulti { array-id, port: enum }Ports that drop invalid and other port VLAN ID frames.
unknown-vlan-lookup-modeenum (ivl | svl)

Lookup and learning mode for packets with an invalid VLAN.

  • ivl - use Independent VLAN Learning,
  • svl - use Shared VLAN Learning.
forward-unknown-vlanboolWhether to allow forwarding VLANs that are not members of the VLAN table.
use-svid-in-one2one-vlan-lookupboolWhether to use service VLAN ID for 1:1 VLAN switching lookup.
use-cvid-in-one2one-vlan-lookupboolWhether to use customer VLAN ID for 1:1 VLAN switching lookup.
mac-level-isolationboolGlobally 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.
multicast-lookup-modeenum (dst-mac-and-vid-always | dst-ip-and-vid-for-ipv4) { dst-mac-and-vid-always:0, dst-ip-and-vid-for-ipv4:1 }

Lookup mode for IPv4 multicast bridging.

  • dst-mac-and-vid-always - for all packet types the lookup key is the destination MAC and VLAN ID.
  • dst-ip-and-vid-for-ipv4 - for IPv4 packets the lookup key is the destination IP and VLAN ID.
override-existing-when-ufdb-fullboolEnable or disable overriding an existing entry which has the lowest aging value when UFDB is full.
unicast-fdb-timeouttimeTimeout for Unicast FDB entries.
ingress-mirror0composite { port-or-trunk: alt { port: enum (none) { none:0xffffffff } , trunk: enum } , packet-format: [ enum (unmodified | analyzer-configured) { unmodified:0, analyzer-configured:1 }] }

The first ingress mirroring analyzer port or trunk and mirroring format.

  • analyzer-configured - packet is the same as the packet to the destination, VLAN format is modified based on the VLAN configurations of the analyzer port.
  • unmodified - traffic is mirrored without any change to the original incoming packet format, but the service VLAN tag is stripped in the edge port.
ingress-mirror1composite { port-or-trunk: alt { port: enum (none) { none:0xffffffff } , trunk: enum } , packet-format: [ enum (unmodified | analyzer-configured) { unmodified:0, analyzer-configured:1 }] }

The second ingress mirroring analyzer port or trunk and mirroring format.

  • analyzer-configured - packet is the same as the packet to the destination, VLAN format is modified based on the VLAN configurations of the analyzer port.
  • unmodified - 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-ratioenum (1/1 | 1/2 | 1/4 | 1/8 | 1/16 | 1/32 | 1/64 | 1/128 | 1/256 | 1/512 | 1/1024 | 1/2048 | 1/4096 | 1/8192 | 1/16384 | 1/32768)The proportion of ingress mirrored packets compared to all packets.
egress-mirror0composite { port-or-trunk: alt { port: enum (none) { none:0xffffffff } , trunk: enum } , packet-format: [ enum (modified | analyzer-configured | original) { modified:0, analyzer-configured:1, original:2 }] }

The first egress mirroring analyzer port or trunk and mirroring format.

  • analyzer-configured - packet is the same as the packet to the destination, VLAN format is modified based on the VLAN configurations of the analyzer port.
  • modified - 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-mirror1composite { port-or-trunk: alt { port: enum (none) { none:0xffffffff } , trunk: enum } , packet-format: [ enum (modified | analyzer-configured | original) { modified:0, analyzer-configured:1, original:2 }] }

The second egress mirroring analyzer port or trunk and mirroring format.

  • analyzer-configured - packet is the same as the packet to the destination, VLAN format is modified based on the VLAN configurations of the analyzer port.
  • modified - 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-ratioenum (1/1 | 1/2 | 1/4 | 1/8 | 1/16 | 1/32 | 1/64 | 1/128 | 1/256 | 1/512 | 1/1024 | 1/2048 | 1/4096 | 1/8192 | 1/16384 | 1/32768)The proportion of egress mirrored packets compared to all packets.
fdb-usesenum (mirror0 | mirror1) { mirror0:0, mirror1:1 }Analyzer port used for FDB-based mirroring.
vlan-usesenum (mirror0 | mirror1) { mirror0:0, mirror1:1 }Analyzer port used for VLAN-based mirroring.
mirror-egress-if-ingress-mirroredboolWhen a packet is applied to both ingress and egress mirroring, only ingress mirroring is performed on the packet, if this setting is disabled. If enabled, both mirroring types are applied.
mirror-tx-on-mirror-portbool
mirrored-packet-qos-prioritynumRemarked priority in mirrored packets.
mirrored-packet-drop-precedenceenum (green | yellow | red | drop)Remarked drop precedence in mirrored packets. This QoS attribute is used for mirrored packet enqueuing or dropping.
bypass-vlan-ingress-filter-forubit (eapol, ripv1, dhcpv4, dhcpv6, igmp, mld, arp, nd, pppoe-discovery)Protocols that are excluded from Ingress VLAN filtering. These protocols are not dropped if they have an invalid VLAN. (arp, dhcpv4, dhcpv6, eapol, igmp, mld, nd, pppoe-discovery, ripv1).
bypass-ingress-port-policing-forubit (eapol, ripv1, dhcpv4, dhcpv6, igmp, mld, arp, nd, pppoe-discovery)Protocols that are excluded from Ingress Port Policing. (arp, dhcpv4, dhcpv6, eapol, igmp, mld, nd, pppoe-discovery, ripv1).
bypass-l2-security-check-filter-forubit (eapol, ripv1, dhcpv4, dhcpv6, igmp, mld, arp, nd, pppoe-discovery)Protocols that are excluded from Policy rule security check. (arp, dhcpv4, dhcpv6, eapol, igmp, mld, nd, pppoe-discovery, ripv1).
Read-only ArgumentTypeDescription
typeenum (QCA-8513L | QCA-8519 | QCA-8511) { QCA-8513L:9, QCA-8519:11, QCA-8511:12 }

interface/ethernet/switch

Syscap: rbswitch
Type: Directory

Global parameters for switches with Marwell Prestera chips.

FlagNameDescription
Iinvalid
ArgumentTypeDescription
namestring
mirror-source (syscap=switch-mirror1)iface_enum { none:0 }Selects a single mirroring source port. Ingress and egress traffic will be sent to the mirror-target port. Note that the mirror-target port has to belong to the same switch.
mirror-target (syscap=switch-mirror-prestera)iface_enum { none:0, cpu:0xffffffff }Selects a single mirroring target port. Mirrored packets from mirror-egress, mirror-ingress and mirror will be sent to the selected port.
mirror-egress-target (syscap=switch-mv88e6xxx)enum (none) { none:0 }Selects a single mirroring egress target port. Mirrored packets from mirror-egress (see the property in the port menu) will be sent to the selected port.
rspan (syscap=switch-mirror-prestera)boolEnables the Remote Switch Port Analyzer (RSPAN) feature on mirror-target. Traffic marked for ingress or egress mirroring is carried over a specified remote analyzer VLAN - rspan-egress-vlan-id and rspan-ingress-vlan-id.
rspan-ingress-vlan-id (syscap=switch-mirror-prestera)numSelects the VLAN ID for marked ingress traffic. Only applies when rspan is enabled.
rspan-egress-vlan-id (syscap=switch-mirror-prestera)numSelects the VLAN ID for marked egress traffic. Only applies when rspan is enabled.
switch-all-portsboolChanges the ether1 switch group only on RB450G/RB435G/RB850Gx2 devices. yes - ether1 is part of the switch and supports all advanced features including extended statistics. no - ether1 is not part of the switch, effectively making it a stand-alone ethernet port, increasing throughput but removing switching capability.
cpu-flow-control (syscap=switch-mv88e6xxx)boolDisables or enables the CPU Flow Control feature. The switch chip ensures the CPU port is not congested by sending out Pause Frames when link capacity is exceeded. Without this feature, packets crucial for routing or management may be dropped.
l3-hw-offloading (syscap=crs_prestera)boolLayer 3 hardware offloading. Allows offloading routing features onto the switch chip to reach wire speeds.
qos-hw-offloading (syscap=crs_prestera)boolQuality of Service hardware offloading. Allows enabling QoS for the given switch chip (if it supports QoS). Turning off the this setting will not completely revert to the previous functionality. It is recommended to reboot the device after disabling it.
Read-only ArgumentTypeDescription
typeenum (ADMtek | IC-Plus-175C | IC-Plus-178C | IC-Plus-175D | Atheros-8316 | Atheros-7240 | Atheros-8227 | Atheros-8327 | Atheros-8236 | QCA-8513L | Atheros-8327N | QCA-8519 | QCA-8511 | QCA-8337 | MediaTek-MT7621 | Realtek-RTL8367 | Marvell-98DX3236 | Marvell-98DX8216 | Marvell-98DX8208 | Marvell-98DX8332 | Marvell-98DX8212 | Marvell-98DX3257 | IPQ-PPE | Marvell-98DX8525 | Marvell-98PX1012 | Marvell-98DX4310 | Marvell-98DX224S | Marvell-98DX226S | Marvell-88E6393X | Marvell-98DX3255 | Marvell-88E6191X | Marvell-98DX2528 | Marvell-98CX8410 | Marvell-88E6341 | MediaTek-MT7531 | Marvell-88E6190 | Marvell-98DX7335 | Marvell-98DX3510 | Marvell-98DX3550 | MediaTek-MT7531AE | Marvell-98DX1508M | IPQ-9570 | Marvell-98DX3530 | Marvell-98DX4550 | QCA-8386 | EN7523 | Marvell-98DX2521 | Marvell-98DX2556 | Marvell-98DX2588 | Marvell-98DX7335M) { ADMtek:0, IC-Plus-175C:1, IC-Plus-178C:2, IC-Plus-175D:3, Atheros-8316:4, Atheros-7240:5, Atheros-8227:6, Atheros-8327:7, Atheros-8236:8, QCA-8513L:9, Atheros-8327N:10, QCA-8519:11, QCA-8511:12, QCA-8337:13, MediaTek-MT7621:14, Realtek-RTL8367:15, Marvell-98DX3236:16, Marvell-98DX8216:17, Marvell-98DX8208:18, Marvell-98DX8332:19, Marvell-98DX8212:20, Marvell-98DX3257:21, IPQ-PPE:22, Marvell-98DX8525:23, Marvell-98PX1012:24, Marvell-98DX4310:25, Marvell-98DX224S:26, Marvell-98DX226S:27, Marvell-88E6393X:28, Marvell-98DX3255:29, Marvell-88E6191X:30, Marvell-98DX2528:31, Marvell-98CX8410:32, Marvell-88E6341:33, MediaTek-MT7531:34, Marvell-88E6190:35, Marvell-98DX7335:36, Marvell-98DX3510:37, Marvell-98DX3550:38, MediaTek-MT7531AE:39, Marvell-98DX1508M:40, IPQ-9570:41, Marvell-98DX3530:42, Marvell-98DX4550:43, QCA-8386:44, EN7523:45, Marvell-98DX2521:46, Marvell-98DX2556:47, Marvell-98DX2588:48, Marvell-98DX7335M:49 }
driver-rx-bytemulti { counter: num }
driver-rx-packetmulti { counter: num }
driver-tx-bytemulti { counter: num }
driver-tx-packetmulti { counter: num }
rx-bytesmulti { counter: num }
rx-packetmulti { counter: num }
rx-too-shortmulti { counter: num }
rx-64multi { counter: num }
rx-65-127multi { counter: num }
rx-128-255multi { counter: num }
rx-256-511multi { counter: num }
rx-512-1023multi { counter: num }
rx-1024-1518multi { counter: num }
rx-1519-maxmulti { counter: num }
rx-too-longmulti { counter: num }
rx-broadcastmulti { counter: num }
rx-pausemulti { counter: num }
rx-multicastmulti { counter: num }
rx-fcs-errormulti { counter: num }
rx-align-errormulti { counter: num }
rx-fragmentmulti { counter: num }
rx-overflowmulti { counter: num }
rx-controlmulti { counter: num }
rx-unknown-opmulti { counter: num }
rx-length-errormulti { counter: num }
rx-code-errormulti { counter: num }
rx-carrier-errormulti { counter: num }
rx-jabbermulti { counter: num }
rx-dropmulti { counter: num }
rx-ip-header-checksum-errormulti { counter: num }
rx-tcp-checksum-errormulti { counter: num }
rx-udp-checksum-errormulti { counter: num }
tx-bytesmulti { counter: num }
tx-packetmulti { counter: num }
tx-too-shortmulti { counter: num }
tx-64multi { counter: num }
tx-65-127multi { counter: num }
tx-128-255multi { counter: num }
tx-256-511multi { counter: num }
tx-512-1023multi { counter: num }
tx-1024-1518multi { counter: num }
tx-1519-maxmulti { counter: num }
tx-too-longmulti { counter: num }
tx-broadcastmulti { counter: num }
tx-pausemulti { counter: num }
tx-multicastmulti { counter: num }
tx-underrunmulti { counter: num }
tx-collisionmulti { counter: num }
tx-excessive-collisionmulti { counter: num }
tx-multiple-collisionmulti { counter: num }
tx-single-collisionmulti { counter: num }
tx-excessive-deferredmulti { counter: num }
tx-deferredmulti { counter: num }
tx-late-collisionmulti { counter: num }
tx-total-collisionmulti { counter: num }
tx-pause-honoredmulti { counter: num }
tx-dropmulti { counter: num }
tx-jabbermulti { counter: num }
tx-fcs-errormulti { counter: num }
tx-controlmulti { counter: num }
tx-fragmentmulti { counter: num }
tx-carrier-sense-errormulti { counter: num }
tx-rx-64multi { counter: num }
tx-rx-65-127multi { counter: num }
tx-rx-128-255multi { counter: num }
tx-rx-256-511multi { counter: num }
tx-rx-512-1023multi { counter: num }
tx-rx-1024-1518multi { counter: num }
tx-rx-1519-maxmulti { counter: num }
tx-queue-custom0-drop-packetmulti { counter: num }
tx-queue-custom0-drop-bytemulti { counter: num }
tx-queue-custom1-drop-packetmulti { counter: num }
tx-queue-custom1-drop-bytemulti { counter: num }
policy-drop-packetmulti { counter: num }
custom-drop-packetmulti { counter: num }
current-learnedmulti { counter: num }
not-learnedmulti { counter: num }
rx-unicastmulti { counter: num }
tx-unicastmulti { counter: num }
rx-error-eventsmulti { counter: num }
tx-rx-1024-maxmulti { counter: num }
rx-1024-maxmulti { counter: num }
tx-1024-maxmulti { counter: num }
rs-fec-codewordsmulti { counter: num }
rs-fec-correctedmulti { counter: num }
rs-fec-uncorrectedmulti { counter: num }
rs-fec-symbol-errormulti { counter: num }
fc-fec-rx-blockmulti { counter: num }
fc-fec-block-correctedmulti { counter: num }
fc-fec-block-uncorrectedmulti { counter: num }
tx-queue0-packetmulti { counter: num }
tx-queue0-bytemulti { counter: num }
tx-queue1-packetmulti { counter: num }
tx-queue1-bytemulti { counter: num }
tx-queue2-packetmulti { counter: num }
tx-queue2-bytemulti { counter: num }
tx-queue3-packetmulti { counter: num }
tx-queue3-bytemulti { counter: num }
tx-queue4-packetmulti { counter: num }
tx-queue4-bytemulti { counter: num }
tx-queue5-packetmulti { counter: num }
tx-queue5-bytemulti { counter: num }
tx-queue6-packetmulti { counter: num }
tx-queue6-bytemulti { counter: num }
tx-queue7-packetmulti { counter: num }
tx-queue7-bytemulti { counter: num }
tx-drop-packetmulti { counter: num }
tx-drop-bytemulti { counter: num }
tx-drop-queue0-packetmulti { counter: num }
tx-drop-queue0-bytemulti { counter: num }
tx-drop-queue1-packetmulti { counter: num }
tx-drop-queue1-bytemulti { counter: num }
tx-drop-queue2-packetmulti { counter: num }
tx-drop-queue2-bytemulti { counter: num }
tx-drop-queue3-packetmulti { counter: num }
tx-drop-queue3-bytemulti { counter: num }
tx-drop-queue4-packetmulti { counter: num }
tx-drop-queue4-bytemulti { counter: num }
tx-drop-queue5-packetmulti { counter: num }
tx-drop-queue5-bytemulti { counter: num }
tx-drop-queue6-packetmulti { counter: num }
tx-drop-queue6-bytemulti { counter: num }
tx-drop-queue7-packetmulti { counter: num }
tx-drop-queue7-bytemulti { counter: num }