Assigning IP Range via First Half of MAC ( hardware ) Address

This is a discussion on Assigning IP Range via First Half of MAC ( hardware ) Address within the Linux Networking forums, part of the Linux Forums category; Does anyone know if it is possible to assign a certain range of IP numbers to a certain range of ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2005
Chad
 
Posts: n/a
Default Assigning IP Range via First Half of MAC ( hardware ) Address

Does anyone know if it is possible to assign a certain range of IP
numbers to a certain range of MAC addresses? I'm not sure if this is
possible but I don't see why it wouldn't be. I need to do it so that I
can have my IP Phones on a different scope than my PC's. I don't wanna
manually enter them as reservec clients as this would take forever.
Thanks,
Chad

Reply With Quote
  #2 (permalink)  
Old 01-13-2005
prg
 
Posts: n/a
Default Re: Assigning IP Range via First Half of MAC ( hardware ) Address


Chad wrote:
> Does anyone know if it is possible to assign a certain range of IP
> numbers to a certain range of MAC addresses? I'm not sure if this is
> possible but I don't see why it wouldn't be. I need to do it so that

I
> can have my IP Phones on a different scope than my PC's. I don't

wanna
> manually enter them as reservec clients as this would take forever.
> Thanks,
> Chad


I started to respond earlier till I realized that I had no way of
finding out how your IP phones are connected (ethernet, wireless?),
what brand/model phone you have, and what if anything the maker reveals
about its initializtion process. It sounds like -- but you don't say
-- that you are trying to use dhcp to _assign_ them IPs. Is it even
possible? Or are you trying to _avoid_ assigning to other, dynamically
assigned, nics the IPs used by the IP phones?

If -- a big if -- you are assigning the phones dynamic IPs via dhcp,
then the _phone_ must send the dhcp server some kind of
client-identifier. The phone may do this already. Check the phones
docs for what they send in a lesae request. No docs? Sniff the wire
and read the packets. What are they sending that would identify them?

Read the man pages for all the dhcp related entries. Things like:
dhcpd
dhcpd.conf
dhclient
dhclient.conf
dhcpcd
dhcpcd.conf
dhcp-options

Which ones you have will depend on your distro and what dhcp software
you are running. I use ISC software, so ymmv.

Once you have an identifier that will work use a class statement (or
equivalent) together with a match expression in the dhcpd.conf. This
can be made to work in the second case mentioned above also.
hth,
prg
email above disabled

Reply With Quote
  #3 (permalink)  
Old 01-13-2005
David Schwartz
 
Posts: n/a
Default Re: Assigning IP Range via First Half of MAC ( hardware ) Address


"Chad" <chad@techoptics.net> wrote in message
news:1105574066.016790.58020@c13g2000cwb.googlegro ups.com...

> Does anyone know if it is possible to assign a certain range of IP
> numbers to a certain range of MAC addresses? I'm not sure if this is
> possible but I don't see why it wouldn't be. I need to do it so that I
> can have my IP Phones on a different scope than my PC's. I don't wanna
> manually enter them as reservec clients as this would take forever.


Your question is really vague. What does this have to do with Linux? Is
your question about configuring a DHCP server?

DS


Reply With Quote
  #4 (permalink)  
Old 01-14-2005
James Knott
 
Posts: n/a
Default Re: Assigning IP Range via First Half of MAC ( hardware ) Address

Chad wrote:

> Does anyone know if it is possible to assign a certain range of IP
> numbers to a certain range of MAC addresses? I'm not sure if this is
> possible but I don't see why it wouldn't be. I need to do it so that I
> can have my IP Phones on a different scope than my PC's. I don't wanna
> manually enter them as reservec clients as this would take forever.
> Thanks,
> Chad


Many NICs support locally assigned addresses. You can put what you want in
them, provided each one is unique on the local network. Incidentally, IPv6
uses the MAC address, to provide part of the IP.

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0