LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 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: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
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



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

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

All times are GMT -5. The time now is 05:49 AM.

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