Thanks to my friend Mr Vaibhav Tiwari who helped me understand VMware workstation product as a whole, and it is really good for performing labs with limited resources, if not all but most of the labs can be covered with it.
Lets start simple, unlike ESXi, it has three types of pre-defined network types (Host Only, Nat and Bridged).Host-Only : Machines connected to a host only network can only communicate to VMs connected same private network and host (machine on which VMware Workstation is installed).
NAT (Network Address Translation) network: NAT gives a virtual machine access to network resources using the host computer's IP address.
Bridged : In this network type virtual machine speaks to the network available on physical network card with the IP assigned to VM itself. So host and guest OS has different IP addresses.
VLAN is a way to keep traffic separate from one network to another and broadcast is limited to VLAN itself. As we can not do VLAN in workstation we can not restrict the layer 2 broadcast domain. But as its a lab environment we can overlook this fact and use it to our advantage.
As we do not have VLAN available, we cant use vlan ids on our network but for segregation. For DC networking topology sake will use same IP schema as we have used in my home lab step by step part 3-networking post.
As we created separate port groups for each network, we would not be doing that in VMware workstation. We will use default Host only network available with workstation for passing traffic for these IP subnets. As we will not use DHCP here you can uncheck use local DHCP option.
Open VMware workstation>>click on edit and select virtual network editor.
Select host only network and uncheck local DHCP service check box.
We don't need anything else here, now we are ready to deploy our CSR1000v router for routing traffic between these IP subnets.
Click on open virtual machine to import OVF or if you have ISO available use create a new virtual machine option.
In the virtual machine wizard you need to make sure you are only selecting same host only network for all interfaces.
In total we need eight interfaces on this router, 7 for the IP schema we have for nested environment and one for connecting our environment to internet. We will add 7 interfaces which should be connected to host-only network. For internet connectivity we add one adaptor to bridged network that will be 8th adaptor.
Edit the settings of the router VM and add additional interface, you screen should look like the image below. I have connected all seven interfaces to Custom (VMnet1) network.
Now before you start testing ping to these interfaces from your base machine, which should work, you need to do a final step which is to ping your machine IP from each interface of the virtual router.
Not sure how to setup the VMware VMnet1 interfaces
ReplyDeleteDear BlinkyBill, When you install VMware workstation VMnet1 will be by default created in virtual network editor, on the router VM just add required number of NICs and connect them to VMnet1 network as I have shown in screenshots. Incase you do not have vmnet1 in virtual network editor then look for the vmnet which is host only and attach nics to that network. I hope I was able to answer your query.
DeleteHello and Thank you for this great post.
ReplyDeleteI have a question. Do I need some sort of license for the CSR-1000V (OVA)?
I just downloaded it from the link you provided and I created a new vm from this file. However I noticed that the packers are not switched among the interfaces. Laptop ---Bridge-- >Router---Host only--->ESXi (mgmt 1611). I saw that packets from the laptop are not leaving from the output interface which is facing ESXImgmt ,in order to configure the ESXi.
Thank you in advance.
Nick
Hi Nick,
DeleteI am glad you liked the content, and thank you for appreciating.
About the question.
This image do not need additional license for basic functions such as routing and switching. Now what it seems you might have missed one interface on the VM which is connected in bridged mode. If possible share screenshot of your VM nics from VM settings and output of show ip int brief command.
Quick note for anyone trying to accomplish this lab in Workstation. It will work only for the segment/overlay play. VMs can talk among each other on different segment etc. However you will not be able to connect T0 router as Vmware workstation doesn't support VLANs, and that is a requirement of a VLAN segment to specify specific VLAN, once you put anything in there you won't be able to communicate between T0 Interface IP and physical network... Unless Praduman tried it and can share a trick to make it work..
ReplyDeleteHi Sergey
DeleteI am running NSXT in my home lab on VMware workstation. The way I have architected is
A) I designed PVLAN's and overlay to run inside VMware Workstation
B) I am using PFSENSE of physical routers. T0 forwards the traffic to PFSENSE
I have main pfsense which is connected to internet and a LAN i.e. 10.10.10.1
I have managment pfsense for which WAN IP is 10.10.10.10 and it is pointing to main pfsense (LAN interface) as DG
On the same managment pfsense I have LAN interface which is 10.10.20.1. This is the default gateway for the vSphere components like vSphere / NSXT and others.
Now when you now deploy EDGE, choose the external interface same as managment pfsense WAN network = main pfsense LAN network. This way tier 0 will have an external router (main pfsense) to send the traffic.
T0 and managment pfsense will be sending the traffic to main pfsense. Main pfsense will do the routing and provide access to internet too.
PFSENSE supports VLAN too. Hope this helps