Friday, 10 October 2014

How to create VLAN interfaces in Gaia Clish




How to create VLAN interfaces in Gaia Clish


To create VLANs on Gaia, one can use either the Gaia Portal, or the Clish shell.

When creating VLAN interfaces via Clish, the following commands should be used:
  1. Bringing on the the Physical interface, on which the VLAN interfaces will be created:

    Note: This command may be skipped, if the interface's state is already on.

    HostName> set interface <Name_of_Physical_Interface> state on
  2. Adding a VLAN interface:

    HostName> add interface <Name_of_Physical_Interface> vlan <VLAN_ID>
  3. Assigning an IP address to newly created VLAN interface:

    HostName> set interface <Name_of_VLAN_Interface> ipv4-address <IP_Address> mask-length <Subnet_Mask_Length>
  4. Saving the configuration (so it survives reboot):

    HostName> save config

No comments:

Post a Comment