LinuxQuestions.org
Review your favorite Linux distribution.
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 04-16-2009, 05:42 AM   #1
milpoer
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Problem assigning default gateway to clients through dhcpd (ubuntu)


Hi,

I have a problem with getting my dhcpd server to assign default gateway to my clients, both linux and windows. The server is a Ubuntu 8.04 and DHCPd is: 3.0.6

My server conf is following.

--- dhcpd.conf

default-lease-time 14400;
max-lease-time 28800;

log-facility local7;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 193.162.153.194, 164.239.134.83;
option domain-name "LAN";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.60 192.168.1.85;
}

---

The IP is assigned proberly, but the gateway is missing almost every time, i can sometimes get the gateway, if i renew my ipconf many times.
 
Old 04-16-2009, 07:53 AM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Cleveland Ohio
Distribution: CentOS
Posts: 235

Rep: Reputation: 36
Your file is wrong. You have defined a subnet with only range.

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.60 192.168.1.85;
}


Try to include the options for that subnet within the subnet's definition and it will work, here is an example of that file.






log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.60 192.168.1.85;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 193.162.153.194, 164.239.134.83;
option domain-name "LAN";
default-lease-time 14400;
max-lease-time 28800;
}
 
Old 04-16-2009, 08:05 AM   #3
milpoer
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by kentyler View Post


log-facility local7;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.60 192.168.1.85;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 193.162.153.194, 164.239.134.83;
option domain-name "LAN";
default-lease-time 14400;
max-lease-time 28800;
}
I have tried that to, the problem is the same.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Default Gateway not working ? (Ubuntu server) GoBieN Linux - Networking 1 03-30-2009 07:15 AM
dhcpd assigning reserved mac-to-ip addresses to unregistered pcs fedora_user Linux - Newbie 3 05-08-2008 04:39 AM
DHCPD and Assigning Subnets to Different Interfaces metallica1973 Linux - Networking 8 01-25-2008 05:22 AM
DHCP: Problem in assigning fixed address to clients libregeek Linux - Networking 6 11-17-2005 11:59 PM
sles 9.2 dhcp server not assigning default gateway pat45 Linux - Networking 1 05-07-2005 05:51 AM


All times are GMT -5. The time now is 12:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration