LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2013, 03:48 PM   #1
daugavpils
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Setting up Ubuntu as vlan router for vsphere homelab


Here is my homelab that I will refer to : http://tinypic.com/r/2zh4cj9/5
I was silly enough not to do my homework properly and chose wrong switch for my homelab. The switch I have got (HP Procurve 1810-8G) has VLAN tagging option for ports, but no VLAN routing. Before I go and buy something that does it ( like Cisco SG300) I would like to see if I can use existing linux server for this purpose. As you see, the lab consists of three esx hosts and uses vDS. I would like to use VLANs for VMs and VMkernel interfaces.
Would it be possible to use Ubuntu server as a VLAN router in my case? This server has a single interface only.
My understanding is that I could assign vlan interfaces to a physical interface on Ubuntu server and enable packet forwarding. Then for example, I could place VMs in VLAN200 and set gateway for them to be 10.100.200.1. This would let VMs to be encapsulated in VLAN200 and access internet at the same time.
At the moment everything is running in flat 192.168.0.0/24 network and naturally things get messed up - one example is that packets from dhcp Windows VMs, Autodeploy DHCP and home ADSL router DHCP are in the same network.
I suspect I am missing something here. For one thing, I cannot ping virtual interface from VM if I place them in the same subnet...
 
Old 09-23-2013, 03:33 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,894

Rep: Reputation: 164Reputation: 164
It should be working. Each ESX has a VLAN Id and a subnet. Ubuntu server do routing.
Does Ubuntu server receive ping request from ESX?
 
  


Reply

Tags
esxi, lab, routing, vlan, vsphere


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Ubuntu Server 12.04 on a Linksys Router nine9nine Linux - Server 10 08-16-2012 03:46 PM
Ubuntu server 11.4 as a vlan router hewittrj Linux - Server 4 04-19-2012 02:48 AM
DHCP Config for VLAN's using 1NIC and non VLAN router. scottgutman Linux - Networking 1 07-22-2009 02:41 AM
Setting up ssh for ubuntu behind a router ThirtySixBelow Linux - Networking 1 07-20-2007 12:35 AM
VLAN configuration - native VLAN and setting PVID kumarwaiting Linux - Networking 0 07-24-2006 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration