LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 03-25-2010, 02:57 PM   #1
avtandil_k
Member
 
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30

Rep: Reputation: 16
DHCP lease IP on eBox from openSUSE


Hi,
I 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.

Can someone tell me 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?
 
Old 03-26-2010, 08:32 AM   #2
joe.beard
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
what does you eBox dhcp config look like for this subnet? also what does the output of ifconfig look like on openSUSE11232CL1 pre to the run of dhclient?

Last edited by joe.beard; 03-26-2010 at 08:34 AM.
 
Old 03-26-2010, 10:33 AM   #3
avtandil_k
Member
 
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30

Original Poster
Rep: Reputation: 16
Thanks

The
cat /etc/dhcp3/dhcpd.conf
on eBox shows:

# DHCP server is authoritative for all networks
authoritative;

# extra options
# RFC3442 routes
option rfc3442-classless-static-routes code 121 = array of integer 8;
# MS routes
option ms-classless-static-routes code 249 = array of integer 8;

ddns-update-style none;

option domain-name-servers 192.168.122.2;


default-lease-time 1800;
max-lease-time 7200;


shared-network eth0 {

subnet 10.45.0.0 netmask 255.255.0.0 {

option routers 10.45.48.108;
option domain-name "";
option domain-name-servers 10.45.48.108;
default-lease-time 1800;
max-lease-time 7200;


range 10.45.200.1 10.45.200.10;
}



}


and ifconfig on client is below. The client does not pick up IP from the eBox 10.45.48.108 but does pick up IP from a Windows DHCP that we have on the network

eth0 Link encap:Ethernet HWaddr 00:0C:29:3E:57:A3
inet addr:10.45.31.123 Bcast:10.45.255.255 Mask:255.255.0.0
inet6 addr: fe80::20c:29ff:fe3e:57a3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1275876 errors:0 dropped:0 overruns:0 frame:0
TX packets:66612 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:163412487 (155.8 Mb) TX bytes:18911261 (18.0 Mb)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:55701 errors:0 dropped:0 overruns:0 frame:0
TX packets:55701 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18537222 (17.6 Mb) TX bytes:18537222 (17.6 Mb)
 
  


Reply

Tags
dhcp


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
Using expired DHCP lease phyzazz Linux - Newbie 1 06-05-2008 02:34 PM
DHCP lease same IP prashanlk Linux - Networking 2 01-31-2008 03:22 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Requesting a new DHCP lease raypen Linux - Networking 2 06-07-2006 09:19 PM
Wireless doesn't get DHCP lease novice_iii Mandriva 1 04-17-2006 07:55 AM


All times are GMT -5. The time now is 04:03 AM.

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