How to Configure LAN Segments in VMware Workstation Pro

OnlineComputerTips
23 Mar 202212:08

Summary

TLDRThis instructional video offers a step-by-step guide on configuring LAN segments in VMware Workstation for isolating virtual machines on a private network. It explains the difference between LAN segments and host-only networks, and demonstrates creating a LAN segment named 'private' with a specific subnet. The tutorial also covers assigning static IP addresses to VMs and setting up internet connectivity through a Windows 11 Pro VM acting as a gateway, using 8.8.8.8 as the DNS server. By the end, viewers learn how to ensure VMs can communicate within the LAN segment and access the internet.

Takeaways

  • πŸ“š The video discusses VMware Workstation's LAN segments, which are used to isolate virtual machines on a private network.
  • πŸ”’ LAN segments create a virtual switch for VMs, keeping them private and inaccessible from the host via the network, but still controllable via the console.
  • 🌐 Unlike host-only networks, LAN segments do not provide DHCP services and require manual IP addressing for VMs to communicate with each other.
  • 🏭 The video demonstrates creating a LAN segment named 'private' with a specific subnet for three VMs: Windows 11 Pro, Windows 11 Home, and another Windows 10 Pro.
  • πŸ”„ The Windows 11 Pro VM is configured as a gateway for the other two VMs to access the internet, sharing its internet connection.
  • πŸ› οΈ Manual IP addresses are assigned to each VM within the LAN segment to establish communication between them without needing a gateway or DNS at first.
  • πŸ”„ After setting up the LAN segment, the video shows how to check the IP addresses and verify communication between the VMs using ping.
  • 🌐 For internet connectivity, a secondary network adapter is added to the Windows 11 Pro VM, and network sharing is configured to allow other VMs to access the internet through it.
  • πŸ›‚ The video guides through changing the IP address of the shared network adapter and updating the gateway and DNS settings on the other VMs to use the Windows 11 Pro as their internet gateway.
  • πŸ“ The final step includes verifying internet connectivity by pinging a DNS server and an external website like Google, ensuring the setup is successful.
  • πŸ‘ The video concludes by summarizing the steps to set up a LAN segment, assign static IP addresses, and configure network sharing for internet access.

Q & A

  • What is a LAN segment in VMware Workstation?

    -A LAN segment in VMware Workstation is a way to isolate virtual machines on their own network, similar to creating a virtual switch that keeps the VMs private and without internet access.

  • How does a LAN segment differ from a host-only network?

    -A host-only network is a private network shared with the host and provides DHCP services for addressing, allowing the host and VMs to communicate and access the internet. A LAN segment, on the other hand, is a private network shared only among VMs, does not provide DHCP services, and requires manual IP addressing.

  • What is the main purpose of using a LAN segment?

    -The main purpose of using a LAN segment is to keep virtual machines private for testing or isolation purposes, without allowing them access to the host network or the internet.

  • What steps are involved in creating a LAN segment in VMware Workstation?

    -To create a LAN segment, go to the network adapter settings of each VM, change the adapter type to LAN segment, add a new LAN segment, name it, and assign it to the VMs. Then, manually configure IP addresses for each VM on the LAN segment.

  • Why is it necessary to manually assign IP addresses on a LAN segment?

    -It is necessary to manually assign IP addresses on a LAN segment because LAN segments do not provide DHCP services for automatic IP address assignment.

  • How can you share internet connectivity among VMs on a LAN segment?

    -To share internet connectivity, add a secondary network adapter to one of the VMs (e.g., Windows 11 Pro) and configure it for NAT. Enable internet connection sharing on this adapter, set it as the gateway for the other VMs, and use a DNS server like 8.8.8.8 for internet access.

  • What IP address range is used in the example for the LAN segment?

    -The IP address range used in the example for the LAN segment is 192.168.10.0/24.

  • What are the specific IP addresses assigned to the VMs in the example?

    -In the example, the specific IP addresses assigned are: Windows 11 Pro: 192.168.10.101, Windows 11 Home: 192.168.10.102, and Windows 10 Pro: 192.168.10.103.

  • How do you verify that the VMs on the LAN segment can communicate with each other?

    -You can verify that the VMs on the LAN segment can communicate with each other by using the ping command to check connectivity between the assigned IP addresses of the VMs.

  • What should be done if the VMs on the LAN segment need to access the internet through a specific VM?

    -If the VMs need to access the internet through a specific VM, configure that VM with a secondary network adapter for NAT, enable internet connection sharing, and set the gateway of the other VMs to the IP address of the sharing VM's LAN segment adapter.

Outlines

00:00

πŸ“Ί Introduction to VMware Workstation LAN Segments

