
116 IBM BladeCenter JS23 and JS43 Implementation Guide
Example 4-14 Using chhwres command to create new VIOS virtual Ethernet adapter
$ chhwres -r virtualio --rsubtype eth -o a --id 1 -s 15 -a
port_vlan_id=555,ieee_virtual_eth=1,\"addl_vlan_ids=20,30,40\",is_trunk
=1,trunk_priority=1
The flags and their attributes are:
-r virtualio --rsubtype eth type of hardware resource to change
-o a perform add operation
--id 1 the LPAR id number
-s 15 slot number to use
-a attributes to add
– port_vlan_id=555 PVID
– iee_virtual_eth=1 turns on IEEE 802.1q support
– add_vlan_ids=20.30,40 defines additional VLAN ids
– is_trunk=1 must be turned on to pass multiple VLANs
– trunk_priority=1 priority of the adapter can be set between 1-15
The lsdev command is repeated and shows the new Virtual I/O Ethernet Adapter
at ent9 as shown in Example 4-15
Example 4-15 sdev command used to list new ent9 Ethernet adapters
$ lsdev -type adapter |grep ent
ent0 Available Logical Host Ethernet Port (lp-hea)
ent1 Available Logical Host Ethernet Port (lp-hea)
ent2 Available Virtual I/O Ethernet Adapter (l-lan)
ent3 Available Virtual I/O Ethernet Adapter (l-lan)
ent4 Available Virtual I/O Ethernet Adapter (l-lan)
ent5 Available Virtual I/O Ethernet Adapter (l-lan)
ent6 Available Gigabit Ethernet-SX PCI-X Adapter
ent7 Available Gigabit Ethernet-SX PCI-X Adapter
ent8 Available Shared Ethernet Adapter
ent9 Available Virtual I/O Ethernet Adapter (l-lan)
The lshwres command is run again as shown in Example 4-16 to display the new
adapter indicated in bold.
Example 4-16 lshwres command showing new VIOS virtual Ethernet adapter
$ lshwres -r virtualio --rsubtype eth --level lpar
Kommentare zu diesen Handbüchern