Ubuntu :: Setting Up DNS Server And DHCP?
Apr 22, 2010I'm kinda new to this. I've had my laptop dual booted with vista and Ubuntu for about a year. I'm just now starting to configure Ubuntu for a DNS and a DHCP Server.
View 2 RepliesI'm kinda new to this. I've had my laptop dual booted with vista and Ubuntu for about a year. I'm just now starting to configure Ubuntu for a DNS and a DHCP Server.
View 2 RepliesI'm interested in the possibility of setting up a sort of hotspot using my laptop that will act as both a DHCP and DNS server in the hopes of running a softroot on my Nook e-reader.
According to the instructions posted here: [URL] I need to use Windows 7 and a couple different applications. Windows 7 is not an option for me, as I have Ubuntu Netbook 10.10 installed and would like to keep it that way. Can anyone offer any clues as to what I would need to use?
I have a home Debian server running, and i would like to set it up as a gateway. I have 2 networkcards in it. So internet comes from the modem and on the other card i want to setup a dhcp server and it has to share the internet. But i want it also to connect to a vpn and share the internet of the vpn.. Is that possible?
View 4 Replies View RelatedI my office I have configure dhcp in my centos sever
eth0 for adsl-setup
eth1 for lan 172.16.0.4
I am using squid proxy server for internet access,
in my office all are using laptop through wifi , so i need to configure the browser proxy setting for accessing internet.
is there any way to setup automatically get the proxy setting as dhcp. I have tried transparent proxy but no success.
Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.
Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address. When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto vlan100
iface vlan100 inet static
[code]....
why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.
Back in April I set up a Ubuntu DHCP server and a multiple VLAN network [URL] to migrate our various servers, workstations, etc off the 192.168.1.1 /24 network that everything was on because we where running out of address space. I built out the new network and everything worked great except our AD server would never get an IP address from the DHCP server (static reservation) and even if I set the IP statically on the AD server it couldn't ping the gateway and noone could log in. After several attempts to resolve this, including bringing in outside help, we where never able to figure out what the problem was.
Now 6 months later I have time to revisit the issue without effecting the live network. I used Acronis and imaged the AD server last Friday, cloned it on to another box with the same hardware, and put it up on the new network that's been sitting unused for the last 6 months. Today when I statically set the IP on the AD server (which is what I want) it connects and I can ping it's gateway 192.168.1.1 and all the way across vlans to a test sales agent workstation at 192.168.8.xxx on vlan 800 but only if I statically assign the agents station an IP address.
When I try to get an IP address via DHCP it fails as destination unreachable. Nothing has changed in the last 6 months on the DHCP server but now it for some reason can't ping its default gateway 192.168.1.1. All of the config files are the same as they where left from the post linked above aside from the vlan id's used where changed from 1's to 100's (i.e. vlan 3 is now vlan 300) /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto vlan100
[code]....
why it can't reach the gateway, when I do a tcpdump I can see the DHCP requests come in on eth0 but the server never responds and I'm pretty sure its because it isn't "seeing" them since it thinks there isn't a network connection but I don't know how to trouble shoot to find out where the problem lies.
Currently I have my eth0 interface getting a DHCP address but at times the DHCP server will not be reachable. Sooo what I would like my server to do is if it cannot find a DHCP server assign a static address to eth0. Then start the DHCP service so it can then dish out some addresses.How can I do this? Surely it is possible
View 2 Replies View RelatedI have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices.My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server.One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network.
View 4 Replies View RelatedI am puzzled with trying to configure a linux (openSUSE) client to dhcp to eBox DHCP server. I am using dhclient to lease an IP address with dhclient eth0 -s 10.45.48.108 and get a response
openSUSE11232CL1 dhclient: DHCPDISCOVER on eth0 to 10.45.48.108 port 67 interval 4
openSUSE11232CL1 dhclient: DHCPOFFER from 10.45.48.108
openSUSE11232CL1 dhclient: DHCPREQUEST on eth0 to 10.45.48.108 port 67
openSUSE11232CL1 dhclient: send_packet: Network is unreachable
openSUSE11232CL1 dhclient: send_packet: please consult README file regarding broadcast address.
The server reports eBox141 dhcpd: DHCPDISCOVER from 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
eBox141 dhcpd: DHCPOFFER on 10.45.200.2 to 00:0c:29:3e:57:a3 (openSUSE11232CL1.domain.net) via eth0
I interpret this as the server receives the request and the client accepting it but the lease does not last long and the connection breaks. what this could be and why the connection breaks? Or my undestanding is totally wrong on how it works and should work? And BTW, where is that README file that's referenced in the message I receive on the client?
Due to me not remembering how my father set up the DHCP in my FreeBSD server (Files etc) i could not input the corrent info while i was installed Ubuntu 8.04 (LTS) server edition (32 bit). Could anyone be nice enough to tell me what i need to do, or what files to edit so i can access the internet from it?
View 9 Replies View RelatedThis dhcp server is configured with redhat enterprise edition. I found that logs are generating in the following path /var/log my doubt is how can i setup the logs generating for a specified day.
View 1 Replies View RelatedI tried to setting a static ip from dhcp, I changed lines in /etc/rc.d rc.inet1.conf as follow:
# Config information for eth0:
#IPADDR[0]=""
IPADDR[0]="192.168.18.7"
#NETMASK[0]=""
NETMASK[0]="255.255.255.0"
#USE_DHCP[0]="yes"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
and then I run "/etc/rc.d/rc.inet1 restart"
after that, can't access net, and couldn't ping the gateway[192.168.18.1], I have to change it back
I know there are tons of help guides out there for this, and I have looked at and tried them all. I am trying to do something really simple, and just can't seem to get it working. I have been trying on and off for the better part of a week now, with not much luck. What I am tyring to do is have a Ubuntu 10.10 server serve out DHCP addresses and be the DNS for the local network. The local network will have no internet access, so it only needs to know the names of the local server. My network setup is as follows:
1: Windows Vista web server
2: Ubuntu DHCP3 and BIND server to give IP's and resolve local names.
3: A bunch of tablet computers connected via dhcp to the network, that need to access the web server on the Windows machine.
I have DHCP working nicely, but it fails to propagate the hostnames to the tablet computers. Unfortunately I need this to work, as the tablets do not have the capability of having a 'hosts' file.I have tried just about every self-help guide I can find, and just can't seem to get this work. Everything seems to work fine except for the name resolution. Any help would be great, I don't have that much hair left to pull out!
I'm maintaining a very modest network at home, with OpenSUSE as OS on the server. I got the DHCP and routing working by following the instructions in the wiki. However, every time I run dhclient on the server/router, it appears my own DHCP server assigns an address to the internal network card despite the fact I specifically assigned it to be static using Yast. The situation resolves itself when I restart the network services with the command /etc/init.d/network restart. Otherwise no problem, but it also seems the internal network card gets a "new" IP from my server every time the external card requests one from the ISP. This is more of an issue.
View 5 Replies View RelatedI have tested several Linux Distros over the last weeks, and with all of them my DSL connection have been working out of the box (for intance Mandriva, Ubuntu, Mint). But it does not work on Dreamlinux, neither on Live CD or now where Dreamlinux is installed on my harddisk.
According to the guidelines provided by my Internet provider I need to use TCP/IP and activate DHCP. And make sure that PPPoE is not activated.
I see nowhere I can do this in Dreamlinux. In the controle panel i can run Wicd. Then I can chose to de-activate Wicd - this gives me an option of entering Adress, Networking mask, Gatway and Nameserver - for static ip it says - and this is the opposit of DHCP, right??
SO - what to do? Should I get a debian package or something? (Dreamlinux is using debian packages, as far as I could see)
My DHCP setting is disabled in fedora 12 . Previously i was using static IP address. I Want DHCP setting enable, any idea.
View 1 Replies View RelatedI bought an RTL8187L USB wireless adapter, and have had trouble getting it to work. I have managed to get it to work via manually configuringtime, but lost that configuration, and now it is once again not workingThe root issue appears to be (if I'm understanding correctly what I'm seeing) that when I connect, routes don't get setup properly, so when network manager (or WICD, which I've also tried) get to the DHCP step, my wireless router can't be reached by dhclient.
This is on Ubuntu 9.10, and I'm using the updated driver from realtek.com, btw, though the in-kernel driver was exhibiting the same behavior.So, two questions:- Is anyone familiar with this problem, and is there a fix available?- I believe I can work around it by setting up routes manually (e.g. with a post-connect script in WICD), but after staring at the "route" manpage, I'm not 100% sure of the commands. My router (a FIOS MI424WR) is my DHCP server, and is at 192.168.1.1, and route -n on a working PC (wired connection) gives:
Code:
dave@MinasTirith:~$ route -n
Kernel IP routing table
[code]....
In 11.3, if in "/etc/sysconfig/network/ifcfg-eth0" i set DHCLIENT_SET_DEFAULT_ROUTE="no" this seems to have no effect. If i start my box, the routing table has the "default route"-entry offered by a remote DHCP-Server. More Info: My Susebox has eth0 and eth1 and both network devices should use DHCP4. But from DHCP-offer on eth0 i want to use
* "offered IP-Adress for eth0"
* "offered NTP-Server"
* "offered Host-Name"
From DHCP-offer on the eth1 i want to use
* "offered IP-Adress for eth1"
* "offered DNS-Servers"
* "offered Default Route"
I set up a dhcp server in the lan and assigned static ips to two computers, computer A and B, according to their mac address. Everything was running fine. But when I turned off computer A, connected computer C to the network, and assigned computer A's static ip to computer C without changing dhcp setting. Computer C was able to access the internet. When I turned on computer A, dhcp couldn't assign an ip address to it, and computer C showed an error message of ip conflict and failed to use internet. I wonder if dhcp server is able to prevent other computer from using the same static ip that is already assigned to a computer according to its mac address.
View 5 Replies View RelatedOn a remote system, when all you have is the ssh CLI -
How do you find out the ip addresses for:the Gateway
the DHCP server
the DNS server
Don't need to make any changes.
Which commands will display this info?
I'm no expert on DHCP. My problem is that i have a CentOS 5.5 server on which i want to install a DHCP server. I have two NICs where eth0 has access to the internet and where eth1 should act as an DHCP server.
I have installed dhcpd and this is how my dhcpd.conf file looks like.
Code:
ifconfig looks like this
Code:
When i start dhcpd on eth1 i get no error messages but when i connect any devices to eth1 they don't get any IP. I cant find anything in any logs about devices trying to get an IP address. I dont have any firewall rules in iptables.
I'm trying to set up a PXE boot server on a PC running Slackware 13.0 using the default apps and info shipped with that Slackware version but to no avail...Carefully reading the Slackware 13.0 README_PXE I've put together this dhcpd.conf file:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
[code]....
I have come across this option given below in dhcpd.conf file for DHCP Server configuration. Can any body let me know what this option is all about.Code:option T150 code 150 = string;
View 2 Replies View RelatedI wanted to setup my server as a router/gateway just for educational purposes and also when it succeeded i will keep the gateway and place it on the front line right after my modem.
My current setup as it is now :
The GATEWAY/ROUTER will be doing the main work to act as a dhcp server and firewall.
Now my setup as it is now :
So now what i ment to do was :
Let the clients connect to the gateway via ETH1 and all the stuff being router to ETH0 which is the NIC that is connected to the internet.
But now i have two huge problems :
1. The DHCP configuration seems to be fine the client machines get their ip adresses and /etc/resolve.conf looks fine to. But somehow the GATEWAY/ROUTER wont let me use the specified external DNs server so i cant do anything on these machines.
2. The firewall script [url] at line 27 should be DROP but if i use this line of code the GATEWAY/ROUTER cannot use his dns server settings so when i try to browse the internet or ping a machine outside my local network it would came up with nothing.
\Actually i lost the login details of my server so im recovering it in rescue mode.what i want to ask here is if i restarted my server what i need to do in order to work as it was before.on my server samba and dhcp server is configured.will my client users can access there network if login page comes or i need to do something else such as restarting services or not.
View 1 Replies View RelatedI have a openSUSE10.2(X86-64) Linux DHCP Server in my environment. It has a lot of VM's and Desktop systems which get added continuously. Also, it has a lots of Static-IP entries.Part-IIssue:The DHCP Server stopped leasing the IP's somehow.Workaround:1. Stopped the dhcpd service. (service dhcpd stop)2. Navigated to /var/lib/dhcp/db folder.3. Deleted the "dhcpd.leases" and "dhcpd.leases~" files.4. Recreated the "dhcpd.leases" file. (touch dhcpd.leases)5. Started the dhcpd service. (service dhcpd stop)
View 2 Replies View RelatedI've set up a very simple net with a dhcp + dns server using dnsmasq. It works but the server itself cant resolv clients names. Clients do resolv without any problem my /etc/dnsmasq.conf
[Code]...
I want to set up a dhcp server such that the clients get same ip every time. Giving fixed address to every client would be a long process.
"I don't want to assign a specific ip to the client but what i want is the server provides same ip every time"
Just looking for the best/most reliable setup. In a nutshell, I would love to have a Domain Controller no DHCP File server. I want to leave the DHCP to the router. I need virtual to run a software off from it. Samba server and that is basically it. My questions are:
1. Can I have a Domain Controller without DHCP server?
2. Should I run virtual server headless? so I dont install any gui?
3. This should have been my 1st question. I have two disks, is raid handled by the Bios or do I have to do something in linux(DMRAID)?
I have worked with many if not all the things I have mentioned here, however, I have never done it from scratch.
I have an embedded device for which I've created an html configuration page. This page allows you to set static IPs, dhcp, and can scan for wireless devices. My problem is that in order to access the device it requires that it runs as a dhcp server otherwise people are not assigned an IP and so can not access the embedded devices static IP. (This config page is for the laymen and so they are not the type who are able to set up their own static IPs). One of the potential options is to have the device connect to the network on eth0 acting as a dhcp client. However this prevents me from running a dhcp server. One solution I can think of is running a dhcp server only if it doesn't detect another dhcp server running on the network. However I have no idea how this could be setup.
View 2 Replies View Related