Cisco – Creating a bridged network in ESXi VSphere using VSphere client

cisconicvmware-esxivmware-vspherevswitch

I'm new to ESXi and i'm trying to configure a small server of guest machines, each running windows 7 starter.
my goal is to let the workers connect to the ESXi server, get a windows "computer" and be able to connect to the cisco switch from inside.
The server has 2 NICs, one connecting to the office network, and one connecting to a cisco switch and to a vpn network.
I need all the machines connect to the same NIC, the one that is connected to the cisco switch.

I've set up two standard switches. vSwitch0 is connecting the Management network to NIC0 (local network). vSwitch1 connect to VM Network, which the virtual machine is on.

now i try to reach the cisco VPN, and i can't reach it.
I guess i've set up something wrong (maybe i didn't bridge the NIC?) but i don't know that.

Here's a mapping of the network i've created:

                    local network (non-cisco router)
                              |
         ESXi Host            |
--------------------------    |
|------------            |    |
| manangment|----|       |    |
|   Network | vSwitch0   |    |
|------------    |       |    |
|                |-vmnic0|----|
|--------                |
| VM1---|                |
| VM2---|                |
| VM3---|---vSwitch1     |
| VM4---|       |        |
| VMx---|       |--vmnic1|----|
|--------                |    |
--------------------------    |
                              |
Cisco Switch                  | 
----------------              |
|              |--------------| 
----------------

EDIT: when i tried to start a VM at vSwitch1 to connect to the VPN alone (with vSphere client), i couldn't make it. the guest got an ip from the Cisco (the host identifies it well) but no ping or so.
I tried to move the guest to vSwitch0 and connect to the internet like a normal computer (vmnic0 is connected to local network and to a router), but could't access the web at all.
this is wierd, am i doing something wrong?

EDIT2: After some hours working on trying to set up internet connection (moving a VM to vSwitch0), i set up a static ip to the VM, and got internet connection (through the local network). Now i need to find a way to connect to the cisco switch.
If i'm not mistaken, the problem is that the cisco switch set up the ip address of the host (to be 192.168.0.254). but i need the VMs to get an ip address from the cisco (which is not possible, because he doens't know them). So now i need to find a way to let the VMs connect to the cisco with a "local" dhcp or so.

Anyone have an idea?

I'd appriciate any help.
Thanks.

Best Answer

You'll need a VM, with connections to both vSwitches, configured to route traffic between the two networks.

It can be any OS you want, so long as it can perform IP forwarding/routing duties between the two networks.

Depending on your particular setup, you may want it to do other things as well (firewall or NAT for example) but without knowing more about your networks/subnets and routes I can't provide much insight.

Related Topic