Networking Forums

Networking Forums > Computer Networking > Linux Networking > Problems configuring DHCP in Fedora 5

Reply
Thread Tools Display Modes

Problems configuring DHCP in Fedora 5

 
 
ashish.sachan@gmail.com
Guest
Posts: n/a

 
      08-16-2006, 02:59 PM
Dear Friends,

I am trying to configure DHCP server on Fedora Core 5 .

I tried ,

1.i copied sample DHCP configuration file into /etc directory using
command

cp /usr/share/doc/dhcp-3.3/dhcpd.conf.sample /etc/dhcpd.conf

2.Created lease file by giving command,
touch /var/lib/dhcp/dhcpd.leases

3.gave command,

/sbin/chkconfig dhcpd on

4.started dhcp by giving command
/sbin/service dhcpd start

Here , after pressing Enter it takes little time to process , and then
shows
Starting DHCP service [ FAILED]


what is wrong , pls help..

Regards,
-Ashish

 
Reply With Quote
 
 
 
 
Timothy Murphy
Guest
Posts: n/a

 
      08-16-2006, 03:47 PM
(E-Mail Removed) wrote:

> I am trying to configure DHCP server on Fedora Core 5 .
>
> I tried ,
>
> 1.i copied sample DHCP configuration file into /etc directory using
> command
>
> cp /usr/share/doc/dhcp-3.3/dhcpd.conf.sample /etc/dhcpd.conf


(1) Surely you would have to edit this file,
to give your own information ?

(2) Should that be dhcp-3.0.3 ?

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
 
Reply With Quote
 
ashish.sachan@gmail.com
Guest
Posts: n/a

 
      08-16-2006, 05:43 PM
ThankYou

Yes it is dhcp-3.0.3 ,
I try to edit it now.

Regads,
-Ashish
Timothy Murphy wrote:
> (E-Mail Removed) wrote:
>
> > I am trying to configure DHCP server on Fedora Core 5 .
> >
> > I tried ,
> >
> > 1.i copied sample DHCP configuration file into /etc directory using
> > command
> >
> > cp /usr/share/doc/dhcp-3.3/dhcpd.conf.sample /etc/dhcpd.conf

>
> (1) Surely you would have to edit this file,
> to give your own information ?
>
> (2) Should that be dhcp-3.0.3 ?
>
> --
> Timothy Murphy
> e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
> tel: +353-86-2336090, +353-1-2842366
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


 
Reply With Quote
 
ashish.sachan@gmail.com
Guest
Posts: n/a

 
      08-16-2006, 06:03 PM
I do not understand what changes i have to make the dhcp service to
start.
I am just using my stand alone Linux Based PC.

Regards,
-Ashish
Timothy Murphy wrote:
> (E-Mail Removed) wrote:
>
> > I am trying to configure DHCP server on Fedora Core 5 .
> >
> > I tried ,
> >
> > 1.i copied sample DHCP configuration file into /etc directory using
> > command
> >
> > cp /usr/share/doc/dhcp-3.3/dhcpd.conf.sample /etc/dhcpd.conf

>
> (1) Surely you would have to edit this file,
> to give your own information ?
>
> (2) Should that be dhcp-3.0.3 ?
>
> --
> Timothy Murphy
> e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
> tel: +353-86-2336090, +353-1-2842366
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


 
Reply With Quote
 
888
Guest
Posts: n/a

 
      08-16-2006, 06:18 PM
Can you show "dhcpd.conf" file??

<(E-Mail Removed)>
???????:(E-Mail Removed) groups.com...
>I do not understand what changes i have to make the dhcp service to
> start.
> I am just using my stand alone Linux Based PC.
>
> Regards,
> -Ashish
> Timothy Murphy wrote:
>> (E-Mail Removed) wrote:
>>
>> > I am trying to configure DHCP server on Fedora Core 5 .
>> >
>> > I tried ,
>> >
>> > 1.i copied sample DHCP configuration file into /etc directory using
>> > command
>> >
>> > cp /usr/share/doc/dhcp-3.3/dhcpd.conf.sample /etc/dhcpd.conf

>>
>> (1) Surely you would have to edit this file,
>> to give your own information ?
>>
>> (2) Should that be dhcp-3.0.3 ?
>>
>> --
>> Timothy Murphy
>> e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
>> tel: +353-86-2336090, +353-1-2842366
>> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

>



 
Reply With Quote
 
Timothy Murphy
Guest
Posts: n/a

 
      08-16-2006, 06:43 PM
(E-Mail Removed) wrote:

> I do not understand what changes i have to make the dhcp service to
> start.
> I am just using my stand alone Linux Based PC.


I've given my /etc/dhcpd.conf below, for what it is worth.
I'm not quite sure why you want to run a dhcp server,
if you are only using one computer.
Maybe a dhcp-client would suffice for your needs.

---------------------------------------
[tim@alfred ~]$ cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

authoritative;

# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

option nis-domain "murphy.ie";
option domain-name "murphy.ie";
option domain-name-servers 159.134.237.6,159.134.248.17;
# option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this
unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.1.128 192.168.1.254;
default-lease-time 21600;
max-lease-time 43200;

# we want william, martha and helen
host alfred {
hardware ethernet 00:40:F4:6E:07:A1;
fixed-address 192.168.1.1;
}

host blanche {
hardware ethernet 00:0E:A6:AF:0B:11;
fixed-address 192.168.1.7;
}

host med177072 {
hardware ethernet 00:14:220:E8:66;
fixed-address 192.168.1.9;
}

host med178239 {
hardware ethernet 00:0BB:08:F4:4C;
fixed-address 192.168.1.10;
}

}

subnet 192.168.3.0 netmask 255.255.255.0 {

authoritative;

# --- default gateway
option routers 192.168.3.1;
option subnet-mask 255.255.255.0;

option nis-domain "murphy.ie";
option domain-name "murphy.ie";
option domain-name-servers 159.134.237.6,159.134.248.17;
# option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this
unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.3.128 192.168.3.254;
default-lease-time 21600;
max-lease-time 43200;

host martha {
hardware ethernet 00:02:2D:1D:43:B7;
fixed-address 192.168.3.6;
}

host psp {
hardware ethernet 00:01:4A:86C:C7;
fixed-address 192.168.3.8;
}

host helen {
hardware ethernet 00:02:2D:3C:10:6E;
fixed-address 192.168.3.2;
}

host latitude {
hardware ethernet 00:14:A4:76:AD:93;
fixed-address 192.168.3.9;
}

# host dell {
# hardware ethernet 00:02:2D:1D:43:B6;
# fixed-address 192.168.3.10;
# }

host elizabeth {
hardware ethernet 00:02:2D:1D:43:B6;
fixed-address 192.168.3.11;
}

host blanche-wifi {
hardware ethernet 00:0E:A6:B1:9D:01;
fixed-address 192.168.3.7;
}


}
---------------------------------------

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
 
Reply With Quote
 
ashish.sachan@gmail.com
Guest
Posts: n/a

 
      08-17-2006, 04:05 AM
I am a beginner, so for the sake of learning i am doing it.
I hjave one more PC, first i shall make my this PC as a server then
second one as a client.
After that shall conect two and get the IP address from server.But
server is ot starting ..
here is my dhcpd.conf file ,it is so simple....

ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change
this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
> (E-Mail Removed) wrote:




>
> > I do not understand what changes i have to make the dhcp service to
> > start.
> > I am just using my stand alone Linux Based PC.

