unixadmin.free.fr just another IBM blog and technotes backup

20jan/12

Add Additional Vlan tags to running IVM

Abstract

Add Vlan tags to a running IVM with running AIX Lpars
Content

ADD ADDITION VLAN TAG TO AN EXISTNG SEA ON IVM
What if questions are listed at the bottom of this document.

Configuring VIOS (IVM)

Add and additional Vlan tag of 148 to IVM so AIX Lpar could use
Vlan 148 tag to communicate.

Currently vios(IVM) has vitual adapter ent2 with PVID of ‘1’ as part of
SEA ( Shared Ethernet Adapter)

Steps to add vlan tag

+  Log in to IVM as padmin

Find the managed sytem name for commands that would follow the '-m' flag

$ lssyscfg -r sys -F name

9117-mma
Managed system name is 9117-mma

+ Get the Lpar name and ID

$ lssyscfg -r lpar -F name,lpar_id
VIOS6,1
mule-us,2
mule-temp,3

+ In oem_setu_env shell
look for the next avalilable slot :

# lsslot -c slot

Here is an example of the output
U7311.D11.10B8BDA-P1-C4 Logical I/O Slot pci4 pci5 ent2 ent3 ent4 ent5
U7879.001.DQD1AM1-P1-C1 Logical I/O Slot pci1 ent0
U9117.570.102C1EA-V5-C0 Virtual I/O Slot vsa0
U9117.570.102C1EA-V5-C3 Virtual I/O Slot ent6
U9117.570.102C1EA-V5-C4 Virtual I/O Slot ent7
U9117.570.102C1EA-V5-C13 Virtual I/O Slot vscsi0

The last slot used is C13
Slot 14 is the next available.

+ As padmin add a new virtual adapter which will have vlan tag of 148.
We must use a PVID that is not used anywhere else and it will not ever be
Used. In this case we used PVID of 400.

$ chhwres -m 9117-mma -p VIOS6 -o a -r virtualio --rsubtype eth -s 14 -a "ieee_virtual_eth=1,port_vlan_id=400,addl_vlan_ids=148,is_trunk=1,trunk_
priority=1"

-o is the option ‘a’ is to Add, -s is the slot number
We set the ieee_virtual_eth to 1 which means allow additional Vlans.
‘additional vlan’ is to specify the Vlans being added.
is_tunk=1 means that Access External Network is set to yes. Priority is ‘1’
since the current SEA has trunk priority of ‘1’.

The command gave this output which means it created slot 14

/usr/ios/lpm/sbin/lpmdrmgr drmgr -c slot -s 'U7998.61X.10B59CA-V1-C14' -a

+ Verify that the slot was crreated :

$ lshwres -r virtualio --rsubtype eth --level lpar

Here is the sample output.

lpar_name=VIOS6,lpar_id=1,slot_num=3,state=1,ieee_virtual_eth=0,port_vla
n_id=1,addl_vlan_ids=none,is_trunk=1,trunk_priority=1,is_required=0,mac_
addr=CAF57130D303
lpar_name=VIOS6,lpar_id=1,slot_num=4,state=1,ieee_virtual_eth=0,port_vla
n_id=2,addl_vlan_ids=none,is_trunk=1,trunk_priority=1,is_required=0,mac_
addr=CAF57130D304
lpar_name=VIOS6,lpar_id=1,slot_num=5,state=1,ieee_virtual_eth=0,port_vla
n_id=3,addl_vlan_ids=none,is_trunk=1,trunk_priority=1,is_required=0,mac_
addr=CAF57130D305
lpar_name=VIOS6,lpar_id=1,slot_num=6,state=1,ieee_virtual_eth=0,port_vla
n_id=4,addl_vlan_ids=none,is_trunk=1,trunk_priority=1,is_required=0,mac_
addr=CAF57130D306

***-------------- this is the newly created Slot 14

