LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2009, 05:23 AM   #1
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Question MAC address with DHCP


Hi All,

I am using RHEL-5 box at my workplace, and using DHCP, for getting dynamic IP address. The actual server machine is somewhere else.

I want to know when DHCP is in use , then we can't get statis IP address from local machine. But an we get the Ethernet address from the local machine, or DHCP effects Ethernet address as well ???

Thank You all in advance,
Kapil.
 
Old 09-28-2009, 05:58 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I do not quite understand your question, but no, hardware (MAC) addresses are not controlled by DHCP.

The MAC address is supposed to be unique for each and every device out there, but you can change it anyway with most hardware (this comes in handy when you have cable or DSL connection at home which is tied to a single hardware address - and when you change computer/router/interface card, you need to reuse your old address). You will notice that iwconfig will report the hardware address even for interfaces that do not have an IP address configured.
 
Old 09-28-2009, 06:02 AM   #3
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Original Poster
Rep: Reputation: 41
Thumbs up

Quote:
Originally Posted by hw-tph View Post
I do not quite understand your question, but no, hardware (MAC) addresses are not controlled by DHCP.

The MAC address is supposed to be unique for each and every device out there, but you can change it anyway with most hardware (this comes in handy when you have cable or DSL connection at home which is tied to a single hardware address - and when you change computer/router/interface card, you need to reuse your old address). You will notice that iwconfig will report the hardware address even for interfaces that do not have an IP address configured.
Hi HW-TPH,

This is what I was thinking , but got a bit confused so thought it's better to get some expert opinion.
Thank you very much for the reply.

Regards,
Kapil.
 
Old 09-28-2009, 07:52 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
The MAC address is burnt into each NIC during manufacture: http://en.wikipedia.org/wiki/MAC_address

DHCP can hand out dynamic OR static addresses (static is assigned according to requesting MAC): http://www.linuxtopia.org/online_boo...ml#config-file
 
Old 09-29-2009, 10:12 AM   #5
BashTin
Member
 
Registered: May 2003
Location: West Midlands, United Kingdom.
Distribution: Slackware 14.1
Posts: 269

Rep: Reputation: 32
Yes the MAC is 'burned' into each NIC but it is easy to change under Linux with something along the lines of

Code:
ifconfig eth0 down
ifconfig eth0 hw ether DE:AD:01:DE:AD:01
ifconfig eth0 up
BashTin
 
  


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
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 01:54 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
DHCP + Mac address tiger3090 Linux - Networking 1 12-07-2004 09:13 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 11:33 AM
MAC Address Encap Vs DHCP zooma Linux - Networking 0 11-21-2001 10:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:17 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration