Page 1 of 1

Win 7 Host, Linux Ubuntu guest, DHCP server

Posted: 27. Nov 2013, 02:34
by Dedmytas
Hello all,
First of all, I am sorry if I am repeating other users, I did search and Google, but now I am just confused.

I am using VirtualBox v4.3.2r90405, my host OS is Windows 7 64 bit, I have 8 GB of ram and my Linux Ubuntu 13.10 guest OS has 512 MB of RAM assigned to it.

I need to set up a DHCP server configuration and a DHCP relay.

I currently have 2 Virtual Machines:

1) on my DHCP Server VM I've set up isc-dhcp-server
2) my client (not relay) VM

Both of the VMs' network mode is set to NAT.

In the /etc/dhcp/dhcpd.conf file these are the only changes I've made:

Code: Select all

subnet 10.0.2.0 netmask 255.255.255.0{
range 10.0.2.10 10.0.2.15;
option domain-name-servers 10.0.2.1, 8.8.4.4;
option routers 10.0.2.1;
option broadcast-address 10.0.2.255
default-lease-time 600;
max-lease-time 7200
}
Now, I have restarted the VMs.

I check the status of isc-dhcp-server, but it tells me that it doesn't know any jobs.
I check ifconfig -a, inet addr:10.0.2.15

On my client VM, same inet addr.

Sorry, I've been at this for some time now, what am I doing wrong? I've probably set the VMs network config wrong, altho double configs confuse me even more.

Thank you in advance and for your patience.

Re: Win 7 Host, Linux Ubuntu guest, DHCP server

Posted: 27. Nov 2013, 02:57
by Perryg
Put both in intnet. VBoxNAT will not talk to the intnet.

Re: Win 7 Host, Linux Ubuntu guest, DHCP server

Posted: 27. Nov 2013, 21:06
by Dedmytas
Thank you for your reply.

With a clearer head today, all is done and working.

Now I must set up a relay, so gonna try to do that now.

EDIT:

I managed to get everything up and running.

Re: Win 7 Host, Linux Ubuntu guest, DHCP server

Posted: 2. Dec 2013, 12:21
by Dedmytas
Hello again,

I have a VM with MikroTik RouterOS installed and I need to export the configuration file from the VM to my computer. I've been searching how to do this, but it isn't clear to me.

Could anyone help? I tried exporting, but apparently there's no way to specify a folder location? Also I've read about doing it via SSH, but, again, doesn't seem possible if you can't specify where the file is exactly?

Thank you in advance.

EDIT:

Okay, apparently I found a program called Winbox (which is also Mikrotik's) and you can basically drag-n-drop the file.

All is well. :)