This video discusses VMware Workstation LAN segments, explaining their purpose and how to configure them. A LAN segment isolates virtual machines on their own network, similar to a virtual switch, preventing internet access and host network interaction. It's useful for testing and isolation. Unlike 'host-only' networks that use DHCP and connect the host and VMs, LAN segments require manual IP configuration. The video will demonstrate creating a LAN segment called 'private' with a specific subnet and three VMs assigned different IP addresses. Additionally, it will show how to configure internet connectivity through one VM.

05:18

πŸ–₯️ Configuring LAN Segments and Assigning IP Addresses

The process of configuring LAN segments begins with changing network adapter settings of three VMs (Windows 11 Pro, Windows 10 Pro, and Windows 11 Home) to the new LAN segment 'private'. Each VM is then assigned a manual IP address within the 192.168.10.0/24 subnet. The video shows step-by-step instructions to assign IP addresses to ensure the VMs can communicate with each other while remaining isolated from the internet.

10:20

🌐 Setting Up Internet Gateway for LAN Segment

The video further explains how to set up an internet gateway for the LAN segment using Windows 11 Pro. This involves adding a secondary network adapter to the VM, enabling internet sharing, and configuring other VMs to use Windows 11 Pro as the gateway. The detailed steps include setting IP addresses, DNS server settings, and ensuring all VMs can ping each other and access the internet via the gateway.

βœ… Verifying Connectivity and Final Configuration

Finally, the video demonstrates verifying the LAN segment setup by pinging Google and the other VMs. The LAN segment is now fully functional, with one VM acting as the internet gateway for the others. The summary reiterates the steps to create a LAN segment, assign static IP addresses, and ensure network connectivity and internet access. Viewers are encouraged to subscribe for more tutorials.

Mindmap

Keywords

πŸ’‘LAN Segment

A LAN segment is a way to isolate virtual machines on their own network, akin to a virtual switch that keeps them private and disconnected from the host's network and the internet. This setup is useful for testing or isolation purposes, as explained in the video where multiple VMs are configured to communicate only within this isolated network.

πŸ’‘Host-only Network

A host-only network is a private network shared with the host computer and connects VMs to the host via a host-only adapter using DHCP for IP addressing. Unlike LAN segments, host-only networks allow VMs to communicate with the host and have internet access. The video contrasts this with LAN segments to highlight the different levels of isolation and connectivity.

πŸ’‘DHCP

Dynamic Host Configuration Protocol (DHCP) is a network management protocol used to automate the process of configuring devices on IP networks. In the video, it is mentioned that host-only networks use DHCP for addressing, whereas LAN segments require manual IP configuration as they do not provide DHCP services.

πŸ’‘Virtual Machine (VM)

A virtual machine is a software emulation of a physical computer. In the video, several VMs, including Windows 10 Pro and Windows 11 Home and Pro, are set up and configured within a LAN segment to illustrate network isolation and connectivity configurations.

πŸ’‘Network Adapter

A network adapter is a hardware component or software interface that connects a computer to a network. The video demonstrates changing the network adapter settings of VMs to connect them to a LAN segment, thus isolating them from the host network.

πŸ’‘Static IP Address

A static IP address is a manually assigned IP address that does not change. The video shows how to assign static IP addresses to VMs in a LAN segment to enable communication between them, since DHCP is not used in this scenario.

πŸ’‘Gateway

A gateway is a network point that acts as an entrance to another network. In the video, the Windows 11 Pro VM is configured as a gateway for other VMs to access the internet through its network connection, demonstrating how to set up a shared internet connection within a LAN segment.

πŸ’‘DNS Server

A DNS server translates domain names into IP addresses, making it possible for users to access websites using domain names instead of IP addresses. The video sets the Google DNS server (8.8.8.8) for the VMs to resolve domain names once they are configured to access the internet through the gateway VM.

πŸ’‘Ping

Ping is a network utility used to test the reachability of a host on an IP network and measure the round-trip time for messages sent to the host. In the video, the ping command is used to verify that the VMs can communicate with each other within the LAN segment and access external networks through the gateway VM.

πŸ’‘Internet Connection Sharing

Internet Connection Sharing (ICS) allows one device to share its internet connection with other devices on a local network. The video demonstrates how to enable ICS on the Windows 11 Pro VM so that other VMs in the LAN segment can access the internet through it, showcasing a practical use case for configuring a shared network environment.

Highlights

Introduction to VMware Workstation LAN segments as a method to isolate virtual machines on a private network.

Explanation of LAN segments as virtual switches that do not provide internet access and are not accessible from the host machine's network.

Comparison of LAN segments and host-only networks, highlighting differences in network accessibility and configuration.

Detailed steps for creating a LAN segment named 'private' with a subnet of 192.168.10.0/24.

Description of setting up three VMs with specific IP addresses on the LAN segment: Windows 11 Pro (192.168.10.101), Windows 11 Home (192.168.10.102), and Windows 10 Pro (192.168.10.103).

