LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP lease IP on eBox from openSUSE (http://www.linuxquestions.org/questions/linux-networking-3/dhcp-lease-ip-on-ebox-from-opensuse-797861/)

avtandil_k 03-25-2010 03:57 PM

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?

joe.beard 03-26-2010 09:32 AM

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?

avtandil_k 03-26-2010 11:33 AM

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)


All times are GMT -5. The time now is 09:06 PM.