VMware Cloud Community
chafik79
Contributor
Contributor
Jump to solution

vm as gateway, DHCP

hi guz

my question concern esx server, my network is pretty basic,

internet to esx server via modem-router connected to physical nic1 and then from physical nic2 to switch then to clients. now i'm managing the esx server through the modem-router, if i connect via switch i cant even ping the esx or the gateway (modem-router).

my question is how do i setup networking in esx so i can setup a vm as gateway, dhcp and nat server to the clients that are after the switch.

0 Kudos
1 Solution

Accepted Solutions
AndreTheGiant
Immortal
Immortal
Jump to solution

True.

As you see is very simple Smiley Happy

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro

View solution in original post

0 Kudos
8 Replies
AndreTheGiant
Immortal
Immortal
Jump to solution

my question is how do i setup networking in esx so i can setup a vm as gateway, dhcp and nat server to the clients that are after the switch

Create 2 vSwitches, one for internal LAN and one for Internet (with one uplink to the router).

Then you need a dual homed VM: just a VM with 2 vNIC one connected to a portgroup in the first vSwitch, one connected to a port group to the second vSwitch.

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
chafik79
Contributor
Contributor
Jump to solution

it seems you know the answer but can you please explain it in plain english... lol

how do i set one vswitch for internal and another one for internet?

and how do i " one connected to a portgroup in the first vSwitch, one connected to a port group to the second vSwitch"

i buy you a drink

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

I suppose that you have at least 2 pysical NIC (pNIC), true?

Go on ESX properties, Networking and you will see the first vSwitch with a portgroup for you internal LAN and a pNIC that go to your physical switch, true?

Use new (on top/right) to create a new vSwitch for VM network, give a label to your VM network (like "internet") and connect to the second pNIC.

Create a VM for the gateway/firewall and just add 2 virtual NIC, one with your internal label, one with "internet" label.

PS: sorry for my (poor) english Smiley Happy

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
chafik79
Contributor
Contributor
Jump to solution

basically i just have to create 2 vswitch with 2 different physical nic on each one? nothing else?

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

True.

As you see is very simple Smiley Happy

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
chafik79
Contributor
Contributor
Jump to solution

you are the man

hope it works

0 Kudos
chafik79
Contributor
Contributor
Jump to solution

IT DOES WORK

BIG BIG THANK YOU ANDRE

0 Kudos
AndreTheGiant
Immortal
Immortal
Jump to solution

You're welcome.

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos