Top Banner
Module Number 5-1 VMware vSphere 4: Install, Configure, Manage – Revision B Copyright © 2009 VMware, Inc. All rights reserved. Networking Module 5
49

VS4ICM RevB Module5 Networking

May 21, 2017

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: VS4ICM RevB Module5 Networking

Module Number 5-1VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved.

Networking

Module 5

Page 2: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-2

You Are HereYou Are Here

OperationsvSphere Environment

Configuring VMware ESX and ESXi

Installing and Using VMware vCenter Server

Storage

Networking

Virtual Machines

Resource Monitoring

Access Control

Scalability

Configuration Management

High Availability and Data Protection

Installing VMware ESX and ESXi

Introduction to VMware Virtualization

Page 3: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-3

Importance

VMware ESX™/ESXi networking features allow virtual machines to communicate with other virtual and physical machines, allow management of the ESX/ESXi host, and allow the VMkernel to access IP-based storage and perform VMotion™ migrations. Failure to properly configure ESX/ESXi networking can negatively affect virtual machine management and storage operation.

Page 4: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-4

Module Lessons

Lesson 1: vNetwork Standard SwitchesLesson 2: vNetwork Distributed SwitchesLesson 3: Modifying Virtual Switch Properties

Page 5: VS4ICM RevB Module5 Networking

Module Number 5-5VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved.

Lesson 1:vNetwork Standard Switches

Page 6: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-6

Lesson Objectives

Describe the components of a vNetwork standard switch

Describe the vNetwork connection types

View the vNetwork standard switch configuration

Page 7: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-7

What Is vNetwork?

vNetwork capabilities optimally align physical and virtual machine networking, and provide the networking for hosts and virtual machines.vNetwork supports two types of virtual switches:

vNetwork standard switchesVirtual switch configuration for a single host

vNetwork distributed switchesVirtual switches that provide a consistent network configuration for virtual machines as they migrate across multiple hosts

Page 8: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-8

vNetwork Standard Switch

A vNetwork standard switch (vSwitch)Directs network traffic between virtual machines and links to external networks

Combines the bandwidth of multiple network adapters and balances traffic among them. It can also handle physical NIC failover.

Models a physical Ethernet switchDefault number of ports is 56 (4,088 maximum).

A virtual machine’s NIC can connect to a port.

Each uplink adapter uses one port.

Page 9: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-9

vNetwork Standard Switch Components

service console

VirtualPhysicalphysical NICs

physical switches

vNICs

vSwitches

ports and port groups

VM Port GroupVMotion Port VM Port Group SC PortVMotion Port

Host Host

Network configuration at the host level

Page 10: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-10

vSwitch Ports

A vSwitch allows the following connection types:VMkernel port

Service console port (ESX only)

Virtual machine port group

virtual machine port groups

uplink ports

service console

port

VMkernel port

Page 11: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-11

vSwitch Examples

Different networks can coexist on the same virtual switch. Or they can exist on separate virtual switches.

Management iSCSI VMotion Virtual Machines

Management

iSCSI VMotion

Virtual Machines

Page 12: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-12

Adding a Network: Connection Type

1. In the Configuration tab, click Add Networking.

2. In the Add Network wizard, choose desired connection type: Virtual Machine, VMkernel, or Service Console.

Page 13: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-13

Adding a Network: Network Adapters

Create a new virtual switch or add the connection type to an existing virtual switch.

Page 14: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-14

Adding a Network: Connection Settings

Name the connection and optionally define a VLAN ID (1–4,094) if using VLANs.

Page 15: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-15

vSwitch Configuration

Display port group properties.

Display vNetwork standard switches.

Delete the virtual switch.

Display virtual switch

properties.

Display Cisco Discovery Protocol

information.

Page 16: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-16

Physical Network Considerations

Discuss VMware vSphere™ networking needs with your network administration team:

Number of physical switches

Network bandwidth required

Physical switch support for 802.3AD (for NIC teaming)

Physical switch support for 802.1Q (for VLAN trunking)

Network port security

Cisco Data Protocol (CDP) and its operational modes: listen, broadcast, listen and broadcast, and disabled.

Page 17: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-17

Lesson Summary

A vNetwork consists of two types of switches: standard switches and distributed switches.

A standard switch allows virtual machine networking and is configured at each host.

There are three connection types: virtual machine, VMkernel, and service console.

Page 18: VS4ICM RevB Module5 Networking

Module Number 5-18VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved.

Lesson 2:vNetwork Distributed Switches

Page 19: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-19

Lesson Objectives

List the benefits of using vNetwork distributed switches

Describe the vNetwork distributed switch architecture

Create a vNetwork distributed switch

Manage the vNetwork distributed switch using the VMware vSphere Client

Page 20: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-20

vNetwork Distributed Switch

A vNetwork distributed switch provides similar functionality to a vNetwork standard switch, but it exists across the entire datacenter to use.

VMware vCenter™ Server owns the configuration of the distributed switch, and the configuration will be consistent across all the hosts that use it.

The behavior of distributed switches is consistent with standard switches.

You can configure virtual machine port groups, VMkernel ports, and service console ports on a distributed switch.

Page 21: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-21

Benefits of Distributed Switches

The benefits of distributed switches over standard switches:Simplify datacenter administrationProvide support for private VLANsEnable networking statistics and policies to migrate with virtual machines during a migration using VMware VMotion™Provide for customization and third-party development

vSwitch vSwitch vSwitchDistributed Virtual Switch

standard switches distributed switches

Page 22: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-22

Virtual MachinePort Group

Service ConsolePort Group

VMotionPort Group vCenter

Server

vNetwork Distributed Switch Architecture

service console

Host 1 Host 2

virtual

physicalphysical NICs(uplinks)

physicalswitches

vNICs

