Dynamically add VLANs to existing SEA

 

You can add the VLANs, to an existing SEA, either from a) the HMC UI or from b) the HMC CLI. The advantage of doing this from the HMC UI is that it updates both VIOS at the same time. The disadvantage is you can only add one VLAN at a time.

 

Examples for both the HMC UI and CLI are shown in this document.

Assumes RMC connectivity is active between the VIOS and the HMC, and DLPAR is working on the VIOS (i.e .the VIOS has an active IP network connection).

 

Note: Ensure that ”Save configuration changes to profile“ (sync_curr_profile) is enabled for all VIOS. If it is disabled, change to enabled. This will ensure the VIOS profiles are automatically updated with the new VLAN information. For example, from the HMC UI:

 

 

Or from the HMC CLI (a value of 1 means sync_curr_profile is enabled for the partition):

 

hscroot@pok-sse-hmc1:~> for frame in `lssyscfg -r sys -F name`; do lssyscfg -r lpar -m $frame -F name,sync_curr_profile; done | grep 901-vios

sys901-vios2,1

sys901-vios1,1

 

To change from the HMC CLI:

 

chsyscfg -r lpar -m sysXXX -i "name=vios1,sync_curr_profile=1”

chsyscfg -r lpar -m sysXXX -i "name=vios2,sync_curr_profile=1”

 

 

 

 

 

Adding VLANs dynamically from the HMC UI

 

a)    From HMC UI:

 

1.    Review the current VLANs (VLAN Tag IDS) assigned to both VIOS SEA. In this example the existing SEA on both VIOS is ent3 (virtual slot 2). From the VIOS CLI:

 

VIOS1

[padmin@sys901-vios1]$ lsmap -all -net

SVEA   Physloc

------ --------------------------------------------

ent2   U9009.42A.21D010W-V1-C2-T1

 

SEA                   ent3

Backing device        ent0

Status                Available

Physloc               U78D2.001.WZS0L98-P1-C2-T1

 

[padmin@sys901-vios1]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:  None

Port VLAN ID:     1

VLAN Tag IDs:  None

 

VIOS2

[padmin@sys901-vios2]$ lsmap -all -net

SVEA   Physloc

------ --------------------------------------------

ent2   U9009.42A.21D010W-V2-C2-T1

 

SEA                   ent3

Backing device        ent0

Status                Available

Physloc               U78D2.001.WZS0L98-P1-C4-T1

 

[padmin@sys901-vios2]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:  None

Port VLAN ID:     1

VLAN Tag IDs:  None

 

2.    Select the Power server

 

3.    Select Virtual networks
A screenshot of a computer

AI-generated content may be incorrect.

 

4.    Select Add Virtual Network
A screenshot of a computer

AI-generated content may be incorrect.

5.    Enter a name for the Virtual Network Name. Ensure that both Bridged Network and IEEE 802.1G Tagging are both selected.  Enter a VLAN ID (this is the VLAN ID that needs to be added to the existing SEA). In this example, we’re adding VLAN ID 101 as a tagged VLAN ID. Typically, for an existing SEA configuration, you should select Use an existing Virtual Switch, then select the Virtual Switch Name (typically ETHERNET0, the default), but yours may be different). Then select Next.

 

 

6.    Under Select Network Bridge that Use existing Network Bridge is selected. Ensure that the correct Bridge is selected. Select Next.

A screenshot of a computer

AI-generated content may be incorrect.

 

7.    Ensure that Use an existing Load Sharing Group is selected, and that the correct Load Sharing Group is selected. Select Next.

 

 

8.    Review the summary information. If it looks correct, select Add.

 

9.    The Add Virtual Network task will run. Select Close when finished.

A screenshot of a computer

AI-generated content may be incorrect. 

 

10.The new Virtual Network Name will appear in the Virtual Networks list.

A screenshot of a computer

AI-generated content may be incorrect.

 

11.Confirm the new VLAN ID, 101, is now configured on the existing SEA, on both VIOS.

 

VIOS1

[padmin@sys901-vios1]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101

Port VLAN ID:     1

VLAN Tag IDs:   101

 

VIOS2

[padmin@sys901-vios1]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101

Port VLAN ID:     1

VLAN Tag IDs:   101

 

12.Review the (last activated) profile for both VIOS to ensure they’ve been updated with the new VLAN ID tag.

 

VIOS1

A screenshot of a computer

AI-generated content may be incorrect.

 

VIOS2

A screenshot of a computer

AI-generated content may be incorrect.

 

13.Repeat these steps to add additional VLANs to the existing SEA.

 

 

Adding VLANs dynamically from the HMC CLI

 

1.    From the HMC CLI, review the current configuration for both VIOS. Determine the slot number for the existing SEA virtual ethernet trunk, adapter.

 

In this example, the existing SEA for both VIOS is virtual ethernet adapter slot 2, as confirmed with lshwres from the HMC CLI:

 

hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios1" -F lpar_name,lpar_id,slot_num,is_trunk,trunk_priority,ieee_virtual_eth,port_vlan_id,addl_vlan_ids

sys901-vios1,1,2,1,1,1,1,

 

VIOS1

hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios2" -F lpar_name,lpar_id,slot_num,is_trunk,trunk_priority,ieee_virtual_eth,port_vlan_id,addl_vlan_ids

sys901-vios2,2,2,1,2,1,1,

 

VIOS2

hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios1" -F lpar_name,lpar_id,slot_num