Configuration of manual IP addresses for each VM to enable communication within the LAN segment.

Verification of network connectivity between the VMs by using the ping command.

Demonstration of configuring a secondary network adapter on Windows 11 Pro to share internet connectivity with other VMs.

Explanation of how to set up the Windows 11 Pro VM as a gateway for internet access for the other VMs.

Instructions on changing the IP address configuration for internet sharing on Windows 11 Pro, including setting a specific gateway address.

Final setup confirmation, including the configuration of a Google DNS server (8.8.8.8) for internet access.

Validation of internet connectivity by pinging external servers from the VMs.

Summary of the LAN segment setup process, including key steps like creating the segment, assigning IP addresses, and configuring network sharing.

Emphasis on the importance of using static IP addresses and a chosen subnet for consistent network configuration.

Encouragement to subscribe for more tutorials and additional setup tips.

Transcripts

play00:00

[Music]

play00:06

hi in this video we're going to talk

play00:07

about vmware workstation

play00:09

lan segments and then we're going to

play00:10

show you how to configure those

play00:13

so

play00:14

a lan segment is a way to isolate your

play00:16

virtual machines on their own

play00:19

network kind of like making a virtual

play00:20

switch and having them run just behind

play00:22

that switch

play00:23

and so they don't have internet access

play00:25

they can't be accessed by the host via

play00:27

the network of course you get access

play00:28

them via the console so it's just a way

play00:31

to kind of keep them private if you want

play00:32

to do some testing or isolation that

play00:34

kind of thing

play00:35

so it's a little bit different from host

play00:37

only and a little bit similar so host

play00:40

only is a private network shared with

play00:41

the host and connects the pc

play00:45

via the host only adapter and uses dhcp

play00:47

for addressing so that way you could

play00:48

have

play00:49

your host talking to a vm

play00:51

and kind of keeping it separate or maybe

play00:53

two vms and just kind of running that a

play00:56

little network within your host and so

play00:58

you'll still have internet access

play01:00

so like i said you have more than one vm

play01:02

on a host only network and the network

play01:03

is completely contained within the host

play01:06

lan segment on the other hand so it's a

play01:07

private network shared by vms and

play01:10

created manually which is what we're

play01:11

going to do and commonly used for

play01:12

testing and does not provide dhcp

play01:14

services

play01:16

uh so think of it as a virtual switch so

play01:18

we're going to have to uh add our own

play01:21

our own ip addressing to the vms to

play01:24

allow them to communicate with each

play01:25

other

play01:27

so vm's on lan segment can't leave the

play01:29

network talk to the host or connect to

play01:31

the internet but we're going to show you

play01:33

how to

play01:34

get some network or actually internet

play01:35

connectivity if you need it so

play01:38

what we're going to do

play01:40

we're going to create a lan segment

play01:41

called private and this is the

play01:43

subnet we're going to use here so

play01:47

192.168.10.0.24 class c

play01:49

and so we're going to have three vms uh

play01:51

on this

play01:52

uh land segment a windows 10 pro or

play01:54

actually sorry windows 11 pro with

play01:57

10.101 windows 11 home 10.102 and

play01:59

windows 10 pro

play02:01

10.103

play02:03

and so at the end then we're going to

play02:04

configure some net networking on a

play02:06

secondary network adapter on the windows

play02:08

11 pro so we could share internet

play02:10

connectivity so that way

play02:12

uh the other two vms will be using this

play02:15

one as its internet connection you could

play02:17

do the nat

play02:19

connection on all three but if you want

play02:21

to just have it just going through one

play02:22

and that way the other two are kind of

play02:24

isolated except for using this one first

play02:26

internet connection you'll do that

play02:28

okay and so then

play02:30

when we do configure this internet

play02:31

connection

play02:32

since windows 11 pro this is 10.101. so

play02:36

10.101 will be the gateway for these two

play02:39

vms since they need a gateway address to

play02:41

get out to the internet so it's going to

play02:42

be going

play02:43

these two via this one to get out to the

play02:45

internet and then we'll just use a

play02:47

generic google 8.8.8.8 dns server

play02:51

okay so let's get started here

play02:53

okay so we have our windows 11 pro

play02:55

our windows 10

play02:57

pro and our windows 11 home so this one

play02:59

we're going to do first what we need to

play03:01

do first is go to its settings

play03:05

network adapter and change it from that

play03:07

which is the default to lan segment

play03:10

and click on lan segments and since we

play03:12

don't have one we're going to add our

play03:14

own here

play03:17

let's call this private

play03:22

click on add

play03:23

oops not add

play03:25

click on ok

play03:27

and now we get to get it from the drop

play03:28

down box here click on ok

play03:33

then you'll see it loses its internet

play03:35

connection down here so we're going to

play03:36

