Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to force dhcpd to ignore MAC address?

Reply
Thread Tools Display Modes

How to force dhcpd to ignore MAC address?

 
 
oleg
Guest
Posts: n/a

 
      01-05-2006, 01:10 PM
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;
}

}

 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      01-05-2006, 03:36 PM
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
 
oleg
Guest
Posts: n/a

 
      01-05-2006, 04:12 PM
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
 
Tauno Voipio
Guest
Posts: n/a

 
      01-05-2006, 04:20 PM
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
 
oleg
Guest
Posts: n/a

 
      01-05-2006, 06:33 PM
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
 
Philippe WEILL
Guest
Posts: n/a

 
      01-06-2006, 08:48 AM


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
 
chris-usenet@roaima.co.uk
Guest
Posts: n/a

 
      01-06-2006, 01:18 PM
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

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
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52136@gmail.com Windows Networking 0 01-14-2008 07:45 PM
How to force Linux to reacquire a new IP address ? Miem Linux Networking 9 03-14-2007 02:08 PM
assigning multiple IP address to one interface via dhcpd Nejat AYDIN Linux Networking 4 06-07-2004 12:26 AM
DHCPd: IP-Address Pools based on Client ID Bastian Bense Linux Networking 1 09-08-2003 04:28 PM
dhcpd: Assigning address to dual boot machine Todd Aiken Linux Networking 0 08-10-2003 05:31 AM



1 2 3 4 5 6 7 8 9 10 11