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:
- 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
- Adding a VLAN interface:
HostName> add interface <Name_of_Physical_Interface> vlan <VLAN_ID>
- 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>
- Saving the configuration (so it survives reboot):
HostName> save config
No comments:
Post a Comment