>
> I've given my /etc/dhcpd.conf below, for what it is worth.
> I'm not quite sure why you want to run a dhcp server,
> if you are only using one computer.
> Maybe a dhcp-client would suffice for your needs.
>
> ---------------------------------------
> [tim@alfred ~]$ cat /etc/dhcpd.conf
> ddns-update-style interim;
> ignore client-updates;
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
>
> authoritative;
>
> # --- default gateway
> option routers 192.168.1.1;
> option subnet-mask 255.255.255.0;
>
> option nis-domain "murphy.ie";
> option domain-name "murphy.ie";
> option domain-name-servers 159.134.237.6,159.134.248.17;
> # option time-offset -18000; # Eastern Standard Time
> # option ntp-servers 192.168.1.1;
> # option netbios-name-servers 192.168.1.1;
> # --- Selects point-to-point node (default is hybrid). Don't change this
> unless
> # -- you understand Netbios very well
> # option netbios-node-type 2;
>
> range dynamic-bootp 192.168.1.128 192.168.1.254;
> default-lease-time 21600;
> max-lease-time 43200;
>
> # we want william, martha and helen
> host alfred {
> hardware ethernet 00:40:F4:6E:07:A1;
> fixed-address 192.168.1.1;
> }
>
> host blanche {
> hardware ethernet 00:0E:A6:AF:0B:11;
> fixed-address 192.168.1.7;
> }
>
> host med177072 {
> hardware ethernet 00:14:220:E8:66;
> fixed-address 192.168.1.9;
> }
>
> host med178239 {
> hardware ethernet 00:0BB:08:F4:4C;
> fixed-address 192.168.1.10;
> }
>
> }
>
> subnet 192.168.3.0 netmask 255.255.255.0 {
>
> authoritative;
>
> # --- default gateway
> option routers 192.168.3.1;
> option subnet-mask 255.255.255.0;
>
> option nis-domain "murphy.ie";
> option domain-name "murphy.ie";
> option domain-name-servers 159.134.237.6,159.134.248.17;
> # option time-offset -18000; # Eastern Standard Time
> # option ntp-servers 192.168.1.1;
> # option netbios-name-servers 192.168.1.1;
> # --- Selects point-to-point node (default is hybrid). Don't change this
> unless
> # -- you understand Netbios very well
> # option netbios-node-type 2;
>
> range dynamic-bootp 192.168.3.128 192.168.3.254;
> default-lease-time 21600;
> max-lease-time 43200;
>
> host martha {
> hardware ethernet 00:02:2D:1D:43:B7;
> fixed-address 192.168.3.6;
> }
>
> host psp {
> hardware ethernet 00:01:4A:86C:C7;
> fixed-address 192.168.3.8;
> }
>
> host helen {
> hardware ethernet 00:02:2D:3C:10:6E;
> fixed-address 192.168.3.2;
> }
>
> host latitude {
> hardware ethernet 00:14:A4:76:AD:93;
> fixed-address 192.168.3.9;
> }
>
> # host dell {
> # hardware ethernet 00:02:2D:1D:43:B6;
> # fixed-address 192.168.3.10;
> # }
>
> host elizabeth {
> hardware ethernet 00:02:2D:1D:43:B6;
> fixed-address 192.168.3.11;
> }
>
> host blanche-wifi {
> hardware ethernet 00:0E:A6:B1:9D:01;
> fixed-address 192.168.3.7;
> }
>
>
> }
> ---------------------------------------
>
> --
> Timothy Murphy
> e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
> tel: +353-86-2336090, +353-1-2842366
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


 
Reply With Quote
 
ashish.sachan@gmail.com
Guest
Posts: n/a

 
      08-17-2006, 04:50 AM
I feel editing dhcpd.conf comes later, first dhcp service should start,

(E-Mail Removed) wrote:
> I am a beginner, so for the sake of learning i am doing it.
> I hjave one more PC, first i shall make my this PC as a server then
> second one as a client.
> After that shall conect two and get the IP address from server.But
> server is ot starting ..
> here is my dhcpd.conf file ,it is so simple....
>
> ddns-update-style interim;
> ignore client-updates;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
>
> # --- default gateway
> option routers 192.168.0.1;
> option subnet-mask 255.255.255.0;
>
> option nis-domain "domain.org";
> option domain-name "domain.org";
> option domain-name-servers 192.168.1.1;
>
> option time-offset -18000; # Eastern Standard Time
> # option ntp-servers 192.168.1.1;
> # option netbios-name-servers 192.168.1.1;
> # --- Selects point-to-point node (default is hybrid). Don't change
> this unless
> # -- you understand Netbios very well
> # option netbios-node-type 2;
>
> range dynamic-bootp 192.168.0.128 192.168.0.254;
> default-lease-time 21600;
> max-lease-time 43200;
>
> # we want the nameserver to appear at a fixed address
> host ns {
> next-server marvin.redhat.com;
> hardware ethernet 12:34:56:78:AB:CD;
> fixed-address 207.175.42.254;
> }
> }
> > (E-Mail Removed) wrote:

