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
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?
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?
vmnic1 is temporary disconnected. I have tested on connected media.
I am looking to provide internet access for LAN machines through vROUTER (FreeBSD NAT)
Okay, so your steps will be something like this:
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.
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