Making a gateway with virtual machines

I have 2 VMS.

I want the VM#1 Openwrt to be the gateway of the VM#2 Ubuntu server. In network setting of ubuntu I have choosen Vmnet network same as Openwrt with connect on power on ticked. But I have no network in ubuntu VM.Network is working in Openwrt

Ok, then do it ...?

2 Likes

how to do it? that's what I am asking

No, you weren't.. ,)

Set VM1 as default GW and perhaps DNS in VM2.

1 Like

I tried this is not working

We can't help you with "it doesn't work", move on, provide more info, or find someone who enjoys playing 1000 questions.

Is the VM:ed openwrt externally (as in LAN) accessible?

1 Like
  • Make first interface Internal Network (Ubuntu should be connected to this network)
  • Make second interface bridged to Internet connection
  • Reset OpenWrt and it should get Internet by default

Provide details!

2 Likes

Openwrt has network. I have internet connectivity issue in Ubuntu.


Wait...

You already have a thread: VMWare Workstation no DNS/Internet

In fact, follow my advice from there:

No need to make a duplicate thread.

1 Like

Good find, flagged.

1 Like

Openwrt has network connection via LAN. I want to connect two VM via custom specific network. But its not working.

  • Which one is it?
  • If you have connection via LAN, then your Ubuntu machine should be working
  • Please use the original thread - please do not make duplicated postings - VMWare Workstation no DNS/Internet

:spiral_notepad: Also, your VMWare Workstation network configs still appear unfixed:

This thread is closed as duplicate.
Use the link in the previous reply for further help.

1 Like