>
>
>
> >
> > > I do not understand what changes i have to make the dhcp service to
> > > start.
> > > I am just using my stand alone Linux Based PC.

> >
> > I've given my /etc/dhcpd.conf below, for what it is worth.
> > I'm not quite sure why you want to run a dhcp server,
> > if you are only using one computer.
> > Maybe a dhcp-client would suffice for your needs.
> >
> > ---------------------------------------
> > [tim@alfred ~]$ cat /etc/dhcpd.conf
> > ddns-update-style interim;
> > ignore client-updates;
> >
> > subnet 192.168.1.0 netmask 255.255.255.0 {
> >
> > authoritative;
> >
> > # --- default gateway
> > option routers 192.168.1.1;
> > option subnet-mask 255.255.255.0;
> >
> > option nis-domain "murphy.ie";
> > option domain-name "murphy.ie";
> > option domain-name-servers 159.134.237.6,159.134.248.17;
> > # option time-offset -18000; # Eastern Standard Time
> > # option ntp-servers 192.168.1.1;
> > # option netbios-name-servers 192.168.1.1;
> > # --- Selects point-to-point node (default is hybrid). Don't change this
> > unless
> > # -- you understand Netbios very well
> > # option netbios-node-type 2;
> >
> > range dynamic-bootp 192.168.1.128 192.168.1.254;
> > default-lease-time 21600;
> > max-lease-time 43200;
> >
> > # we want william, martha and helen
> > host alfred {
> > hardware ethernet 00:40:F4:6E:07:A1;
> > fixed-address 192.168.1.1;
> > }
> >
> > host blanche {
> > hardware ethernet 00:0E:A6:AF:0B:11;
> > fixed-address 192.168.1.7;
> > }
> >
> > host med177072 {
> > hardware ethernet 00:14:220:E8:66;
> > fixed-address 192.168.1.9;
> > }
> >
> > host med178239 {
> > hardware ethernet 00:0BB:08:F4:4C;
> > fixed-address 192.168.1.10;
> > }
> >
> > }
> >
> > subnet 192.168.3.0 netmask 255.255.255.0 {
> >
> > authoritative;
> >
> > # --- default gateway
> > option routers 192.168.3.1;
> > option subnet-mask 255.255.255.0;
> >
> > option nis-domain "murphy.ie";
> > option domain-name "murphy.ie";
> > option domain-name-servers 159.134.237.6,159.134.248.17;
> > # option time-offset -18000; # Eastern Standard Time
> > # option ntp-servers 192.168.1.1;
> > # option netbios-name-servers 192.168.1.1;
> > # --- Selects point-to-point node (default is hybrid). Don't change this
> > unless
> > # -- you understand Netbios very well
> > # option netbios-node-type 2;
> >
> > range dynamic-bootp 192.168.3.128 192.168.3.254;
> > default-lease-time 21600;
> > max-lease-time 43200;
> >
> > host martha {
> > hardware ethernet 00:02:2D:1D:43:B7;
> > fixed-address 192.168.3.6;
> > }
> >
> > host psp {
> > hardware ethernet 00:01:4A:86C:C7;
> > fixed-address 192.168.3.8;
> > }
> >
> > host helen {
> > hardware ethernet 00:02:2D:3C:10:6E;
> > fixed-address 192.168.3.2;
> > }
> >
> > host latitude {
> > hardware ethernet 00:14:A4:76:AD:93;
> > fixed-address 192.168.3.9;
> > }
> >
> > # host dell {
> > # hardware ethernet 00:02:2D:1D:43:B6;
> > # fixed-address 192.168.3.10;
> > # }
> >
> > host elizabeth {
> > hardware ethernet 00:02:2D:1D:43:B6;
> > fixed-address 192.168.3.11;
> > }
> >
> > host blanche-wifi {
> > hardware ethernet 00:0E:A6:B1:9D:01;
> > fixed-address 192.168.3.7;
> > }
> >
> >
> > }
> > ---------------------------------------
> >
> > --
> > Timothy Murphy
> > e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
> > tel: +353-86-2336090, +353-1-2842366
> > s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


 
Reply With Quote
 
Timothy Murphy
Guest
Posts: n/a

 
      08-17-2006, 11:33 AM
(E-Mail Removed) wrote:

