Operation Manual
VLAN Commands
VLAN Commands
6 – 75
set vlan tunnel-affinity
Changes an MX preferences within a mobility domain for tunneling user traffic for a VLAN. When
a user roams to an MX that is not a member of the user’s VLAN, the MX can forward the user
traffic by tunneling to another MX that is a member of the VLAN.
Syntax
set vlan vlan-id tunnel-affinity affinity
Defaults
Each VLAN on an MX network ports has an affinity value of 5 by default.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
Increasing a MX affinity value increases the preferability of the MX for forwarding user
traffic for the VLAN.
If more than one MX has the highest affinity value, MSS randomly selects one of the switches for
the tunnel.
Examples
The following command changes the VLAN affinity for VLAN beige to 10:
MX# set vlan beige tunnel-affinity 10
success: change accepted.
See Also
● show roaming vlan on page 6-79
● show vlan config on page 6-81
set vlan-profile
Configures entries in a VLAN profile that can be applied to an MP for local switching.
Syntax
set vlan-profile profile-name vlan vlan-name [mode {overlay|local-switching}
[tag tag-value]
Defaults
If local switching is enabled on an MP, but no VLAN profile is configured, then a default
VLAN profile is used. The default VLAN profile includes a single VLAN named default that is
untagged.
Access
Enabled.
History
Introduced in MSS Version 6.0.
vlan-id VLAN name or number.
affinity Preference of this MX for forwarding user traffic for the VLAN. You can specify a
value from 1 through 10. A higher number indicates a greater preference.
profile-name VLAN profile name.
vlan-name Name of a VLAN.
mode Select overlay or local-switching.
tag-value Optional tag value associated with the VLAN. When this value is set, it is used as the
802.1Q tag for the VLAN.
Version 6.0 Command introduced.
Version 7.1 Attribute mode added.