Monday, July 17, 2017

VLAN - 802Q Trunking

Required Clish commands:

HostName> set interface eth1 state on
HostName> add interface eth1 vlan 100
HostName> set interface eth1.100 ipv4-address 192.168.1.1 mask-length 24
HostName> save config



HostName> set interface <Name_of_Physical_Interface> state on
HostName> add interface <Name_of_Physical_Interface> vlan <VLAN_ID>
HostName> set interface <Name_of_VLAN_Interface> ipv4-address <IP_Address> mask-length <Subnet_Mask_Length>
HostName> save config



set interface eth2-01 state on
set interface eth2-01.76 state on
set interface eth2-01.76 ipv4-address 10.125.76.5 mask-length 23
save config





eth2-01     Link encap:Ethernet  HWaddr 00:0C:7F:08:2C:00
            UP BROADCAST MULTICAST  MTU:1500  Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth2-01.76  Link encap:Ethernet  HWaddr 00:0C:7F:08:2C:00
            inet addr:10.25.76.5  Bcast:10.25.77.255  Mask:255.255.254.0
            UP BROADCAST MULTICAST  MTU:1500  Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:0
            RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)






To delete VLANs on Gaia, use either the Gaia Portal, or Clish shell.

Remove the IP address from the VLAN interface.
HostName> delete interface <eth.vlan> ipv4-address <IP address>

Remove the VLAN id from the interface.
HostName> delete interface <ethinterface_id> vlan <vlan_id>

Save configuration to survive the reboot.
HostName> save config
The command line allows for multiple pasting of commands.


Example:

Physical Interface - eth1
VLAN interface - eth1.100
VLAN IP address - 172.41.60.0 / 24
Clish commands:

HostName> delete interface eth1.100 ipv4-address 192.168.1.1
HostName> delete interface eth1 vlan 100
HostName> save config