Page 1 of 1

Networking question

Posted: 2. Feb 2013, 15:45
by Endre
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

Re: Networking question

Posted: 2. Feb 2013, 16:38
by Perryg
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

Re: Networking question

Posted: 3. Feb 2013, 01:39
by BillG
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).