LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-16-2011, 02:58 PM   #1
hi007
LQ Newbie
 
Registered: May 2011
Posts: 12

Rep: Reputation: 0
DHCP server


I have installed dhcp-server on ubuntu. And server is providing ip address to clients(Window machines) but not default-gateway but I have another network in my network and same configuration and same dhcp-server provides every information. Thanks for any help.
 
Old 06-16-2011, 03:21 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by hi007 View Post
I have installed dhcp-server on ubuntu. And server is providing ip address to clients(Window machines) but not default-gateway but I have another network in my network and same configuration and same dhcp-server provides every information. Thanks for any help.
Sorry, but if they're the same, then they'd WORK the same way. There has to be some difference.

Ubuntu forums has addressed this before. Have you compared the dhcpd.conf files between the two servers? And what version of Ubuntu are you using on them?
https://help.ubuntu.com/8.04/serverguide/C/dhcp.html
 
Old 06-16-2011, 04:22 PM   #3
hi007
LQ Newbie
 
Registered: May 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for reply. Basically I have only one server and two different network, and dhcp server send every information to clients on one network while on another network its send only ip and network mask not default gateway. And I have checked the dhcpd.conf file the configuration for both network is same. I have problem in network 192.168.2.0/24

option domain-search-order code 119 = string;

default-lease-time 86400;
max-lease-time 172800;

authoritative;
always-broadcast on;

log-facility daemon;

#local-address 192.168.1.5;

subnet 192.168.1.0 netmask 255.255.255.0 {
option domain-name "office.com";
option domain-search-order "office.com";
option domain-name-servers 192.168.1.5;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option ntp-servers ntp.ubuntu.com;
option netbios-name-servers hello.office.com;
option netbios-dd-server hello.office.com;
option netbios-node-type 8;
option routers 192.168.1.5;
option ip-forwarding off;
}

subnet 192.168.2.0 netmask 255.255.255.0 {
option domain-name "office.guest";
option domain-search-order "office.guest";
option domain-name-servers 192.168.2.5;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option ntp-servers ntp.ubuntu.com;
option netbios-name-servers hello.office.guest;
option netbios-dd-server hello.office.guest;
option netbios-node-type 8;
option ip-forwarding off;
option routers 192.168.2.5;
range 192.168.2.100 192.168.2.200;
}
 
Old 06-17-2011, 09:48 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by hi007 View Post
Thanks for reply. Basically I have only one server and two different network, and dhcp server send every information to clients on one network while on another network its send only ip and network mask not default gateway. And I have checked the dhcpd.conf file the configuration for both network is same. I have problem in network 192.168.2.0/24
Your original question and this follow-up are hard to understand.

Ok, you have one DHCP server. Great....so exactly WHAT isn't working correctly? The default gateway? IP Addresses? If you've got things split up on your network, are they getting the right IP address range, or is everyone going on ONE subnet?? How are you delineating the two subnets?
 
Old 06-17-2011, 12:58 PM   #5
hi007
LQ Newbie
 
Registered: May 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Hey Sorry for confusion. I have one Ubuntu server(This is my main router). I have installed dhcp-server and BIND on it and I have two different network 192.168.1.0/24(its for internal LAN) and 192.168.2.0/24(its for external wireless N/W). Now the dhcp-server send dhcp info to internal client with correct info and I have same configuration for another n/w. The dhcp-server send info to external wireless client also that is correct but not sending default-gateway ip address into info.

N/W topology:

Internet->Ubuntu Server(Dhcp server)--1. Internal LAN 192.168.1.0/24
2. Wireless AP(Which is just use for passing traffic) --> External Clients

If try to connect to internet through the Wireless AP I am getting IP address, DNS server Name ... everything is correct but I am not getting my default router address which is Ubuntu server IP(192.168.2.5). I hope this information is help full. let me know if you need more info. Thanks for your help.
 
Old 06-17-2011, 01:56 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by hi007 View Post
Hey Sorry for confusion. I have one Ubuntu server(This is my main router). I have installed dhcp-server and BIND on it and I have two different network 192.168.1.0/24(its for internal LAN) and 192.168.2.0/24(its for external wireless N/W). Now the dhcp-server send dhcp info to internal client with correct info and I have same configuration for another n/w. The dhcp-server send info to external wireless client also that is correct but not sending default-gateway ip address into info.

N/W topology:

Internet->Ubuntu Server(Dhcp server)--1. Internal LAN 192.168.1.0/24
2. Wireless AP(Which is just use for passing traffic) --> External Clients

If try to connect to internet through the Wireless AP I am getting IP address, DNS server Name ... everything is correct but I am not getting my default router address which is Ubuntu server IP(192.168.2.5). I hope this information is help full. let me know if you need more info. Thanks for your help.
As I asked above, how are you delineating between the two networks???. You are putting two subnets, with TWO DIFFERENT DEFAULT ROUTES, into your DHCP config. Not a problem, but the DHCP server is only going to give out what you TELL IT TO.

If you have one switch, and all your machines are configured into one domain, then they're going to pull the DHCP info accordingly. If you want ALL your machines to get the same default route, then change it in the dhcpd.conf. You've clearly got one set at 192.168.2.5, and another at 192.168.1.5.
 
  


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
Baffling DNS from a DHCP server problem. Appears to be ignoring dhcp.conf royce2020 Linux - Networking 1 02-16-2010 12:40 PM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 02:00 AM
How To know if a host configured with DHCP has obtained IP address from DHCP server? Prassanta SUSE / openSUSE 1 06-29-2006 09:48 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:21 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