[ILUG] Virtual DHCP network
Ben at Dismiz.com
Thu Dec 30 13:23:31 GMT 2010
You'll need to setup NATing using IPTables (or equivelant) so that the
192.168.100.x network can talk to the 192.168.1.x network :)
On 30 December 2010 10:44, David Pintor <painterman at gmail.com> wrote:
> Thanks to everyone for your comments, that was very helpful.
> I finally understood a couple of things and I got it *almost* working.
> I'm using Virtualbox, have one node with two interfaces (one internal, one
> bridged) and another one with one internal only.
> So the two boxes can see/ping each other through the internal network
> (192.168.100.x) and the main one can browse outside using the home router.
> I just need to make the client be able to look outside too, through the main
> one, so I presume i need to configure the routing table so all the traffic
> going to the main node is redirected to the interface that can access the
> Thanks again,
> On 27 December 2010 22:18, Ben Chapman <Ben at dismiz.com> wrote:
>> One option you have is to create a tunnel for all of the machines to
>> go to, then you can use one of the machines as a DHCP server, but
>> you'd need to setup a NAT on your machine (dom0).
>> On 25 December 2010 18:14, David Pintor <painterman at gmail.com> wrote:
>> > Hi,
>> > I'm trying to configure a DHCP server in a Fedora virtual box that will
>> > provide ip addresses to other virtual boxes, so far with no success.
>> > These are the steps that i'm following (more or less), if anyone can put
>> > in the right direction or send me a good link to do this that would be
>> > great. Been googling for 3 days, but no joy...
>> > - Basically, the DHCP server gets the IP "bridged" from the host, so it
>> > be a 192.168.1.x, same range that the host.
>> > - What I want to do (or I think i need to do) is put my virtual network
>> in a
>> > different IP range (ie, 192.168.100.x), so it doesnt interfere with the
>> > of pc's in the house.
>> > - So I thought i might just NAT the address from the host and not bridge
>> > And then i get a 10.0.2.x IP in my virtual box, which can see the
>> > (cool). The ideal would be to have a static IP here (as it's going to be
>> > dhcp server), something like 10.0.2.1 would be the ideal. However when I
>> > change the ip address, the box can't see the internet anymore (ping to
>> > google fails).
>> > - I've tried also creating another interface (tun0) on the top of eth0
>> > as soon as the Ip changes, no internet acces either...
>> > Hope this makes sense... I think it might be some problem with the
>> > table, but not sure. I am unfortunately quite a newby in network stuff
>> > all this seems like a highly complex task to do, even though it might be
>> > straight forward enough... Any tips are welcome. I might have forgotten
>> > post important information too - if so please ask, i didnt want to make
>> > email too long.
>> > Thanks in advance and happy christmas to everyone!!
>> > David
>> > --
>> > Irish Linux Users' Group mailing list
>> > About this list : http://mail.linux.ie/mailman/listinfo/ilug
>> > Who we are : http://www.linux.ie/
>> > Where we are : http://www.linux.ie/map/
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/
More information about the ILUG