Hi,
I have a router and on the lan some client pcs and a small linux box that acts as virtual box host (centos 6.3).
I'd like the host run dhcp and dns server for its guests, but the router's dhcp interferes with this (I am using bridged networking for guests, they use eth0 as well).
Is there a way I can filter the dhcp traffic on the host somehow with current setup (guests dhcp request only goes to centos host not outside of it)? Since everyone uses eth0 I am not sure...
Or do I need to change to nat networking?
In this case will guests be using an other nic on the host, that has an IP in 'their' subnet? If it is the case it would be neat since I would be able to use all kind of filtering using iptables, and maybe dhcp would also work using that 'internal' nic...
Will guests still be able to access internet, or clients on lan be able to access guests? (ssh, rdp, anything)
I looked at some configurations but some of the stuff I am trying doesn't work so I figured I could ask first, which is the right way to go so I insist researching that one...
thanks
Networking question
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Networking question
Originally for testing domain configurations this actually would be what you should use to isolate the two DHCP servers and still be able to communicate properly.
Setup Windows Domain in VirtualBox
Setup Windows Domain in VirtualBox
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Networking question
I agree with Perry. You cannot run your own DHCP and DNS unless you put them in their own network (such as internal, as you suggest).
No, they will not have Internet access unless you install a router to route between the internal network and your physical network. I prefer to use a router in a vm rather than trying to route through the host OS (one interface in the internal network, one bridged to the physical network).
No, they will not have Internet access unless you install a router to route between the internal network and your physical network. I prefer to use a router in a vm rather than trying to route through the host OS (one interface in the internal network, one bridged to the physical network).
Bill