lpar_name=VIOS6,lpar_id=1,slot_num=14,state=1,ieee_virtual_eth=1,port_vl
an_id=400,addl_vlan_ids=148,is_trunk=1,trunk_priority=1,is_required=0,ma
c_addr=CAF57130D30E
****------------------------

lpar_name=mule-us,lpar_id=2,slot_num=4,state=1,ieee_virtual_eth=0,port_v
lan_id=1,addl_vlan_ids=none,is_trunk=0,trunk_priority=0,is_required=0,ma
c_addr=CAF57DAB5C04
lpar_name=mule-temp,lpar_id=3,slot_num=4,state=0,ieee_virtual_eth=0,port
_vlan_id=1,addl_vlan_ids=none,is_trunk=0,trunk_priority=0,is_required=0,
mac_addr=CAF57FDA8C04

+ Find the newly created virtual adatper
$ oem_setup_env

# lsdev –Cc adapter
ent12 is available

+ Check if ent12 is in slot 14

# lscfg –vl ent12
You should see something like this
U9117.570.102C1EA-V5-C14-T1

+ Verify that vlan tag of 148 is present.

# entstat -d ent12 |grep -i vlan
Invalid VLAN ID Packets: 0
Port VLAN ID: 400
VLAN Tag IDs: 148 …. This will become part of SEA

+ Add the newly creatd virtual adapter,ent12, into SEA

The SEA already has virtual ent2,
NOTE: The coammand to add slot 14 ( which is ent12) must
include the ent2 as well, otherwise ent2 will
be removed from SEA configuration.
As padmin :

$ chdev -dev ent9 -attr virt_adapters=ent2,ent12

+ Verify that Vlan tag is part of SEA

$ oem_setup_env

# lsatrr -El ent9
last line of output: ent2 and ent12 (both virtual adapter) are listed

# entstat -d ent9 | grep -i vlan
you will see both 148 and 1 vlan tags

Section 2: Configuring Lpar

+ Assign vlan tag 148 to virtual adatper on AIX.

These are the screens, If you don’t have a virtual adapter, just click on ‘create adapter’ and simply create a virtual adapter.


+ Go to IVM GUI

This can be done while AIX is running.
When these screen-shot were captured, the Lpar was not running.
If the AIX partition is not runnig, the steps are the almost the same: Add the virtual
adapter and activate the partition to read-in the new Virtual adapter.
For this document, AIX would be in ‘running’ state.
Check the box next to the partition
Click on More Tasks
Properties

click on Ethernet tab

If you don’t have a virtual adapter, click on Create Adapter, and create one.

Select a virtual adapter, then from drop-down list
select vlan tag of 148. ( 148 will show up in the List)
Click OK

+ Go to AIX

run config manager

# cfgmgr

+ List Ethernet adapters
# lsdev -Cc adapter | grep ent

You will see the new virtual adapter on the aix which on our
example it is ent1

+ Verify Vlan tags
# entstat -d ent1 | grep -i vlan

You should see 148 now .

+ Put an IP on this virtual adapter , ent1

# smit chinet
select en1 NOT et1
enter IP and netmaks
set STATE to UP
Hit enter

+ Verify that en1 is up
# ifconfig -a

+ Try to PING and IP address from AIX

What if questions

- The new virtual adapter is incorrect. I have not added it to the SEA yet.
Resolution:
Delete the slot.
$ chhwres –p VIOS6 -o r -r virtualio --rsubtype eth -s 14
Slot # is 14

- I added the virtual adapter to SEA, need to take it out.
Resolution:

In our case, ent12 was added incorrectly need, to remove it.
Run the same chdev command to do the ‘add’, but this time leave out ent12

$ chdev -dev ent9 -attr virt_adapters=ent2

Now SEA only has one virtual adapter, which is the original ent2
To verify
# lsattr -El entX ( entX is the SEA ) in our case ent9

Source : IBM Technote

Taggé comme: Laisser un commentaire
Commentaires () Trackbacks (0)

Aucun commentaire pour l'instant


Leave a comment

(required)

Aucun trackbacks pour l'instant