> I am a beginner, so for the sake of learning i am doing it.
> I hjave one more PC, first i shall make my this PC as a server then
> second one as a client.
> After that shall conect two and get the IP address from server.But
> server is ot starting ..
> here is my dhcpd.conf file ,it is so simple....
>
> ddns-update-style interim;
> ignore client-updates;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
>
> # --- default gateway
> option routers 192.168.0.1;
> option subnet-mask 255.255.255.0;
>
> option nis-domain "domain.org";
> option domain-name "domain.org";
> option domain-name-servers 192.168.1.1;
>
> option time-offset -18000; # Eastern Standard Time
> # option ntp-servers 192.168.1.1;
> # option netbios-name-servers 192.168.1.1;
> # --- Selects point-to-point node (default is hybrid). Don't change
> this unless
> # -- you understand Netbios very well
> # option netbios-node-type 2;
>
> range dynamic-bootp 192.168.0.128 192.168.0.254;
> default-lease-time 21600;
> max-lease-time 43200;
>
> # we want the nameserver to appear at a fixed address
> host ns {
> next-server marvin.redhat.com;
> hardware ethernet 12:34:56:78:AB:CD;
> fixed-address 207.175.42.254;
> }
> }


(1) What is your IP address, as given eg by ifconfig ?
(2) Do you actually have dhcpd ? What does "locate dhcpd" find ?
(3) What message do you get if you say "service dhcpd restart" (as root) ?

--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
 
Reply With Quote
 
ashish.sachan@gmail.com
Guest
Posts: n/a

 
      08-18-2006, 03:16 AM
1. My IP address is 172.18.20.30

2.dhcpd is there is /sbin

3. on giving command service dhcpd start , i get following messages,

Shutting down dhcpd: [FAILED]
Starting dhcpd: [FAILED]

Thanks & Regards,
Ashish

Timothy Murphy wrote:
> (E-Mail Removed) wrote:
>
> > I am a beginner, so for the sake of learning i am doing it.
> > I hjave one more PC, first i shall make my this PC as a server then
> > second one as a client.
> > After that shall conect two and get the IP address from server.But
> > server is ot starting ..
> > here is my dhcpd.conf file ,it is so simple....
> >
> > ddns-update-style interim;
> > ignore client-updates;
> >
> > subnet 192.168.0.0 netmask 255.255.255.0 {
> >
> > # --- default gateway
> > option routers 192.168.0.1;
> > option subnet-mask 255.255.255.0;
> >
> > option nis-domain "domain.org";
> > option domain-name "domain.org";
> > option domain-name-servers 192.168.1.1;
> >
> > option time-offset -18000; # Eastern Standard Time
> > # option ntp-servers 192.168.1.1;
> > # option netbios-name-servers 192.168.1.1;
> > # --- Selects point-to-point node (default is hybrid). Don't change
> > this unless
> > # -- you understand Netbios very well
> > # option netbios-node-type 2;
> >
> > range dynamic-bootp 192.168.0.128 192.168.0.254;
> > default-lease-time 21600;
> > max-lease-time 43200;
> >
> > # we want the nameserver to appear at a fixed address
> > host ns {
> > next-server marvin.redhat.com;
> > hardware ethernet 12:34:56:78:AB:CD;
> > fixed-address 207.175.42.254;
> > }
> > }

>
> (1) What is your IP address, as given eg by ifconfig ?
> (2) Do you actually have dhcpd ? What does "locate dhcpd" find ?
> (3) What message do you get if you say "service dhcpd restart" (as root) ?
>
> --
> Timothy Murphy
> e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
> tel: +353-86-2336090, +353-1-2842366
> s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring DHCP frustrated Windows Networking 7 10-07-2007 10:54 PM
Configuring a 2nd DHCP Scope on one DHCP server Ron Windows Networking 1 10-17-2006 06:36 PM
Fedora 3 having networking problems noSpam Linux Networking 0 01-31-2006 12:08 AM
Connection problems with fedora Peter Greenwood Linux Networking 3 07-12-2004 02:06 PM
dhcp lan ; Fedora without ifconfig Alan Linux Networking 1 01-21-2004 08:48 AM



1 2 3 4 5 6 7 8 9 10 11