83.5. How to assign a VLAN for Ethernet interface

Enter into the Abilis control-program or open the configuration file with the Console configurator and type the following commands.

a dev:eth-3Add an Ethernet device (e.g. ETH-3).
s p eth-3 max-vlans:1Configure the max number of VLANs (e.g. 1).
a res:ip-3 subtype:lanAdd an “IP over LAN” resource (e.g. IP-3).
s p ip-3 lanres:eth-3Configure the ETH-3 as the IP-3 lower resource.
s p ip-3 vlan-id:35Configure the VLAN Identifier (e.g. 35).
s p ip-3 ipadd:88.88.88.88/24Configure the IP address and the mask.
s p ip-3 descr:WAN_tag_35Configure the description of the IP resource.
save confSave the configuration.

On a working Abilis, a system restart is required to make the ETH-3 device and the IP-3 resource running.

[Warning]Warning

The VLAN is supported for Ethernets that supports gigabit speed: Realtek RTL8169/8168/8110/8111, Broadcom BCM5754. The Ethernet resource diagnostics indicates whether it supports VLAN or not (VLAN-SUPPORT:YES).

[09:41:16] ABILIS_CPX:d d eth-3     

RES:Eth-3 ---------------------------------------------------------------------
       STATE:READY          CARD:REALTEK-8111D
       CUR-MAC-ADDR:BC-5F-F4-67-D9-58        FACTORY-MAC-ADDR:BC-5F-F4-67-D9-58
       MODE:AUT-100TX       DUPLEX:AUT-FULL      DMA-RXBUF:250    DMA-TXBUF:25
       VLAN-SUPPORT:YES     CUR-MAX-VLANS:1      CUR-VLANS:1      UNTAG:OPENED
       - Diagnostics ----------------------------------------------------------
                           |            Throughputs in bit/sec
       VLAN-ID: | IP-Mcast |   5sec-In   5sec-Out |   5min-In   5min-Out
       ---------+----------+----------------------+----------------------------
       ALL           NO          3.26 K    2.16 K          0         0
       ------------------------------------------------------------------------
       UNTAG         NO          3.26 K    2.16 K          0         0
       35            NO             0         0            0         0
       ------------------------------------------------------------------------
[Warning]Warning

The VLAN is supported for Ethernets that supports gigabit speed: Realtek RTL8169/8168/8110/8111, Broadcom BCM5754, or for USB Ethernet adapters. The Ethernet resource diagnostics indicates whether it supports VLAN or not (VLAN-SUPPORT:YES).

[09:41:16] ABILIS_CPX:d d eth-3     

RES:Eth-2 ---------------------------------------------------------------------
       STATE:READY          CARD:REALTEK-8111D
       CUR-MAC-ADDR:BC-5F-F4-67-D9-58        FACTORY-MAC-ADDR:BC-5F-F4-67-D9-58
       MODE:AUT-100TX       DUPLEX:AUT-FULL      DMA-RXBUF:250    DMA-TXBUF:25
       VLAN-SUPPORT:YES     CUR-MAX-VLANS:1      CUR-VLANS:1      UNTAG:OPENED
       - Diagnostics ----------------------------------------------------------
                           |            Throughputs in bit/sec
       VLAN-ID: | IP-Mcast |   5sec-In   5sec-Out |   5min-In   5min-Out
       ---------+----------+----------------------+----------------------------
       ALL           NO          3.26 K    2.16 K          0         0
       ------------------------------------------------------------------------
       UNTAG         NO          3.26 K    2.16 K          0         0
       35            NO             0         0            0         0
       ------------------------------------------------------------------------

[13:26:36] ABILIS_CPX:d d ethusb-1

RES:EthUsb-1 ------------------------------------------------------------------
       STATE:NEGOTIATING    CARD:AX88772B             REV:0 (0x00)
       CUR-MAC-ADDR:00-80-20-00-00-C1        FACTORY-MAC-ADDR:00-80-20-00-00-C1
       MODE:AUT-UNKNOWN     DUPLEX:AUT-UNKNOWN   DMA-RXBUF:100   DMA-TXBUF:50
       VLAN-SUPPORT:YES     CUR-MAX-VLANS:0      CUR-VLANS:0     UNTAG:OPENED
       - Diagnostics ----------------------------------------------------------
                           |            Throughputs in bit/sec
       VLAN-ID: | IP-Mcast |   5sec-In   5sec-Out |   5min-In   5min-Out
       ---------+----------+----------------------+----------------------------
       ALL           NO            0          0           0          0  
       ------------------------------------------------------------------------

