27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SET VSWITCH<br />

Examples<br />

The PORTNAME oper<strong>and</strong> is optional. However, some levels of the OSA<br />

Express adapters require that the PORTNAME oper<strong>and</strong> is specified. When<br />

such an adapter is in use <strong>and</strong> the PORTNAME oper<strong>and</strong> is omitted, an error<br />

message is displayed during switch initialization.<br />

If the device is already started, you must stop it by issuing the SET VSWITCH<br />

switchname DISCONNECT comm<strong>and</strong> before changing the port name.<br />

6. VLAN configuration information can be found in Planning for Guest LANs <strong>and</strong><br />

Virtual Switches in z/<strong>VM</strong>: Connectivity.<br />

7. PRIROUTER is required only when IP forwarding (routing) nodes will be<br />

coupled to the switch. Router nodes provide connectivity for their LAN<br />

segments (remote nodes) through their switch connection. When Router nodes<br />

are deployed, their switch connection must be configured as PRIROUTER. In<br />

addition to this, the switch itself must also be configured as PRIROUTER to<br />

the OSA-E adapter. This will insure delivery of datagrams destined for LAN<br />

segments that are connected through routers coupled to a switch. Only one<br />

connection on each OSA-Express card can be designated as PRIROUTER. If<br />

the switch is successful in establishing PRIROUTER on the OSA-Express<br />

card, no other node (or switch) sharing the same OSA-Express card will be<br />

able to act as PRIROUTER. If another connection has already been<br />

established as PRIROUTER, the switch will be left with NONROUTER status<br />

(which is reflected in the QUERY VSWITCH response).<br />

8. NONROUTER is the default mode for the switch. Every node is directly<br />

coupled to the switch <strong>and</strong> the associated IP destinations are registered with<br />

the OSA Express connection. This is the most efficient way to use the virtual<br />

switch. In this mode, packets with an unrecognized IP destination are<br />

automatically sent out through the switch connection.<br />

9. If the Virtual Switch has been defined as VLAN UNAWARE, the PORTTYPE<br />

option <strong>and</strong> the VLAN option on GRANT are not allowed.<br />

10. If the Virtual Switch has been defined as VLAN aware <strong>and</strong> no VLAN<br />

membership is given with the GRANT (or provided by an external security<br />

manger), the guest is a member of the Virtual Switch’s default VLAN ID<br />

(defvid).<br />

11. If the Virtual Switch has been defined as VLAN aware <strong>and</strong> no PORTTYPE is<br />

given with the GRANT, the guest is assigned the porttype of the Virtual<br />

Switch’s default porttype (defporttype).<br />

The following examples apply when <strong>CP</strong>, not an ESM, is protecting the <strong>VM</strong> LAN:<br />

1. To allow user <strong>VM</strong>T<strong>CP</strong>IP to connect to virtual switch BIGANG <strong>and</strong> filter any<br />

incoming traffic using VLAN 9, specify the following:<br />

set vswitch bigang grant vmtcpip vlan 9<br />

2. To remove the authority of LINUX1 to connect to virtual switch BIGANG, specify<br />

the following:<br />

set vswitch bigang revoke linux1<br />

3. To connect virtual switch BIGANG to a real LAN using device FD00, specify the<br />

following:<br />

set vswitch bigang rdev fd00<br />

1424 z/<strong>VM</strong>: <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> <strong>and</strong> <strong>Utilities</strong> <strong>Reference</strong><br />

4. To disconnect virtual switch BIGANG from device FD00 <strong>and</strong> reconnect it to a<br />

real LAN using device FE00 <strong>and</strong> portname ableport, specify the following:<br />

set vswitch bigang disconnect<br />

set vswitch bigang portname ableport<br />

set vswitch bigang rdev fe00<br />

set vswitch bigang connect

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!