<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Oformaterad text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.E-postmall17
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:windowtext;}
span.E-postmall18
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.E-postmall19
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.E-postmall20
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.E-postmall21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.OformateradtextChar
        {mso-style-name:"Oformaterad text Char";
        mso-style-priority:99;
        mso-style-link:"Oformaterad text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=SV link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Ryan<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have a almost similar need in my network. I have users on
cisco-switches, which if they connect a “voip” device should get an
IP from our voip-address-range and If the connect anything else they shout get
the the public IP assigned to them. The network equipment is also configured so
that the can set the public IP static on there nic.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The example below shows configuration for one port in the
network “as07-Fa0/1”. I of cause has to configure one “class”
statement, and one “pool” statement for each customer in the
network. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If a customer are allowed to mote then one IP, you only has to
add another “range x.x.x.x” in the pool statement. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>class "VOIP_TA2S" {<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>        match if(substring(option
vendor-class-identifier, 0, 4) = "voip"); }<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>class "as07-Fa0/1" {<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>        match if(not (substring(option
vendor-class-identifier, 0, 4) =<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>"voip") and substring (option
agent.remote-id, 2, 4) = "as07" and suffix (option agent.circuit-id,
1) = 3); }<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>shared-network "my-network" {<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>        subnet 172.31.253.0 netmask
255.255.255.0 {<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option
routers                  172.31.253.1;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option
subnet-mask              255.255.255.0;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option
broadcast-address        172.31.253.255;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option tftp-server-name
"172.31.253.10";<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option bootfile-name
"configfile.dat";<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                pool {<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                        range
172.31.253.128 172.31.253.254;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                        allow members of
"VOIP_TA2S";<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                }<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>        }<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>        subnet 1.2.3.0 netmask
255.255.255.0 {<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option
routers                  1.2.3.1;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option
subnet-mask              255.255.255.0;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                option
broadcast-address        1.2.3.255;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                pool {<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                        range 1.2.3.20;<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                        allow members of
"as07-Fa0/1";<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>                </span>}<o:p></o:p></p>

<p class=MsoPlainText>        }<o:p></o:p></p>

<p class=MsoPlainText>}<o:p></o:p></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Regards Anders Rosendal<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Ps. The “</span><span lang=EN-US>agent.circuit-id, 1) =
3);” matches the port in the switch. Cisco has in there infinite wisdom
made portindex 3 represent physical port 1, index 4 port 2 and so on. Ds.</span><span
lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Från:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
dhcp-users-bounce@isc.org [mailto:dhcp-users-bounce@isc.org] <b>För </b>Ryan
Zierden<br>
<b>Skickat:</b> den 30 april 2008 01:39<br>
<b>Till:</b> dhcp-users@isc.org<br>
<b>Ämne:</b> ISC.ORG DHCP Server Option 82 - Use Circuit ID to assign fixed IP
address<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>ISC.ORG Community:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>I have all the DHCP option data coming from my DSLAM up through up
to my DHCP server as seen below.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Example of dhcpd.log show dhcp option 82 data:<o:p></o:p></span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:black'><br>
Apr 25 13:57:08 inetdhcp dhcpd: DHCPDISCOVER from 00:90:d0:25:46:a4 via
172.21.61.1 <br>
Apr 25 13:57:08 inetdhcp dhcpd: DHCPOFFER on 172.21.61.10 to 00:90:d0:25:46:a4
via 172.21.61.1 <br>
<span style='background:lime'>Apr 25 13:57:08 inetdhcp dhcpd: Lease for
172.21.61.10 is connected to ADSL Port 1, on VPI/VCI 0/35, VLAN 310 on Switch
172.16.105.2</span> <br>
Apr 25 13:57:08 inetdhcp dhcpd: DHCPREQUEST for 172.21.61.10 (192.168.250.200)
from 00:90:d0:25:46:a4 via 172.21.61.1 <br>
Apr 25 13:57:08 inetdhcp dhcpd: DHCPACK on 172.21.61.10 to 00:90:d0:25:46:a4
via 172.21.61.1</span></b><span lang=EN-US style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:navy'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Got this simply by turning on </span><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Arial","sans-serif";background:lime'>“dhcpr
enable”</span></b><span lang=EN-US style='font-size:10.0pt;font-family:
"Arial","sans-serif";color:navy'> in theDSLAM and then on the VLAN interfaces
on the Cisco 7609-S configuring</span><span lang=EN-US style='font-size:10.0pt;
font-family:"Arial","sans-serif"'> <span style='background:lime'>“</span></span><b><span
lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";background:
lime'>ip dhcp relay information trusted”</span></b><b><span lang=EN-US
style='font-size:9.0pt;font-family:"Tahoma","sans-serif"'> </span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>and
adding the following config to the global section of my dhcpd.conf file:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:black;background:lime'>if exists agent.circuit-id <br>
{ <br>
log (info, concat("Lease for ", binary-to-ascii (10, 8, ".",
leased-address), " is connected to ADSL Port ", <br>
binary-to-ascii (10, 8, "", substring(option agent.circuit-id, 0,
1)), ", on VPI/VCI ", <br>
binary-to-ascii (10, 16, "/", substring(option agent.circuit-id, 1,
4)), ", VLAN ", <br>
binary-to-ascii (10, 32, "", substring(option agent.circuit-id, 5,
4)), " on Switch ", <br>
binary-to-ascii (10, 8, ".", substring(option agent.circuit-id, 9,
4)))); <br>
}</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:14.0pt;font-family:
"Tahoma","sans-serif";color:navy'>My Question is:</span></b><b><span
lang=EN-US style='font-size:14.0pt;font-family:"Tahoma","sans-serif"'><o:p></o:p></span></b></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>How do configure ISC.ORG dhcpd.conf file to assign fixed-address
based on the circuit ID information as opposed to the MAC-ID.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>We have been doing the following which works but is cumbersum as
CPE MAC ID change frequently:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span lang=EN-US
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'># TEST
PORT 1 <br>
host rgn-172-21-61-10 { <br>
hardware ethernet 00:90:d0:25:46:a4; <br>
fixed-address 172.21.61.10; <br>
} </span><b><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:black'><o:p></o:p></span></b></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:purple'>And want I want to do is something like this (note this is not
the correct syntax to configure this properly this but gives you the logic of
what I am after:<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:purple'><br>
To something like <br>
# TEST PORT 1 <br>
host rgn-172-21-61-10 { <br>
agent.circuitID <span style='background:lime'>ADSL Port 1, on VPI/VCI 0/35,
VLAN 310 on Switch 172.16.105.2</span>; <br>
fixed-address 172.21.61.10; <br>
}<o:p></o:p></span></b></p>

<p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:black'><o:p> </o:p></span></b></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Does anyone have ISC.ORG DHCP configured properly where it is
working to assign fixed IP address based on circuit id information from option
82? If so, I would be very interested in hearing from your as to how you
properly configure this scenario. Most of my research so far indicates I have
to have ISC.ORG 3.x (which I do) and use client class and subclass but I cannot
find working examples of this nor do I know if it is the correct direction to
pursue or not. <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>I thank you in advance for any assistance you may be able to offer
me.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Thank you,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Ryan Zierden<o:p></o:p></span></p>

<p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>IT Manager<o:p></o:p></span></p>

<p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>diversiCOM – MTC<o:p></o:p></span></p>

<p class=MsoNormal><span lang=DE style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>

<p class=MsoNormal><br>
-- <br>
This message has been scanned for viruses and <br>
dangerous content by <a href="http://www.mailscanner.info/"><b>MailScanner</b></a>
at <br>
mars.rosendal.nu, and is believed to be clean. <o:p></o:p></p>

</div>

</body>

<br />-- 
<br />This message has been scanned for viruses and
<br />dangerous content by
<a href="http://www.mailscanner.info/"><b>MailScanner</b></a> at 
<br />mars.rosendal.nu, and is believed to be clean.
</html>