Can i create a route by MAC address to keep a machine limited to an ip address

Posted on 2011-03-14
Last Modified: 2012-05-11
I have a server hosting two virtual machines.  Each machine is assigned a static IP address in a different network and is routed to a separate firewall gateway. they both travel through a common virtual switch, and through a physical switch as well before the gateway.
  Since these are two different entities i am concerned that a user on network1 could find out the address of network2. Since they both use WAN access, they cannot remove the existing IP without losing their connection, but adding an ip could be an issue if via social hacking, sniffing or dumb luck, they discovered the other address range. In that case they would be able to add that IP range on their machine and browse to the other network. I realize they would likely have to crack a password to actually break in another machine, but if they are doing the first then they would likely do the second as well. So, if network1 is and network2 is for instance, can i use the computer MAC address on the machines in a route to block all traffic from one VM to the other VM. Or set up a route on each machine that automatically sent any traffic not on their correct network to the bit bucket.  What is the most effective way to limit the machines to their own networks?
Question by:timgil
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3

Expert Comment

ID: 35130901
If i understand your problem correctly, Access Control Lists are the best way to limit this.

Since your VMs are on different VLANs, you can implement this security on your Router by blocking communication from to and vice-versa.

What router are you using?


Author Comment

ID: 35131055
I have a fortinet 111c router, but my concern is that the packets would never go that far, if say the guy on network one set an additional IP address and gateway valid on the second network he could browse that network. the packets might only have to go as far as the first switch?  I dont know for sure about that, i am asking. As far as the ACL's go, They have administrator level access on each of their respective machines, I would not be able to set an ACL that they couldn't undo.

Accepted Solution

RKinsp earned 250 total points
ID: 35131256
Your physical switch could limit this if it has layer 2 ACL (which external users should not have access to), the problem is the Virtual Switch. If it is the regular vSwitch then you can't block the traffic from virtual machine A to virtual machine B.

What you would have to do is bridge the virtual nics to the physical instead of using a virtual switch so all traffic would have to go out to the physical switch. If it supports Layer 2 ACLs you could use that to block communication from MAC A to MAC B. It might not even be necessary since a lot of switches will not forward a packet to the interface it came from, but it would be a way to make sure.

Although this would stop some users, please note that it is possible to change MAC addresses on a virtual machine. You could use something more advanced for a virtual IPS (check out vcontroller on google).


Expert Comment

ID: 35151167
Thanks for the points!


Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are thinking of adopting cloud services, or just curious as to what ‘the cloud’ can offer then the leader according to Gartner for Infrastructure as a Service (IaaS) is Amazon Web Services (AWS).  When I started using AWS I was completely new…
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question