Setting the network address 

If you have downloaded VMware Workstation, follow these steps:

  1. Go to Edit | Virtual Network Editor.
  2. Select VMnet8 and, if necessary, click on Change Settings to make changes. Make sure that the subnet IP for VMnet8 is set to 192.168.142.0.
If the VMnet8 network is not set to 192.168.142.0, you will not be able to access the internet from inside the VM and, hence, the exercises will not work.

If you have downloaded VMware Player, the GUI does not give you an option to modify the VMnet8 network address:

  1. After installation, open a command-line tool such as Windows CMD and type in ipconfig /all and you should see VMnet8:
Ethernet adapter VMware Network Adapter VMnet8: 

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8 Physical Address. . . . . . . . . : 00-50-56-C0-00-08
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1d5f:2196:60f9:6219%23(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.191.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 905990230
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-24-7C-F2-70-98-FA-9B-0E-0E-F3
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

In the preceding, the VMnet8 is set to 192.168.191.1. The IP address may be different for you.

  1. Open Windows CMD as an administrator (important) by pressing Win-R. Type cmd and hit Ctrl + Shift + Enter.
  2. Follow these commands to set the VMnet8 subnet address to 192.168.142.0:
C:> cd "Program Files (x86)VMwareVMware Player" 
C:> vnetlib.exe -- stop dhcp
C:> vnetlib.exe -- stop nat

C:> cd ProgramDataVMware
C:> copy vmnetdhcp.conf vmnetdhcp.conf.pre
C:> copy vmnetnat.conf vmnetnat.conf.pre

C:>
cd "Program Files (x86)VMwareVMware Player"
C:> vnetlib.exe -- set vnet vmnet8 mask 255.255.255.0
C:> vnetlib.exe -- set vnet vmnet8 addr 192.168.142.0
C:> vnetlib.exe -- add dhcp vmnet8
C:> vnetlib.exe -- add nat vmnet8
C:> vnetlib.exe -- update dhcp vmnet8
C:> vnetlib.exe -- update nat vmnet8
C:> vnetlib.exe -- update adapter vmnet8

C:> vnetlib.exe -- set vnet vmnet1 mask 255.255.255.0
C:> vnetlib.exe -- set vnet vmnet1 addr 192.168.136.0
C:> vnetlib.exe -- add dhcp vmnet1
C:> vnetlib.exe -- add nat vmnet1
C:> vnetlib.exe -- update dhcp vmnet1
C:> vnetlib.exe -- update nat vmnet1
C:> vnetlib.exe -- update adapter vmnet1

C:> vnetlib.exe -- start dhcp
C:> vnetlib.exe -- start nat
  1. Check ipconfig /all and you should see that the VMnet8 IP address is set to 192.168.142.1

Next, let's perform some finalization checks.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.143.4