LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-07-2007, 05:33 AM   #1
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 226

Rep: Reputation: 30
Bind ip with mac address


with DCHP server:

is it possible to bind mac address of dhcp clients with particular ip address, so if a user change ip, It does not work in lan.
 
Old 08-07-2007, 07:35 AM   #2
culin
Member
 
Registered: Sep 2006
Distribution: Fedora Core 10
Posts: 254

Rep: Reputation: 32
you can bind a particular IP address to a MAC address like this...
host ns {
next-server marvin.redhat.com;
hardware ethernet 00:14:22:58:1D:4F;
fixed-address 207.175.42.254;
}

in the /etc/dhcpd.conf file...
 
Old 08-07-2007, 07:43 AM   #3
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
@culin: is that restrictive? Like, if the client just chooses its own ip and uses that on the lan, that would not be blocked in any way, right?
 
Old 08-08-2007, 12:42 AM   #4
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 226

Original Poster
Rep: Reputation: 30
agree with muha question...
 
Old 08-08-2007, 12:13 PM   #5
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Rep: Reputation: 36
Are you asking about a user who puts in their own IP, instead of using DHCP. If so, then it will be a fixed IP, and DHCP won't be involved. DHCP will only hand out IPs to clients, who request one.

Or are you asking about a user who takes his machine off one network, using DHCP, and connects it to yours, where, initially, the client will try and renew the existing IP. In this case, DHCP should reject that request, and the client will then request a new IP, which will be the one specified in your DHCP configuration.

Cheers.
 
Old 08-10-2007, 02:23 AM   #6
daveginorge
Member
 
Registered: Oct 2006
Location: Porsgrunn, Norway
Distribution: CentOS 5
Posts: 93

Rep: Reputation: 16
You would need to set up DHCP as "Culin" has stated in his previous post, this will always supply the same IP adress to a particular MAC address.

If the user changes the IP adress manually, you will need to block this on your Firewall using IP tables to allow only the DHCP adresses.

HTH

Last edited by daveginorge; 08-10-2007 at 02:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 bruvajon Linux - Software 34 11-30-2011 04:08 PM
Bind Mac with Ip address shipon_97 Linux - Newbie 5 11-23-2007 01:14 AM
Single DHCP server ,to provide the ip address to a MAC address in two different subne alix123 Linux - Software 5 05-09-2007 12:16 AM
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 05:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 11:33 AM


All times are GMT -5. The time now is 06:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration