You can configure virtual LAN (VLAN) interfaces on Ethernet interfaces. VLAN interfaces let you configure subnets with a secure private link to Security Gateways and Management Servers using your existing topology. With VLAN interfaces, you can multiplex Ethernet traffic into many channels using one cable.
This section shows you how to configure VLAN interfaces using the Gaia Portal and the Gaia Clish.
Step |
Description |
---|---|
1 |
In the navigation tree, click Network Management > Network Interfaces. |
2 |
Make sure that the physical interface, on which you add a VLAN interface, does not have an IP address. |
3 |
Click Add > VLAN. To configure an existing VLAN interface, select the VLAN interface and click Edit. |
4 |
In the Add VLAN (or Edit VLAN) window, select the Enable option to set the VLAN interface to UP. |
5 |
On the IPv4 tab, enter the IPv4 address and subnet mask. You can optionally select the Obtain IPv4 Address automatically option. |
6 |
On the IPv6 tab, enter the IPv6 address and mask length. You can optionally select the Obtain IPv6 Address automatically option. Important - First, you must enable the IPv6 Support and reboot. |
7 |
On the VLAN tab, enter or select a VLAN ID (VLAN tag) between 2 and 4094. |
8 |
In the Member Of field, select the physical interface related to this VLAN. |
Note - You cannot change the VLAN ID or physical interface for an existing VLAN interface. To change these parameters, delete the VLAN interface and then create a New VLAN interface.
This section is a reference for the VLAN interface commands.
Description
Use these commands to configure bridge interfaces.
Make sure that the physical interface, on which you add a VLAN interface, does not have an IP address.
Syntax
Note - This syntax shows only options that VLAN interfaces support.
add interface <Name of Physical Interface> vlan <VLAN ID> |
set interface <Name of VLAN Interface> comments "<Text>" ipv4-address <IPv4 Address> mask-length <Mask Length> subnet-mask <Mask> ipv6-address <IPv6 Address> mask-length <Mask Length> ipv6-autoconfig {on | off} mtu <68-16000 | 1280-16000> state {on | off} |
delete interface <Name of VLAN Interface> alias <Name of Alias Interface> ipv4-address ipv6-address |
show interface <Name of VLAN Interface> |
show interfaces all |
delete interface <Name of Physical Interface> vlan <VLAN ID> |
Important - After you add, configure, or delete features, run the save config
command to save the settings permanently.
Parameters
Parameter |
Description |
---|---|
|
Configures a physical interface. |
|
Defines the optional comment.
|
|
Configures a VLAN interface. |
<VLAN ID> |
Configures the ID of the VLAN interface (integer between 2 and 4094). |
|
Assigns an IPv4 address. |
|
Configures the IPv4 or IPv6 subnet mask length using CIDR notation (/xx) - integer between 2 and 32. |
|
Configures the IPv4 subnet mask using dotted decimal notation (X.X.X.X). |
|
Assigns an IPv6 address. Important - First, you must enable the IPv6 Support and reboot. |
|
Configures if this interface gets an IPv6 address from a DHCPv6 Server:
Important - First, you must enable the IPv6 Support and reboot. |
|
Configures the Maximum Transmission Unit size for an interface. For IPv4:
For IPv6:
|
|
Configures interface's state:
|
Example
gaia> add interface eth1 vlan 99
gaia> set interface eth1.99 ipv4-address 99.99.99.1 subnet-mask 255.255.255.0
gaia> delete interface eth1.99 ipv4-address
gaia> set interface eth1.99 ipv6-address 209:99:1 mask-length 64
gaia> set interface eth1.99 state on
gaia> show interface eth1.99
gaia> delete interface eth1 vlan 99 |