do this for the other one

play03:50

and then finally for this guy here

play04:02

okay so now we have all three m3 vms on

play04:04

our lan segment called private so now

play04:06

we're going to have to give them all

play04:09

a manual ip address here so we'll go to

play04:11

the network connection for this one

play04:13

properties

play04:17

ipv4

play04:21

and then we're going to do

play04:23

192.168.10.101

play04:35

101

play04:38

okay we don't need the uh

play04:40

don't need a gateway since we're not

play04:41

going out anywhere on this don't need

play04:43

dns so we'll click ok

play04:45

and click ok

play04:50

and do the same over here

play05:17

and finally over here

play05:30

okay so now we have our

play05:33

three vms 101 102 103. let's see if we

play05:36

could talk to each other so here's

play05:38

let's actually check the ip address

play05:40

first

play05:44

okay so we're at 101 let's see if we

play05:46

could ping the other two

play05:58

okay

play06:03

all right let's go over here real quick

play06:23

all right

play06:24

and finally this guy here

play06:43

okay so everybody's talking to each

play06:45

other now let's try uh

play06:53

this about right here

play06:57

nope

play06:58

try the dns over

play07:03

okay so we're talking to each other and

play07:05

we can't get out on the internet

play07:08

so we're looking good for our land

play07:09

segment so now what we want to do

play07:13

for this windows 11 pro we're going to

play07:15

make this our

play07:17

internet gateway so that way

play07:19

if you get on the internet and then

play07:20

these two will connect to it to get out

play07:22

to the

play07:23

internet via windows 11 pro so what we

play07:26

need to do for that

play07:28

go back to the settings

play07:32

add another network adapter

play07:37

make sure it's on that which is what we

play07:38

want the default there

play07:48

[Music]

play07:51

okay so now we have that we should have

play07:52

internet connectivity

play08:04

then we should be talking to our other

play08:05

guys still too

play08:11

okay so now what we want to do to share

play08:12

the internet connectivity is go to the

play08:14

properties of this

play08:16

go to the sharing tab

play08:18

check this box here

play08:21

click on ok

play08:24

this tells you it's going to change the

play08:25

ip address to

play08:27

192.168.137.1 just say yes for now

play08:30

because it's changing this

play08:31

address here

play08:34

so let's go back to here

play08:38

now we need to change this back to

play08:41

10.

play08:44

101

play08:45

to where it was before

play08:48

okay so we'll say okay to that okay to

play08:50

that

play08:52

so now we have a internet connection

play08:53

shared but

play08:54

on these other computers we need to go

play08:56

back here

play09:02

back to ipv4

play09:04

and we need to add the gateway of the

play09:06

windows 11 computer pro which is sharing

play09:08

the internet so that's

play09:16

101 so that way you could get out using

play09:18

that

play09:21

default gateway

play09:23

and then we'll put the

play09:25

8.8.8.8 dns server

play09:29

okay

play09:31

and then do the same on windows 11 home

play09:33

here

play09:37

you could have done this at the

play09:38

beginning if you didn't want to kind of

play09:40

have to come back i just wanted to show

play09:41

you how to separate

play09:49

and here the 8.8.8.8

play09:57

okay so now let's go back to our slide

play09:59

here

play10:01

we have the windows 11 pro

play10:03

actually all three of these are on the

play10:04

land segment with these addresses here

play10:07

windows 11 pro

play10:08

has a secondary network adapter to share

play10:11

with the internet

play10:12

and these other two computers for their

play10:15

gateway address are using the windows 11

play10:17

pro 101 address

play10:19

and the 8.8.8

play10:21

google dns server okay so let's go back

play10:24

here

play10:25

say yes to that

play10:29

and let's try to

play10:30

ping

play10:36

okay

play10:41

i can paint google

play10:44

and we could ping

play10:47

the 101.

play10:50

and

play10:52

let's go back here now do the same thing

play11:11

okay

play11:18

okay so now we have our

play11:20

land segment set up

play11:23

everybody talking to each other

play11:26

the network sharing on

play11:28

one windows 11 pro computer and these

play11:29

other two guys are talking and we just

play11:31

did the ping test so we could ping the

play11:33

dns server and we could ping google

play11:35

so everything is good to go so hopefully

play11:37

uh

play11:38

that made sense so like i said just set

play11:40

up your your lan segment give it a name

play11:43

um assign change the network adapter for

play11:45

each one of those to use that lan

play11:48

segment go and give it a static ip

play11:50

address and just you know pick a subnet

play11:51

you want to use and so on and then you

play11:54

should be good to go all right thanks

play11:56

for watching and be sure to subscribe

play11:59

[Music]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
VMwareLAN SegmentsNetwork IsolationInternet SharingVirtual SwitchPrivate NetworkIP AddressingWindows 11Windows 10VM Configuration