Page 1
How to Migrate to the z/VM Virtual Switch Session V29 Alan Altmark, IBM z/VM Development, Endicott, NY 2006 IBM Corporation IBM Systems
Page 2
IBM Systems References to IBM products, programs, or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM product, program, or...
Page 3
IBM Systems Topics Routing vs. Bridging What’s a switch? VLAN-unaware migration VLAN-aware migration 2006 IBM Corporation
Page 4
IBM Systems Review: Guest LAN vs. Virtual Switch Guest Guest Guest Guest Guest Guest LAN Virtual Switch Ethernet LAN Virtual router is required No virtual router Different subnet Same subnet External ...
Page 5
IBM Systems A routed Guest LAN web web web Subnet B Virtual router to connect Guest LAN to Ethernet Router Often VM TCP/IP Subnet A Switch 2006 IBM Corporation
Page 6
IBM Systems A bridged Guest LAN using VSWITCH web web web Subnet B No virtual router required Built-in transparent bridge Subnet B Switch 2006 IBM Corporation
Page 7
IBM Systems What’s a switch? Cisco Corp A box that creates a LAN It can be remotely configured E.g. Turn ports on and off Contains a built-in router 2006 IBM Corporation
Page 8
IBM Systems Switch functions Enable and disable a port Set port type: trunk or access Assign port to one or more VLANs Set port speed: 10 / 100 / 1000 / Auto Set port duplex mode: Simplex / Duplex / A...
Page 9
IBM Systems A routed Guest LAN web web web 10.0.1.254 Default gateway for Guest LAN hosts Router Default gateway for VSWITCH hosts Switch 2006 IBM Corporation
Page 10
IBM Systems z/VM Virtual Switch – VLAN unaware Linux VM TCP/IP VSE z/OS Virtual QDIO adapter Virtual Switch Guest LAN LAN Bridge OSA-Express Same LAN segment and Ethernet LAN subnet 2006 IBM Corporati...
Page 11
IBM Systems 2006 IBM Corporation
Page 12
IBM Systems Current Cisco 6509 Switch Configuration OSA is plugged into port 7 of slot 2 Port is defined as an access port VLAN unaware host Port is currently assigned to VLAN 201 While in ENABLE mode...
Page 13
IBM Systems CP – SYSTEM CONFIG DEFINE LAN WEBNET TYPE QDIO RESTRICTED MODIFY LAN WEBNET GRANT LINUX001 MODIFY LAN WEBNET GRANT LINUX002 MODIFY LAN WEBNET GRANT LINUX003 MODIFY LAN WEBNET GRANT LINUX00...
Page 14
IBM Systems VM TCP/IP directory USER TCPIP XXXXXXXX 32M 128M ABG * Guest LAN NICDEF E00 TYPE QDIO LAN SYSTEM WEBNET * OSA DEDICATE C200 C200 DEDICATE C201 C201 DEDICATE C202 C202 2006 IBM Corporation
Page 15
IBM Systems VM TCP/IP Profile ; Syntax is z/VM 5.2 ; eth0 is the external OSA DEVICE ETH0 OSD C200 LINK ETH0 QDIOETHERNET ETH0 MTU 1500 ; eth1 is Guest LAN DEVICE ETH1 OSD E00 LINK ETH1 QDIOETHERNET E...
Page 16
IBM Systems Linux directory entry USER LINUX002 XXXXXXXX 128M 2048M G * Guest LAN NICDEF C204 TYPE QDIO LAN SYSTEM WEBNET 2006 IBM Corporation
Page 17
IBM Systems Linux configuration - network ifconfig eth0 10.0.1.5 mask 255.255.255.0 mtu route add default gw 10.0.1.254 2006 IBM Corporation
Page 18
IBM Systems 2006 IBM Corporation
Page 19
IBM Systems Methodology #1 Create a new VLAN in the Cisco switch to carry the subnet being moved Associate the OSA with the new VLAN Add a new router to the switch Delete the router from z/VM Connect ...
Page 20
IBM Systems Cisco Catalyst 6509 (running Cat OS) While in ENABLE mode: #set vlan 202 name webnet mtu #set vlan 202 2/7 While in CONFIG mode: #interface vlan #ip address 10.0.1.254 255.255.255.0 If you...
Page 21
IBM Systems CP – SYSTEM CONFIG * from Guest LAN… DEFINE LAN WEBNET RESTRICTED TYPE QDIO MODIFY LAN WEBNET GRANT LINUX001 MODIFY LAN WEBNET GRANT LINUX002 MODIFY LAN WEBNET GRANT LINUX003 MODIFY LAN WE...
Page 22
IBM Systems 2006 IBM Corporation
Page 23
IBM Systems A routed Guest LAN web web web 10.0.1.254 Default gateway for Guest LAN hosts TCPIP Router Default gateway for VSWITCH hosts Switch 2006 IBM Corporation
Page 24
IBM Systems A VLAN-aware switch: An inside look 2006 IBM Corporation
Page 25
IBM Systems Trunk Port vs. Access Port Access port carries traffic for a single VLAN Host not aware of VLANs Trunk port carries traffic from all VLANs Every frame is tagged with the VLAN id 2006 IBM C...
Page 26
IBM Systems Physical Switch to Virtual Switch Each guest can be in a different VLAN Trunk port carries traffic between CP and switch CP Virtual Switch 2006 IBM Corporation
Page 27
IBM Systems z/VM Virtual Switch – VLAN aware Linux VM TCP/IP VSE z/OS Virtual QDIO adapter Virtual Switch Guest LAN OSA-Express IEEE 802.1q transparent Ethernet LAN bridge Trunk port 2006 IBM Corporat...
Page 28
IBM Systems 2006 IBM Corporation
Page 29
IBM Systems Methodology #2 Use a single OSA port to carry traffic for both VM TCP/IP and the Linux guests Use a VLAN-aware VSWITCH Add a new router to the switch Allow VLAN tags for both subnets to fl...
Page 30
IBM Systems CP – SYSTEM CONFIG * from a Guest LAN… DEFINE LAN WEBNET RESTRICTED TYPE QDIO MODIFY LAN WEBNET GRANT LINUX001 MODIFY LAN WEBNET GRANT LINUX002 MODIFY LAN WEBNET GRANT LINUX003 MODIFY LAN ...
Page 31
IBM Systems Cisco Catalyst 6509 (running Cat OS) While in ENABLE mode: #set vlan 202 name webnet mtu #set trunk 2/7 on dot1q 1,201-202 While in CONFIG mode: #interface vlan #ip address 10.0.1.254 255....
Page 32
IBM Systems VM TCP/IP directory USER TCPIP XXXXXXXX 32M 128M ABG * Virtual Switch NICDEF C200 TYPE QDIO LAN SYSTEM WEBNET 2006 IBM Corporation
Page 33
IBM Systems VM TCP/IP Profile ; Syntax is z/VM 5.2 ; eth0 is the external OSA DEVICE ETH0 OSD C200 LINK ETH0 QDIOETHERNET ETH0 MTU 1500 HOME 20.17.19.85/24 ETH0 GATEWAY defaultnet 20.17.19.254 ETH0 0 ...
Page 34
IBM Systems 2006 IBM Corporation
Page 35
IBM Systems Summary Conversion is relatively easy Draw pictures There are choices: Separate OSA ports, each assigned to a separate VLAN A single OSA port that trunks multiple VLANs A combination 2006 ...
Page 36
IBM Systems Thanks for Listening! 2006 IBM Corporation
Page 37
IBM Systems Contact Information By e-mail: [email protected] In person: USA 607.429.3323 On the Web: http://ibm.com/vm/devpages/altmarka Mailing lists: [email protected] [email protected]...