83.5.1. How to assign multiple VLANs to the same Ethernet interface

Enter into the Abilis control-program or open the configuration file with the Console configurator and type the following commands.

a dev:eth-3Add an Ethernet device (e.g. ETH-3).
s p eth-3 max-vlans:5Configure the max number of VLANs (e.g. 5).
a res:ip-3 subtype:lanAdd an “IP over LAN” resource (e.g. IP-3).
s p ip-3 lanres:eth-3Configure the ETH-3 as the IP-3 lower resource.
s p ip-3 vlan-id:33Configure the VLAN Identifier (e.g. 33).
s p ip-3 ipadd:88.88.88.88/24Configure the IP address and the mask.
s p ip-3 descr:WAN_tag_33Configure the description of the IP resource.
a res:ip-4 subtype:lanAdd an “IP over LAN” resource (e.g. IP-4).
s p ip-4 lanres:eth-3Configure the ETH-3 as the IP-4 lower resource.
s p ip-4 vlan-id:35Configure the VLAN Identifier (e.g. 35).
s p ip-4 ipadd:85.85.85.85/24Configure the IP address and the mask.
s p ip-4 descr:WAN_tag_35Configure the description of the IP resource.
a res:ip-5 subtype:lanAdd an “IP over LAN” resource (e.g. IP-5).
s p ip-5 lanres:eth-3Configure the ETH-3 as the IP-5 lower resource.
s p ip-5 vlan-id:37Configure the VLAN Identifier (e.g. 37).
s p ip-5 ipadd:80.80.80.80/24Configure the IP address and the mask.
s p ip-5 descr:WAN_tag_37Configure the description of the IP resource.
save confSave the configuration.

On a working Abilis, a system restart is required to make the ETH-3 device and the IP resources running.

[Warning]Warning

The VLAN is supported for Ethernets that supports gigabit speed: Realtek RTL8169/8168/8110/8111, Broadcom BCM5754, or for USB Ethernet adapters. The Ethernet resource diagnostics indicates whether it supports VLAN or not (VLAN-SUPPORT:YES).

[09:41:16] ABILIS_CPX:d d eth-3     

RES:Eth-2 ---------------------------------------------------------------------
       STATE:READY          CARD:REALTEK-8111D
       CUR-MAC-ADDR:BC-5F-F4-67-D9-58        FACTORY-MAC-ADDR:BC-5F-F4-67-D9-58
       MODE:AUT-100TX       DUPLEX:AUT-FULL      DMA-RXBUF:250    DMA-TXBUF:25
       VLAN-SUPPORT:YES     CUR-MAX-VLANS:1      CUR-VLANS:1      UNTAG:OPENED
       - Diagnostics ----------------------------------------------------------
                           |            Throughputs in bit/sec
       VLAN-ID: | IP-Mcast |   5sec-In   5sec-Out |   5min-In   5min-Out
       ---------+----------+----------------------+----------------------------
       ALL           NO          3.26 K    2.16 K          0         0
       ------------------------------------------------------------------------
       UNTAG         NO          3.26 K    2.16 K          0         0
       35            NO             0         0            0         0
       ------------------------------------------------------------------------

[13:26:36] ABILIS_CPX:d d ethusb-1

RES:EthUsb-1 ------------------------------------------------------------------
       STATE:NEGOTIATING    CARD:AX88772B             REV:0 (0x00)
       CUR-MAC-ADDR:00-80-20-00-00-C1        FACTORY-MAC-ADDR:00-80-20-00-00-C1
       MODE:AUT-UNKNOWN     DUPLEX:AUT-UNKNOWN   DMA-RXBUF:100   DMA-TXBUF:50
       VLAN-SUPPORT:YES     CUR-MAX-VLANS:0      CUR-VLANS:0     UNTAG:OPENED
       - Diagnostics ----------------------------------------------------------
                           |            Throughputs in bit/sec
       VLAN-ID: | IP-Mcast |   5sec-In   5sec-Out |   5min-In   5min-Out
       ---------+----------+----------------------+----------------------------
       ALL           NO            0          0           0          0  
       ------------------------------------------------------------------------