hidden vSwitches (I/O plane)

distributed switch(control plane)

distributedports andport groups

Page 23: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-23

VMPortGroup

ESX01 ESX02

virtual

physicaluplinks

distributedswitch:

Production

vmnic1

uplinkport group

Distributed Switch Example

Example:Create a distributed switch named Production, to be used for virtual machine networking. Assign uplinks, vmnic1 on host ESX01 and vmnic2 on host ESX02, to the distributed switch.

vmnic0 vmnic2 vmnic1vmnic0 vmnic2

Page 24: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-24

Creating a Distributed Switch

Enter name of switch, number of uplink ports, then choose the physical adapters from each host to add to the switch.

Page 25: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-25

Viewing Distributed Switches

Use the Configuration tab to modify the switch.

Page 26: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-26

Connecting a Virtual Machine to a Port Group

Connect a virtual machine by assigning the port group to its network adapter.

Page 27: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-27

Adding a Host to a Distributed Switch

Right-click the distributed switch, then choose Add Host.

Page 28: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-28

VMkernel and Service Console Connections

Use the Manage Virtual Adapters dialog box to add a new virtual adapter or to migrate an existing one to a distributed switch.

Page 29: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-29

Managing Physical Adapters (Uplinks)

Modify physical adapter configuration at the host level.

Page 30: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-30

vSphere Client

vCenter Extension

Plug-In

DB Control Plane

vCenter Server

I/O Plane

Host

I/O Plane

Control PlaneAppliance

Agent Agent

Third-Party Distributed Switches

vNetwork Appliance APIs allow third-party developers to create distributed switch solutions.

Host

Page 31: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-31

Lab 4

In this lab, you will work with vNetwork standard and distributed switches.1. View the default vNetwork standard switch configuration.

2. Create a vNetwork distributed switch for the virtual machine network.

3. Verify that your virtual machine has proper access to the Production network.

4. Create a distributed switch for the VMotion network.

Page 32: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-32

Lesson Summary

A vNetwork distributed switch is similar to a vNetwork standard switch, except that it is configured at the vCenter Server level.

Although the distributed switch is controlled by vCenter Server, the VMkernel connection, the service console connection, and the physical uplinks are still managed on each host.

It is possible to move virtual machines from a standard switch to a distributed switch, and vice versa.

Page 33: VS4ICM RevB Module5 Networking

Module Number 5-33VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved.

Lesson 3:Modifying Virtual Switch Properties

Page 34: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-34

Lesson Objectives

Describe the properties of a distributed switch

Describe the properties and policies of a distributed port group

Page 35: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-35

Editing General Switch Properties

The Properties tab has settings for general information, policies, and advanced settings.

General information includes name, number of uplink ports and optional names, number of ports, and notes.

Distributed ports and port groups inherit property settings defined at the switch level.

Page 36: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-36

Editing Advanced Switch Properties

Advanced informationMaximum MTUCisco Discovery ProtocolAdministrator Contact Information

Page 37: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-37

Editing Distributed Port Group Settings

Distributed Port Group > Edit Settings

Port binding determines when a virtual machine is bound to the port.

Page 38: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-38

Editing Port Group Policies

The Policies page shows settingsfor the five subcategories.

Distributed Port Group > Edit Settings

Page 39: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-39

Security Policy

Administrators can configure Layer 2 Ethernet security options at the virtual switch and at the port groups.

Distributed Port Group > Edit Settings

Page 40: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-40

Traffic-Shaping Policy

Network traffic shaping is a mechanism for controlling a virtual machine’s network bandwidth.Average rate, peak rate, and burst size are configurable.

Page 41: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-41

Configuring Traffic ShapingYou can shape both inbound and outbound traffic on distributed switches.

Distributed Port Group > Edit Settings

Page 42: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-42

VLANs

ESX/ESXi supports 802.1Q VLAN tagging.Virtual switch tagging is one of three tagging policies supported.

Packets from a virtual machine are tagged as they exit the virtual switch.

Packets are cleared (untagged) as they return to the virtual machine.

There is little effect on performance.

Page 43: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-43

VLAN Policies for Distributed Switches

No virtual switch tagging

Virtual switch tagging

Use for VLAN trunking.

Use to specify which PVLAN to use after PVLANs are set up.

Page 44: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-44

E

Private VLAN Architecture

A B C D

Secondary PVLAN 155(Isolated)

Secondary PVLAN 17

(Community)

Primary PVLAN 5

Distributed Switch

Secondary PVLAN 5

(Promiscuous)

F

Page 45: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-45

Configuring and Assigning PVLANs

12

3

Network Configuration > Distributed Switch > Edit Settings

Network Configuration > Distributed Port Group > Edit Settings

Configure.

Assign.

Page 46: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-46

Advanced SettingsDistributed Port Group > Edit Settings

Blocking, traffic shaping, VLAN, NIC teaming, and security policies can be configured at the port level if permitted at the port group level.

Page 47: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-47

Lab 5

In this lab, you will design a network configuration for an ESX host based on a set of requirements.1. Analyze the requirements.

2. Design virtual switches and physical connections.

Page 48: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-48

Lesson Summary

Properties at the distributed port group level can be overridden per port.

The security policy and the network traffic-shaping policy can be configured for a distributed port group or a standard virtual switch.

Distributed switches support VLANs and private VLANs.

Page 49: VS4ICM RevB Module5 Networking

VMware vSphere 4: Install, Configure, Manage – Revision BCopyright © 2009 VMware, Inc. All rights reserved. Module Number 5-49

Key Points

Both distributed switches and standard switches can be used in the vSphere environment.

Both distributed switches and standard switches support the three connection types: virtual machines, VMkernel, and service console.

Distributed switches are configured at the vCenter Server level, while standard switches are configured at the host level.