8.5.11. Adding and Removing VLANs (HA-SEA)
Adding and removing additional VLAN IDs is just as easy as in the case of a simple shared Ethernet adapter. The only thing to note is that the VLAN IDs must always be added to or removed from both shared Ethernet adapters.
As a demonstration, VLAN 16 is added to the two trunking adapters with VLANs 14 and 15. We start with the Primary SEA on ms05-vio1. The device name of the trunking adapter can be found from the output of “vios lssea -V“:
$ vios lssea -V ms05-vio1 ent43
SEA LNAGG NAME TYPE VSWITCH MODE ACTIVE PRIORITY PVID VLAN_TAG_IDS
ent43 - ent3 real - - - - - -
ent43 - ent42 virtual ETHTEST3 VEB True 1 2 14,15
ent43 - ent41 virtual ETHTEST3 VEB True 1 1 11,12,13
ent43 - ent39 control ETHCTRL - - - 6 None
$
The trunking adapter with VLANs 14 and 15 is ent42. Next we need the slot number of the trunking adapter:
$ vios lsdev ms05-vio1 ent42
NAME STATUS PHYSLOC PARENT DESCRIPTION
ent42 Available U8205.E6C.05E4E5Q-V1-C72-T1 vio0 Virtual I/O Ethernet Adapter (l-lan)
$
The trunking adapter has the virtual slot number 72 (C72). With the help of the slot number and the “lpar addvlan” command, the VLAN 16 can be added to the trunking adapter:
$ lpar addvlan ms05-vio1 72 16
$
The new VLAN 16 is available immediately. If client LPARs use VLAN 16, they can immediately reach systems outside of the managed system:
$ vios lssea -V ms05-vio1 ent43
SEA LNAGG NAME TYPE VSWITCH MODE ACTIVE PRIORITY PVID VLAN_TAG_IDS
ent43 - ent3 real - - - - - -
ent43 - ent42 virtual ETHTEST3 VEB True 1 2 14,15,16
ent43 - ent41 virtual ETHTEST3 VEB True 1 1 11,12,13
ent43 - ent39 control ETHCTRL - - - 6 None
$
The output of “vios lssea -V” above shows that VLAN 16 is active (column ACTIVE is True). However, if a failover occurs (automatically, due to an error, or triggered manually), the availability of VLAN 16 is lost again, as the VLAN has only been configured on the Primary SEA on virtual I/O server ms05-vio1:
$ vios lssea -V ms05-vio2 ent41
SEA LNAGG NAME TYPE VSWITCH MODE ACTIVE PRIORITY PVID VLAN_TAG_IDS
ent41 - ent5 real - - - - - -
ent41 - ent40 virtual ETHTEST3 VEB False 2 2 14,15
ent41 - ent39 virtual ETHTEST3 VEB False 2 1 11,12,13
ent41 - ent38 control ETHCTRL - - - 6 None
$
The output shows that the trunking adapter ent40 of the Backup SEA ent41 on ms05-vio2 does not support VLAN 16! The trunking adapter has slot number 72 and VLAN 16 can be added with the “lpar addvlan” command:
$ lpar addvlan ms05-vio2 72 16
$
A new listing of the VLANs of the Backup SEA shows that the SEA would now also support VLAN 16 in the event of a failover:
$ vios lssea -V ms05-vio2 ent41
SEA LNAGG NAME TYPE VSWITCH MODE ACTIVE PRIORITY PVID VLAN_TAG_IDS
ent41 - ent5 real - - - - - -
ent41 - ent40 virtual ETHTEST3 VEB False 2 2 14,15,16
ent41 - ent39 virtual ETHTEST3 VEB False 2 1 11,12,13
ent41 - ent38 control ETHCTRL - - - 6 None
$
Removing one or more VLANs works in the same way using the “lpar rmvlan” command and is not shown here. It is again important, to ensure that the VLANs on the trunking adapters of both SEAs are removed. Otherwise, the procedure is the same as for a simple SEA, which was already presented above.