LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-03-2014, 05:54 PM   #1
Tadaen
Member
 
Registered: Sep 2005
Distribution: Arch
Posts: 210

Rep: Reputation: 39
Debian as DHCP server.


Working on some networking basics in Virtual Box.

Server VM is Debian Wheezy with 2 nics. First is NAT to the outside acting as WAN for dhcp server. 2nd is set to an internal virtual network. I have the dhcp server working and it is assigning ip addresses.

Client VM is also Debian Wheezy. Single nic pointed at the internal virtual network. It is getting an ip from the dhcp server and negotiating.

The DHCP server is working. I do have network access between the server and the client. I do not have internet access on the client though. That is where I am lost. Some reading has led me to needing a proxy, I am trying to fiddle with squid but it's above my head so far. Is there an easier way?

Last edited by Tadaen; 06-03-2014 at 06:10 PM.
 
Old 06-03-2014, 10:02 PM   #2
G_A
LQ Newbie
 
Registered: Jun 2014
Posts: 29

Rep: Reputation: Disabled
Hi,
I'm not sure why are thinking of squid a the solution here. Unless you have not enclosed critical information for this issue, a proxy of any sort - is not what you're missing.

As for VirtualBox(VB) and DHCP - the host (where you have installed VB software), should run a DHCP server by default which is provided with VB, AFAIK, and, any guest you install, as long as its NIC is set to "NAT", should obtain an address from the host, and get a WWW access.
I understand you have installed your own DHCP server on the host, which may not be needed at all.
Can you try shutting down your DHCP server, removing the NIC from the guest (the VM), attaching a new NIC to it, choosing "NAT", and see what happens then ?
First and foremost, does the guest obtain an IP address ?
 
Old 06-03-2014, 11:08 PM   #3
Tadaen
Member
 
Registered: Sep 2005
Distribution: Arch
Posts: 210

Original Poster
Rep: Reputation: 39
No. No dhcp on the host. I'm working with an entirely internal virtualized network. The server is a virtual machine. It's network adapter 1 is the wan, Nat mode currently coming in. I have been updating, installing software and such on the server vm. It has internet. The 2nd network adapter is the lan port to a virtual internal network. The only other thing on that virtual internal network is the client. The virtual machine client gets an address and negotiates with the server. It can ping the server and shows an IP in the range I have specified as available for dhcp on the server. The client has internet when set to nat mode but nat isn't being dhcp served from my server vm thereby being pointless.

It's definitley something between the wan and the lan but I don't know where to look. Someone on another forum suggested ip forwarding and iptables but I'm having zero success with either so far.
 
Old 06-04-2014, 06:05 AM   #4
G_A
LQ Newbie
 
Registered: Jun 2014
Posts: 29

Rep: Reputation: Disabled
From the "router" machine (the one with two NIC)Paste the output of
iptables -L -n
and
ifconfig

from the client machine paste the output of
ifconfig
 
Old 06-04-2014, 07:05 AM   #5
tombelcher7
Member
 
Registered: Feb 2008
Location: Surrey
Distribution: Debian
Posts: 214

Rep: Reputation: 5
I have to admit I have only skim read this (not in full) --If you are simply trying to get Virtual Box guests to talk to each other then use VboxManage.exe (Windows) and there is a command which allows you to set up a VBOX DHCP service with a user specified DHCP Scope. Once a DHCP Server is set up with a name such as 'vboxdhcp' you can then set the guest network adapter (or at least just one of them) to use internal networking selecting 'vboxdhcp'. (Some configuration in the guest may be necessary if guest is assigned more than one NIC)

http://www.virtualbox.org/manual/ch0...age-dhcpserver

Though I may have misunderstood the request..............
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 7 DHCP Server installation problem meisrom Linux - Server 4 06-05-2013 06:23 AM
dhcp server and ntp server help required (Debian) Raffles666 Linux - Networking 4 04-27-2009 08:00 AM
Debian DHCP Server initialdrifteg6 Linux - Networking 7 03-04-2008 06:26 PM
Debian: Can't reach internet with through DHCP-Server vsoemlio Linux - Networking 6 05-18-2007 11:15 AM
Problems concerning DHCP-server on my Debian 3.0r2 server spaceuser Linux - Networking 9 10-17-2004 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration