cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1080
Views
0
Helpful
0
Replies

Inter VLAN access for ESXi host in Workstation using Router on a stick

Victor S
Level 1
Level 1

First of all, this is my first post in the community so forgive me if I fail to explain what my problem really is or how I actually want to solve it, I'll try to be as accurate as possible and thank you in advance for taking the time to try to help me.

 

So I've got a 2821 Router and a 3560 Switch sitting on my nightstand next to my computer and I'm trying to build a virtual home lab, this is what I have:

On my 2821, the interface conected to my switch has subinterfaces (gi0/1.10, gi0/1.20, gi0/1.90 and gi0/1.100)

The gi0/1.10 subinterface is for my vlan 10 (data network for my home physical devices)

The gi0/1.20 subinterface is for my vlan 20 (voice vlan since I have 2 7940 phones)

The gi0/1.90 subinterface is for management

The gi0/1.100 subinterface is for my virtual ESXi network, so I have the ESXi installed on my very computer (using Workstation)

So mi physical NIC on my computer has IP 192.168.10.6 (network 192.168.10.0 /24) and I want my ESXi and all it's VMs in the network 192.168.0.0 /24

On the Workstation, I have my ESXi attached to my physical NIC as a bridge connection, and if I change the ESXi IP to any IP in the 192.168.10.0 network it will work fine, but I want it to be in the 192.168.0.0 network.

From the book... in order to send traffic from multiple VLANs the link has to be a trunk. But if I set the port on my switch that is connecting to my computer as a trunk port, then my computer won't pick up any IP, and putting a static one won't do the trick either.

I've tried setting the native vlan on switchport 0/23 (which is the port connecting to my computer) to vlan 100, so that untagged traffic would go to VLAN 100, but that won't do the trick either.

I've tried configuring the VLANs on my actual NIC (on the win7  "change adapters settings" right click on the NIC>configure>VLANs) which splits up your NIC into how many VLANs yo specify, then assign an IP in the 192.168.0.0 network to the corresponding VLAN 100 NIC and still.. won't get connection to the network)

I'm able to ping from my computer (192.168.10.6 IP) to the subinterface 192.168.0.1 so the router on a stick seems to be ok.

When I go to the ESXi and change the management IP to an IP in the 192.168.0.0 network I'm not able to ping to it. In other words it's not actually connecting to the network. I don't really know where the problem's at, or if it's even a way to achieve this.

I've attached my router and switch config, as well as a drawing of my topology.

 

 

 

 

0 Replies 0