VMware Cloud Community
valera_pyrozhen
Contributor
Contributor

ESXI 6.0.0 virtual router

Hi

I want to deploy virtual router (OS FreeBSD 10.3) on my virtual environment


Physical server HP DL120 gen9 with two NICs. ESXi 6.0 (custom HP image).

I have created to virtual switches. One vSwitch0 connected to vmnic0 and to local network. Second vSwitch1 connected to vmnic1 and to WAN

Untitled.jpg

vROUTER - virtual machine with FreeBSD 10.3(VMware tools installed). All network interfaces is available in OS. Firewall - allow ip from any to any


First interface em0 assigned static IP from LAN and its work I can ping machine in network

For second interface em1 i have assign public IP provided by my internet provider.


vROUTER didn't have access to then internet also it is not accessible from internet by public IP


What may be the cause of problem?

0 Kudos
4 Replies
virtualg_uk
Leadership
Leadership

The first problem you have is that vmnic1 is not connected to anything, please trace the cable from this physical port on the server and report back.

Once this is resolved, can you confirm why the vRouter needs a public IP? Are you looking to provide access to the vRouter from outside your network?


Graham | User Moderator | https://virtualg.uk
0 Kudos
valera_pyrozhen
Contributor
Contributor

vmnic1 is temporary disconnected. I have tested on connected media.


I am looking to provide internet access for LAN machines through vROUTER (FreeBSD NAT)


0 Kudos
virtualg_uk
Leadership
Leadership

Okay, so your steps will be something like this:

  • Change the public IP on the "WAN" interface to a private one in the same subnet as your home router
  • Set the gateway on that "WAN" interface to your Home Router's IP *eg 192.168.0.1" or whatever it is
  • For the other VMs, set the gateway of those to the IP of the "LAN" interface of the vRouter

This means:

VM tries to get to internet, traffic will use the configured gateway (The LAN IP of the vRouter)

Once the vRouter gets the traffic, it will use it's gateway, ie your home ADSL router and send the traffic there

Next the home router gets the traffic and sends it to your ISP. At this point the traffic is outside of your network at home and will get to where it needs to go.

I hope this makes sense.


Graham | User Moderator | https://virtualg.uk
0 Kudos
vervoortjurgen
Hot Shot
Hot Shot

when you assign you public ip address can you ping your ISP gateway on the vrouter?

if not check your ipconfig settings

and maybe in your country the public ip address can only be set on the modem and not pass through to your server

kind regards Vervoort Jurgen VCP6-DCV, VCP-cloud http://www.vdssystems.be
0 Kudos