VMware Cloud Community
Dave_Delta_Mike
Enthusiast
Enthusiast
Jump to solution

Port group to physical network mapping: Possible with just one Vswitch?

Hello. I'm new to VMWare. I've been using Oracle VM so far.

I want to to know if the setup I intend to use is possible to achieve with ESXi 6.5.0

Host: 2 physical network cards

3 port groups in vswitch0

     -management network in vswitch0

     -vm external port group

     -vm internal port group

one VM so far with 2 network interfaces. 1 external port group; 1 internal port group

This VM is for routing/Nat purposes, so I'd like to use one network card for internal traffic and the other to external.

Do I have to create another Vswitch to use with vm external, or can I use vswtich0 for both internal and external networks, assigning one physical adapter respectively? If so, How do I achieve this, because in the attached topology diagram, it seems that my physical adapters are both used for teaming instead of traffic separation.

Any help, please?

Thanks and resgards

1 Solution

Accepted Solutions
PCTechStream
Hot Shot
Hot Shot
Jump to solution

Connecting to two different network on single ESXi (Internal LAN and External DMZ)

You should use different vSwitch for each NIC

VMKernel should only be used for Management/vMotion/Shared storage (which is not need in your case)

(And you should not be connecting your Managment Network port to the DMZ)

EXAMPLE:

Internal LAN

vSwitch0 connected to a one physical NIC 

1 Virtual Machine Port Group for VMs

1 VMKernel port for management

External DMZ

vSwitch1 connected to a one physical NIC 

1 Virtual Machine Port Group for DMZ

SEE DIAGRAM FOR MORE DETAILS:

DDDD2.PNG

Raul.

VMware VDI Administrator.

http://ITCloudStream.com/

Stay Connected: Like > Share > Comment > Reply > Helpful > Answered

www.ITSA.Cloud

View solution in original post

9 Replies
a_p_
Leadership
Leadership
Jump to solution

Welcome to the Community,

with different speed NICs, and no VLANs in place, I'd actually consider to create two vSwitches for a better overview. However, you can certainly do what you want with a single vSwitch. Simply override the NIC teaming policy for each of the port groups, so that only the correct NIC is used.


André

PCTechStream
Hot Shot
Hot Shot
Jump to solution

Connecting to two different network on single ESXi (Internal LAN and External DMZ)

You should use different vSwitch for each NIC

VMKernel should only be used for Management/vMotion/Shared storage (which is not need in your case)

(And you should not be connecting your Managment Network port to the DMZ)

EXAMPLE:

Internal LAN

vSwitch0 connected to a one physical NIC 

1 Virtual Machine Port Group for VMs

1 VMKernel port for management

External DMZ

vSwitch1 connected to a one physical NIC 

1 Virtual Machine Port Group for DMZ

SEE DIAGRAM FOR MORE DETAILS:

DDDD2.PNG

Raul.

VMware VDI Administrator.

http://ITCloudStream.com/

Stay Connected: Like > Share > Comment > Reply > Helpful > Answered

www.ITSA.Cloud
Dave_Delta_Mike
Enthusiast
Enthusiast
Jump to solution

Thank you both for the reply.

The machine I'm about to replace has 2 NICs, one in each network but in the same VLAN. So I'll follow the advice from you both and use a different vswitch for each port group.

It's even easier to understand the topology.

When everything is working I will mark this as solved.

Thanks!

0 Kudos
Dave_Delta_Mike
Enthusiast
Enthusiast
Jump to solution

By the way,

any idea why the following command shows "completed Successfully" on the ESXi Web interface Recent tasks but I get no local backup file ?

"vicfg-cfgbackup.pl --server=my.ip.address --username=root -s c:\esxi.backup"

0 Kudos
PCTechStream
Hot Shot
Hot Shot
Jump to solution

- Are you specifying a location for the backup file? It may be defaulting to somewhere else unless you are explicitly calling it out.

EXAMPLE:

C:\Users\Username\AppData\Local\VirtualStore\

Raul.

VMware VDI Administrator.

http://ITCloudStream.com/

Stay Connected: Like > Share > Comment > Reply > Helpful > Answered

www.ITSA.Cloud
Dave_Delta_Mike
Enthusiast
Enthusiast
Jump to solution

Thanks for the reply.

I thought the -s "c:\esxi.backup" was ment for that.

Anyway, there is no esxi.backup file in C:\ and windows search can't find it anywhere in the disk.

I read it was necessary to create a scratch/download folder in older versions, but exit already on esxi 6.5.0.

Any ideas?

0 Kudos
PCTechStream
Hot Shot
Hot Shot
Jump to solution

These links will help you:

ghettoHostBackupManagement.pl

LINK: https://communities.vmware.com/docs/DOC-11767

Quickly Backup ESXi Host Configuration with PowerCLI

LINK: https://vbrownbag.com/2013/03/quickly-backup-esxi-host-configuration-with-powercli/

Raul.

VMware VDI Administrator.

http://ITCloudStream.com/

Stay Connected: Like > Share > Comment > Reply > Helpful > Answered

www.ITSA.Cloud
0 Kudos
pstoric
Enthusiast
Enthusiast
Jump to solution

I have another issue I need to workout. I'm using this test VM to create a an on-prem Windows server that sync's with another server hosted within Azure via VPN. The VM needs to have two NIC's accessible, one for LAN and one Public IP. The server that ESXi is hosted on (Poweredge R230) has two NICs.

NIC#1 is currently plugged into my switch. NIC#2 is going to be plugged into a miniswitch that comes off my FIOS ONT so I can program one of our usable WAN IP's into there but I don't know where to plug that IP info into? During the setup of the ESXi host, I gave the host a LAN IP for management (192.168.75.20) but where can I program NIC#2 and how can I make both NIC's available in the Server 2012 R2 VM? Thanks in advance for the help!!

0 Kudos
PCTechStream
Hot Shot
Hot Shot
Jump to solution

I AM NOT SURE ABOUT YOUR (LAN - WAN) SETUP --- BUT -- SEE IF THIS CAN WORK FOR YOU!!!!

LAN - WAN.PNG

Raul.

VMware VDI Administrator.

http://ITCloudStream.com/

Stay Connected: Like > Share > Comment > Reply > Helpful > Answered

www.ITSA.Cloud
0 Kudos