This will be a series of posts in which I describe how I have put together my Home Lab ESXi server.
Part 1 – Storage
4x NICs in the server allow the creation of multiple, isolated networks via VLANs. One of the two integrated NICs provides vPro access. This NIC will not be available for use with ESXi as no driver is provided. See my earlier post on how it can be enabled.
Network Setup Overview:
- The Cisco switch is set to L3 mode, enabling VLAN routing. An IP address is assigned to the switch on the physical network.
- A VLAN is created and set as tagged on the port connected to the server.
- An IP interface is created on the switch for the VLAN.
A static route and rules are configured on the physical router to allow the VM network to connect to the internet.UPDATE 20/11/14: I have changed this by setting up the third network interface on the router with the same VLAN created on the switch. The port this interface is connected to will act as a trunk port, allowing me to choose which VLANs will have access to the internet. This also allows the ability for the router to provide a DHCP server for the VLAN.
- A static route is created on my workstation to the VM network. This allows my PC to access the VM network via the Cisco switch rather than the router. This is preferred as the network ports on my router are only 100Mbit and this traffic doesn’t need to go via the router anyway.
Cisco SG300 Configuration
Login to the web interface of the switch
Enable L3 Mode:
- Go to Administration – System Settings and set the System Mode to L3. This reboots the switch and resets it to factory defaults, so don’t bother setting anything else up first!
Create a VLAN and assign it to a port:
- Go to VLAN Management – VLAN Settings. Click Add. Enter a VLAN ID and a name, then click Apply.
- Click on Port to VLAN. Select the VLAN ID and click Go.
- Select Tagged for the port which is connected to the server and click Apply.
Create an IP interface for the VLAN:
- Go to IP Configuration – IPv4 Interface
- Click Add.
- Select the VLAN ID and Static IP Address.
- Enter the IP address and subnet mask for the interface, then click Apply.
Workstation Configuration (Windows)
Add a static route to the VM Network:
- Open command prompt as administrator.
- Enter: route -p add <VM Network> mask <VM Network Mask> <Cisco Switch IP Address>
The -p switch makes the route permanent, otherwise it is removed on reboot.
ESXi network setup will be covered in a later post.
Up next – Installing ESXi.