Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

How to force dhcpd to ignore MAC address?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-05-2006, 02:10 PM
Default How to force dhcpd to ignore MAC address?



I am running DHCPD server on linux box that does NAT/firewall for my
home network. I installed MediaMVP device and I want private DHCPd
server on one of the PCs to provide its IP address

How do I force DHCPD server on the linux box to ignore the MAC address
of the MediaMVP device?
I spend couple of hours searching online and couldn't find any
references to such option....

Here is my dhcpd.conf file:
Thanks!!

subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
range 192.168.0.20 192.168.0.30;
option domain-name-servers
68.87.64.196,68.87.66.196,68.80.0.12;

option time-offset -18000; # Eastern Standard Time

host notebook {
hardware ethernet 00:a0:24:a7:e5:1b;
fixed-address 192.168.0.5;
}
host pooh {
hardware ethernet 08:00:46:99:6d:e7;
fixed-address 192.168.0.10;
}

host bismarck {
hardware ethernet 00:0F:B5:85:21:E0;
fixed-address 192.168.0.2;
}

}



oleg
Reply With Quote
  #2  
Old 01-05-2006, 04:36 PM
Tauno Voipio
Guest
 
Posts: n/a
Default Re: How to force dhcpd to ignore MAC address?

oleg wrote:
> I am running DHCPD server on linux box that does NAT/firewall for my
> home network. I installed MediaMVP device and I want private DHCPd
> server on one of the PCs to provide its IP address
>
> How do I force DHCPD server on the linux box to ignore the MAC address
> of the MediaMVP device?
> I spend couple of hours searching online and couldn't find any
> references to such option....
>


If you want the DHCP daemon to ignore the MediaMVP box
totally, insert rules to the firewall to ignore the
DHCP requests from the MediaMVP MAC address.

For details, check the iptables documentation.

--

Tauno Voipio
tauno voipio (at) iki fi
Reply With Quote
  #3  
Old 01-05-2006, 05:12 PM
oleg
Guest
 
Posts: n/a
Default Re: How to force dhcpd to ignore MAC address?

I can't really do that, because my server also acts as a file sharing
server for mediamvp to access the content

Reply With Quote
  #4  
Old 01-05-2006, 05:20 PM
Tauno Voipio
Guest
 
Posts: n/a
Default Re: How to force dhcpd to ignore MAC address?

oleg wrote:
> I can't really do that, because my server also acts as a file sharing
> server for mediamvp to access the content
>


Why - it's sufficient to ignore the DHCP UDP packets,
other packets can still be passed through.

--

Tauno Voipio
tauno voipio (at) iki fi
Reply With Quote
  #5  
Old 01-05-2006, 07:33 PM
oleg
Guest
 
Posts: n/a
Default Re: How to force dhcpd to ignore MAC address?

Yes, this is an option, thanks. Although, I would have to find a way
to implement it using gShield firewall scripts, or throw away gShield
alltogether.

I still wish, there was an easy way to do this through dhcpd.conf.
Most of the windows dhcpd servers have this option

Reply With Quote
  #6  
Old 01-06-2006, 09:48 AM
Philippe WEILL
Guest
 
Posts: n/a
Default Re: How to force dhcpd to ignore MAC address?



oleg wrote:
> I am running DHCPD server on linux box that does NAT/firewall for my
> home network. I installed MediaMVP device and I want private DHCPd
> server on one of the PCs to provide its IP address
>
> How do I force DHCPD server on the linux box to ignore the MAC address
> of the MediaMVP device?


with ISC 3.x
reading the man of dhcpd.conf

from man dhcpd.conf

The booting keyword

allow booting;
deny booting;
ignore booting;

The booting flag is used to tell dhcpd whether or not to respond to
queries from a particular client. This keyword only has meaning when
it appears in a host declaration. By default, booting is allowed, but
if it is disabled for a particular client, then that client will not be
able to get an address from the DHCP server.


host mediamvp {
hardware ethernet xx:xx:xx:xx:xx:xx;
ignore booting;
}

> I spend couple of hours searching online and couldn't find any
> references to such option....


i spend just five minutes in man
>
> Here is my dhcpd.conf file:
> Thanks!!
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
> option routers 192.168.0.1;
> option subnet-mask 255.255.255.0;
> range 192.168.0.20 192.168.0.30;
> option domain-name-servers
> 68.87.64.196,68.87.66.196,68.80.0.12;
>
> option time-offset -18000; # Eastern Standard Time
>
> host notebook {
> hardware ethernet 00:a0:24:a7:e5:1b;
> fixed-address 192.168.0.5;
> }
> host pooh {
> hardware ethernet 08:00:46:99:6d:e7;
> fixed-address 192.168.0.10;
> }
>
> host bismarck {
> hardware ethernet 00:0F:B5:85:21:E0;
> fixed-address 192.168.0.2;
> }
>
> }
>

Reply With Quote
  #7  
Old 01-06-2006, 02:18 PM
chris-usenet@roaima.co.uk
Guest
 
Posts: n/a
Default Re: How to force dhcpd to ignore MAC address?

oleg <(E-Mail Removed)> wrote:
> How do I force DHCPD server on the linux box to ignore the MAC address
> of the MediaMVP device?


Check out address pools and the "deny" keyword, as per the manpage for
dhcpd.conf. This is ISC DHCPD as shipped in Debian package "dhcp3-server".

I've not tested it, but something like this might get you started:

subclass "mediamvp" 01:23:45:67:89:ab:cd; # MAC address of MediaMVP

subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.254;

pool {
option domain-name-servers ns1.example.com, ns2.example.com;
max-lease-time 28800;
range 10.0.0.5 10.0.0.199;
ignore members of "mediamvp";
}
}

Chris
Reply With Quote
Reply

Tags
address, dhcpd, force, ignore, mac

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
Forum Jump


All times are GMT. The time now is 12:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.