0

I am using Vmware workstation 15 on a laptop which is connected to Wifi network.

I am having Debian and Ubuntu instances running as virtual machines.

The host OS is having following IP

Connection-specific DNS Suffix . : xyz.cyd.com

Link-local IPv6 Address . . . . . : de80::706b:4222:6799:f404%23

IPv4 Address. . . . . . . . . . . : 10.1.1.31

Subnet Mask . . . . . . . . . . . : 255.255.224.0

Default Gateway . . . . . . . . . : 10.1.0.1

Now my vmware network settings are as in box below

enter image description here

Now on my virual machines the IP I am getting are in the range

debian@debian:~$ ip a

1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

inet 127.0.0.1/8 scope host lo

   valid_lft forever preferred_lft forever

inet6 ::1/128 scope host

   valid_lft forever preferred_lft forever

2: ens33: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000

link/ether 00:0c:29:6c:78:50 brd ff:ff:ff:ff:ff:ff

inet 192.168.20.132/24 brd 192.168.20.255 scope global dynamic noprefixroute ens33

   valid_lft 1304sec preferred_lft 1304sec

inet6 fe80::20c:29ff:fe6c:7850/64 scope link noprefixroute

   valid_lft forever preferred_lft forever

Where as I want them to come in range of host OS ,i.e. the Virtual machines get the IP from DHCP router of network.

There are multiple virtual machines I am having how do I achieve in all these virtual machines. Because I need to ssh into

other machine and if IP are not in same ranges I can not do an SSH from virtual machines to other machines on network.

I want IP of virtual machines to be in ranges 10.1.1.X which is also the IP address of host OS windows 10.

The purpose of doing all this is to be able to do an SSH from virtual machine to a machine on network in following fashion

virtual machine#ssh root@10.1.2.78:2222

How do I achieve this?

Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.