VMware Cloud Community
joshhills
Contributor
Contributor

gateway ESX6

Home lab. Single host with vcenter. ESX6

I want to have 2 vswitches each going to a different router with different IP subnets.  No vm will connect to both.  I do not want them to see each other.  Is this possible? 

I have tried to setup the vswitch that is not for management but still needs vm traffic and it it will not let me set up a separate gateway.

Thanks

0 Kudos
7 Replies
bayupw
Leadership
Leadership

I imagine you will have at least 3 subnet

1. subnet1 for management, vCenter and ESXi management VMkernel

2. subnet2 for VM connected to the first router

3. subnet3 for VM connected to the second router

Let say the management subnet is in gateway on router1, subnet2 on router1 and subnet3 on router2

On the default vSwitch0 you will have the management VMkernel, management portgroup for vCenter and a portgroup for subnet2

you can create a separate vSwitch e.g. vSwitch1 with portgroup for subnet3 to router2

How many vmnic/network adapter on the ESXi host?

If you have limited hosts, you can combine all the subnets and portgroup into one vSwitch and use VLANs

You mentioned that you cannot set up a separate gateway, are you referring to VMkernel default gateway?

You don't really need a second VMkernel IP for management with a different gateway unless you want the ESXi to also be reachable from other subnet.

The workload VMs on subnet2 and subnet3 do not need to connect to the ESXi/vCenter management IP to work.

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
0 Kudos
joshhills
Contributor
Contributor

This is what I have.  I do not want the 192 and 10 to see each other.  At present I cannot get access to the 10.1.X.X ie ping gateway , get DHCP

1 Physical host

vSwtichs are on different phy nics and those are attached to separate router/network

Thanks

0 Kudos
RAJ_RAJ
Expert
Expert

Hi ,

Connect vmnico to one vswitch - > router

connect other two other vswicth -> router

Make one for management

Go to another swicth - > vmkernal / managemnt nw   setting -> ip - > edit ther you can assign different gateway

RAJESH RADHAKRISHNAN VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335 Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!
0 Kudos
bayupw
Leadership
Leadership

If you have a diagram on what you have and what you would like to achieve, I think that would be helpful Smiley Happy

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
0 Kudos
joshhills
Contributor
Contributor

Doesnt let me change it

0 Kudos
joshhills
Contributor
Contributor

ESX_Layout.jpg

0 Kudos
RAJ_RAJ
Expert
Expert

Is both switch having vmkernel network ?

RAJESH RADHAKRISHNAN VCA -DCV/WM/Cloud,VCP 5 - DCV/DT/CLOUD, ,VCP6-DCV, EMCISA,EMCSA,MCTS,MCPS,BCFA https://ae.linkedin.com/in/rajesh-radhakrishnan-76269335 Mark my post as "helpful" or "correct" if I've helped resolve or answered your query!
0 Kudos