sys901-vios1,1,2

 

hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios2" -F lpar_name,lpar_id,slot_num

sys901-vios2,2,2

 

2.    Add VLAN 101 to the existing SEA, in slot 2, for vios1 and then vios2, with the chhwres command.

 

VIOS1

hscroot@pok-sse-hmc1:~> chhwres -r virtualio --rsubtype eth -m sys901 -o s -p sys901-vios1 -s 2 -a "addl_vlan_ids+=101"

 

VIOS2

hscroot@pok-sse-hmc1:~> chhwres -r virtualio --rsubtype eth -m sys901 -o s -p sys901-vios2 -s 2 -a "addl_vlan_ids+=101"

 

3.    Confirm the new VLAN IDs are now configured on the VIOS SEAs.

 

VIOS1

[padmin@sys901-vios1]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101

Port VLAN ID:     1

VLAN Tag IDs:   101

 

VIOS2

[padmin@sys901-vios1]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101

Port VLAN ID:     1

VLAN Tag IDs:   101

 

14.Review the VIOS profiles to ensure they’ve been updated with the new VLAN ID tags.

 

VIOS1

A screenshot of a computer

AI-generated content may be incorrect.

 

 

 

 

 

 

 

 

 

 

 

 

VIOS2

A screenshot of a computer

AI-generated content may be incorrect.

 

15.From the HMC CLI, review the current configuration for both VIOS again. Confirm VLAN 101 is now listed under addl_vlan_ids.

 

VIOS1

hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios1" -F lpar_name,lpar_id,slot_num,is_trunk,trunk_priority,ieee_virtual_eth,port_vlan_id,addl_vlan_ids

sys901-vios1,1,2,1,1,1,1,101

 

VIOS2
hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios2" -F lpar_name,lpar_id,slot_num,is_trunk,trunk_priority,ieee_virtual_eth,port_vlan_id,addl_vlan_ids

sys901-vios2,2,2,1,2,1,1,101

 

16.Repeat these steps to add additional VLANs to the SEA.

 

 ADDITIONAL NOTES – ADDING MULTIPLE VLANS TO SEA FROM HMC CLI

 

1.         You can add multiple VLANs to an existing SEA using the chhwres command. For example, to add VLAN IDS 101 and 102. From the HMC CLI, run the command twice, once for each VIOS:

 

VIOS1

hscroot@pok-sse-hmc1:~> chhwres -r virtualio --rsubtype eth -m sys901 -o s -p sys901-vios1 -s 2 -a "\"addl_vlan_ids+=101, 102\""

 

VIOS2

hscroot@pok-sse-hmc1:~> chhwres -r virtualio --rsubtype eth -m sys901 -o s -p sys901-vios2 -s 2 -a "\"addl_vlan_ids+=101, 102\""

 

2.    Confirm the new VLAN IDs are now configured on the VIOS SEAs.

 

VIOS1

[padmin@sys901-vios1]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101   102

Port VLAN ID:     1

VLAN Tag IDs:   101   102

 

VIOS2

[padmin@sys901-vios2]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101   102

Port VLAN ID:     1

VLAN Tag IDs:   101   102

 

3.    Check the VIOS profiles to ensure that they’ve been updated with the new VLAN IDs.

 

VIOS1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VIOS2

A screenshot of a computer

AI-generated content may be incorrect.

 

4.    From the HMC CLI, review the current configuration for both VIOS again. Confirm VLANs 101 and 102 are now listed under addl_vlan_ids.

 

VIOS1

hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios1" -F lpar_name,lpar_id,slot_num,is_trunk,trunk_priority,ieee_virtual_eth,port_vlan_id,addl_vlan_ids

sys901-vios1,1,2,1,1,1,1,"101,102"

 

VIOS2

hscroot@pok-sse-hmc1:~> lshwres -m sys901 -r virtualio --rsubtype eth --level lpar --filter "lpar_names=sys901-vios2" -F lpar_name,lpar_id,slot_num,is_trunk,trunk_priority,ieee_virtual_eth,port_vlan_id,addl_vlan_ids

sys901-vios2,2,2,1,2,1,1,"101,102"

 

ADDITIONAL NOTES – REMOVING VLANS

 

1.         The HMC UI provides a quick way to remove VLANs from an SEA. It can remove the VLAN from both VIOS in on step. Note: This assumes that there are no LPARs currently using the VLAN that you want to remove.

 

A screenshot of a computer

AI-generated content may be incorrect.

 

2.         From the Virtual Networks view for the Power server. Select the Virtual Network (VLAN) you want to remove. In this example we want to remove VLAN102-ETHETNET0.

 

3.    Select VLAN102-ETHERNET0. Select Action. Select Remove Virtual Network.

A screenshot of a virtual network

AI-generated content may be incorrect.

4.    Select Remove.

A screenshot of a computer

AI-generated content may be incorrect.

5.    The virtual network is removed.

6.    Confirm the VLAN 102 is removed from the SEA on both VIOS. From the VIOS CLI:

 

VIOS1

[padmin@sys901-vios1]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101

Port VLAN ID:     1

VLAN Tag IDs:   101

 

VIOS2

[padmin@sys901-vios2]$ entstat -all ent3 | grep -E "Port VLAN ID|VLAN Tag IDs"

Port VLAN ID:     1

VLAN Tag IDs:   101

Port VLAN ID:     1

VLAN Tag IDs:   101