How to setup a bridge connection with vbox/vmware using a second wan ip on a dedicated server

551 views Asked by At

I am using a dedicated server with a certain wan ip / netmask / gateway / nameservers. I got a second wan ip to use with virtualbox i installed on the server. I want to use bridge connection in virtualbox because i use some "servers" in it and want them to be able to be seen from internet .

I created a virtual network interface on the server and assigned the second ip to it. It works , meaning i can ping that ip from outside.I setup virtualbox to bridge to that interface but i am stuck at what settings i have to set up in the virtual guest so everything will work.

Second ip has netmask 255.255.255.255 so i assume its a single ip situation and probably using gateway and nameservers of the server because i was given none of them with it.

I have to mention that first ip and second ip are not in the same subnet , nor is the gateway (e.g. XX.YY.ZZ.WW , ZZ is different between first , second and gateway ip)

Thanks in advance.

1

There are 1 answers

5
Rob On

You have to unbind TCP and all other protocols and services on the hosts NIC that you want to use in VBox. After that, you can configure a bridged network connection using that interface. After that, you can set the IP and network settings in your virtual system. This has also been addressed in this post: https://serverfault.com/questions/136969/dedicate-a-nic-to-a-virtualbox-vm