Reset Search



Create multiple VLANs using one command

« Go Back


TitleCreate multiple VLANs using one command
Creating multiple VLANs using one command
EXOS 16.1 and higher
  • create vlan [vlan_list] {vr_name}


* sw1.5 # create vlan 200-202
* sw1.6 # show vlan
Untagged ports auto-move: Off
Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual
                                                                              Active router
Default         1        /24  ------------T---------------  ANY    2 /32  VR-Default
Mgmt            4095    /24  ----------------------------  ANY    1 /1   VR-Mgmt
VLAN_0200       200  ------------------------------------------------  ANY    0 /0   VR-Default
VLAN_0201       201  ------------------------------------------------  ANY    0 /0   VR-Default
VLAN_0202       202  ------------------------------------------------  ANY    0 /0   VR-Default
Flags : (B) BFD Enabled, (c) 802.1ad customer VLAN, (C) EAPS Control VLAN,
        (d) Dynamically created VLAN, (D) VLAN Admin Disabled,
        (e) CES Configured, (E) ESRP Enabled, (f) IP Forwarding Enabled,
        (F) Learning Disabled, (i) ISIS Enabled,
        (I) Inter-Switch Connection VLAN for MLAG, (k) PTP Configured,
        (l) MPLS Enabled, (L) Loopback Enabled, (m) IPmc Forwarding Enabled,
        (M) Translation Member VLAN or Subscriber VLAN, (n) IP Multinetting Enabled,
        (N) Network Login VLAN, (o) OSPF Enabled, (O) Virtual Network Overlay,
        (p) PIM Enabled, (P) EAPS protected VLAN, (r) RIP Enabled,
        (R) Sub-VLAN IP Range Configured, (s) Sub-VLAN, (S) Super-VLAN,
        (t) Translation VLAN or Network VLAN, (T) Member of STP Domain,
        (v) VRRP Enabled, (V) VPLS Enabled, (W) VPWS Enabled, (Z) OpenFlow Enabled

Total number of VLAN(s) : 7
* sw1.7 #
Additional notes
vlan_list: Specifies a VLAN list of IDs
vr_name: Specifies a VR or virtual routing and forwarding (VRF) instance in which to create the VLAN.



Was this article helpful?



Please tell us how we can make this article more useful.

Characters Remaining: 255