Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux dhcp question

Reply
Thread Tools Display Modes

linux dhcp question

 
 
FreddyK
Guest
Posts: n/a

 
      09-23-2003, 10:14 PM
Linux DHCP Problem


I need help urgently with a DHCP problem please .


On my home gateway / firewall pc Im trying to change the static /
fixed IP address for eth0 (the single network adaptor) to a
dynamic IP address using DHCP.

I need help setting up the DHCP server not the client DHCP on this
firewall pc.

The firewall pc is rehdat 8 and yes the NIC driver is loading fine
during the bootup, and has been running fine for months using a fixed
IP address for eth0.

My internet connection is a 56k PPP dial up connection so I need to
tell the DHCP server to ignore the PPP adaptor some how as well.

Now since I have others here for Lan UT games whose pc`s are running
Windows XP with a dynamic IP address for there network cards it means
I have to change my computers to DHCP .


I hope that's clear !

My friends pc is running windows XP using ICS the addresses in the
192.168.0.x range. With a 255.255.255.0 mask.


So the big question is what to I need in the /etc/dhcpd.conf file
to get this all working using DHCP on my linux firewall box ?


Many thnx !!







 
Reply With Quote
 
 
 
 
Joe Hente
Guest
Posts: n/a

 
      09-24-2003, 01:16 AM
FreddyK wrote:
> Linux DHCP Problem
>
>
> I need help urgently with a DHCP problem please .
>
>
> On my home gateway / firewall pc Im trying to change the static /
> fixed IP address for eth0 (the single network adaptor) to a
> dynamic IP address using DHCP.
>
> I need help setting up the DHCP server not the client DHCP on this
> firewall pc.
>
> The firewall pc is rehdat 8 and yes the NIC driver is loading fine
> during the bootup, and has been running fine for months using a fixed
> IP address for eth0.
>
> My internet connection is a 56k PPP dial up connection so I need to
> tell the DHCP server to ignore the PPP adaptor some how as well.
>
> Now since I have others here for Lan UT games whose pc`s are running
> Windows XP with a dynamic IP address for there network cards it means
> I have to change my computers to DHCP .
>
>
> I hope that's clear !
>
> My friends pc is running windows XP using ICS the addresses in the
> 192.168.0.x range. With a 255.255.255.0 mask.
>
>
> So the big question is what to I need in the /etc/dhcpd.conf file
> to get this all working using DHCP on my linux firewall box ?
>
>
> Many thnx !!
>
>
>
>
>
>
>

First, about the PPP, I'm thinking that the ethernet will not see the
actual modem.
Second, I;m not sure about getting linux to a dhcp client. But something
like dhcpclient script appears in my head.
Third, ...
Fourth, Below is a /etc/dhcpd.conf file of mine, I snips some parts out
to be more simple.

#/etc/dhcpd.conf
ddns-update-style none;
default-lease-time 21600;
max-lease-time 21600;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
server-name = "jHente";
option interface-mtu 1500;
option ip-forwarding = 0;
option non-local-source-routing = 0;
option arp-cache-timeout 600;

shared-network Local_Network_0 {
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.250;
}
}

group {
use-host-decl-names on;
option log-servers 192.168.0.254;


host firewall {
hardware ethernet 00:00:00:00:00:00
fixed-address 192.168.0.1
}
}


For the most part, this script will tell the server:
-for the host with the MAC of 00:00:00:00:00:00, give it I.P. of
192.168.0.1, like RARP... (a feature I didn't notice in Windows 2000 sp3
dhcp (but I was only looking for like a few mins.)) This will give the
computers a semi-static IP, but you can still change it.
-for the unknown MACs, give them addresses between 192.168.0.100 to
192.168.0.250 with a netmaks of 255.255.255.0

As for the client, if:
+client has MAC of 00:00:00:00:00:00 :
clint has I.P. of 192.168.0.1, netmask 255.255.255.0, arp-timeout of
600 (s or m)(set high to make it slighly more difficult to arp spoof,
but not great if the enviroment constantly changes), max. trans. unit of
1500kb, IP address renew never,
+Client has an MAc not in the dhcpd.conf, I think BIND will give it the
address of 192.168.0.100, then 192.168.0.101, 1500kb mtu, ...

It might help to have all hosts defined to be in the /etc/hosts

to start the dhcp:
# /etc/init.d/dhcpd restart


Also, I recommend that you read more on BIND. The book I learned from
is: TCP/IP network admin. (o'rielly), although $50, covers other stuff too.

 
Reply With Quote
 
FreddyK
Guest
Posts: n/a

 
      09-24-2003, 04:40 AM
On Tue, 23 Sep 2003 20:16:38 -0500, Joe Hente <(E-Mail Removed)>
wrote:

>FreddyK wrote:


>>
>>

>First, about the PPP, I'm thinking that the ethernet will not see the
>actual modem.
>Second, I;m not sure about getting linux to a dhcp client. But something
>like dhcpclient script appears in my head.
>Third, ...
>Fourth, Below is a /etc/dhcpd.conf file of mine, I snips some parts out
>to be more simple.
>
>#/etc/dhcpd.conf
>ddns-update-style none;
>default-lease-time 21600;
>max-lease-time 21600;
>option subnet-mask 255.255.255.0;
>option broadcast-address 192.168.0.255;
>server-name = "jHente";
>option interface-mtu 1500;
>option ip-forwarding = 0;
>option non-local-source-routing = 0;
>option arp-cache-timeout 600;
>
>shared-network Local_Network_0 {
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range 192.168.0.100 192.168.0.250;
> }
>}
>
>group {
> use-host-decl-names on;
> option log-servers 192.168.0.254;
>
>
> host firewall {
> hardware ethernet 00:00:00:00:00:00
> fixed-address 192.168.0.1
> }
>}
>
>
>For the most part, this script will tell the server:
>-for the host with the MAC of 00:00:00:00:00:00, give it I.P. of
>192.168.0.1, like RARP... (a feature I didn't notice in Windows 2000 sp3
>dhcp (but I was only looking for like a few mins.)) This will give the
>computers a semi-static IP, but you can still change it.
>-for the unknown MACs, give them addresses between 192.168.0.100 to
>192.168.0.250 with a netmaks of 255.255.255.0
>
>As for the client, if:
>+client has MAC of 00:00:00:00:00:00 :
> clint has I.P. of 192.168.0.1, netmask 255.255.255.0, arp-timeout of
>600 (s or m)(set high to make it slighly more difficult to arp spoof,
>but not great if the enviroment constantly changes), max. trans. unit of
>1500kb, IP address renew never,
>+Client has an MAc not in the dhcpd.conf, I think BIND will give it the
>address of 192.168.0.100, then 192.168.0.101, 1500kb mtu, ...
>
>It might help to have all hosts defined to be in the /etc/hosts
>
>to start the dhcp:
> # /etc/init.d/dhcpd restart
>
>
>Also, I recommend that you read more on BIND. The book I learned from
>is: TCP/IP network admin. (o'rielly), although $50, covers other stuff too.




Thnx Joe !!



 
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
DHCP and VPN question ocaballero@johnsonbrothers.com Windows Networking 1 12-28-2006 10:35 PM
A question about DHCP reza Windows Networking 1 07-24-2006 08:56 AM
DHCP question Sen Chao Fang Home Networking 2 12-12-2005 12:12 AM
DHCP question Joe Windows Networking 1 11-10-2004 02:33 AM
DHCP question Hobbit Linux Networking 1 11-29-2003 11:11 PM



1 2 3 4 5 6 7 8 9 10 11