B4TECHIT courses
Module 5, Lab 10

Virtual network

Connect your machines, test and share a folder.

  • Intermediate
  • 1 h 15
  • Two VMs
Network cable plugged into a box

Make an RJ45 cable

You need: Cat 6 cable, two RJ45 plugs, a crimping tool and a tester.

T568A123456781 White-green2 Green3 White-orange4 Blue5 White-blue6 Orange7 White-brown8 BrownT568B123456781 White-orange2 Orange3 White-green4 Blue5 White-blue6 Green7 White-brown8 Brown

Connector seen from the front: gold contacts towards you, clip underneath. Pin 1 on the left.

  1. Cut the jacket over 3 cm, without damaging the wires.
  2. Untwist the pairs and line up the 8 wires in T568B order.
  3. Cut the wires straight, 1.5 cm from the jacket.
  4. Push them all the way into the RJ45, clip underneath: the jacket must go into the connector.
  5. Squeeze hard with the crimping tool.
  6. Do the same at the other end: B for a straight cable, A for a crossover cable.
  7. Plug both ends into the tester: lights 1 to 8 must come on in order.
Straight cable (B and B)End 1 (T568B)End 21122334455667788Crossover cable (B and A)End 1 (T568B)End 21122334455667788

A light stays off? A wire is not touching its contact: cut off the RJ45 and start again. For Gigabit, all 8 wires must work.

Review the standards in the Theory

NAT, bridged, internal network

Try it here

Change the mode and see who can talk.

In VirtualBox: Settings, Network, Attached to.

Reading an IP address

  • IP addressThe machine's number: 192.168.50.10
  • Mask/24: the first three numbers are the network.
  • GatewayThe door to the Internet, often the box.
  • DNSIt turns a name into an address.

Try it here

Windows commands

Try it here

On Linux: ip a, ping -c 4 1.1.1.1, tracepath 1.1.1.1.

Connect two VMs

  1. Both VMs on Internal Network, same name: cours.
  2. No DHCP: give the addresses 192.168.50.10 and 192.168.50.20, mask 255.255.255.0.
  3. Test: ping 192.168.50.20.

No reply? The Windows firewall often blocks ping. Enable the inbound rule “Echo Request - ICMPv4-In”. Do not turn off the whole firewall.

Share a folder

  1. Network profile: Private.
  2. Right-click the folder, Properties, Sharing.
  3. Choose the user and the Read permission.
  4. On the other VM: \\192.168.50.10\partage

Security: avoid “Everyone” with write access.

Find the problem

Try it here

Graded exercise out of 100

You need 80 to pass the lab.