Skip to content

Instantly share code, notes, and snippets.

@jimbo8098
Created September 2, 2020 10:17
Show Gist options
  • Save jimbo8098/f8384cf61486b5667b4ea57c4c79226b to your computer and use it in GitHub Desktop.
Save jimbo8098/f8384cf61486b5667b4ea57c4c79226b to your computer and use it in GitHub Desktop.
Creating a Hyper-V Test Network
  1. Enable Hyper-V in Windows Features
  2. Grab the server ISO, e.g. https://ubuntu.com/download/server
  3. Set up a new switch in Hyper-V with Internal type
  4. Set up the host OS' network for the new virtual switch (which should appear as a network card on the OS. Set the IP to 10.0.1.1 and the subnet as 255.0.0.0. Leave the gatway blank.
  5. Set up the gues OSes: 5a. Log into the OS then set the network up. If you are using netplan edit /etc/netplan/ file as follows:
    eth1:
      dhcp4: no
      addresses: [10.0.1.5/24]
    
    5b. sudo netplan apply
  6. Check network connectivity between the guests and host.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment