Relay and Option 82 reports wrong GIADDR address - ISC version 3.0.5-7
Martin Hansen
mhansen at netgear.com
Wed Oct 8 09:29:41 UTC 2008
Hello all,
I am kind of a newbie into this - so i am sorry if i am asking stupid
here - please bear with me.
I have a problem with above mention ISC server where i am usinmg relay
agent and option 82 -
My config file look like this:
max-lease-time 3600;
default-lease-time 3600;
#max-lease-time 180;
#default-lease-time 180;
#
# Set standard options
#
option domain-name "test-int";
option domain-name-servers 172.16.1.60, 172.16.1.60, 213.50.29.170,
213.50.29.180;
#
# Class section
#
#log(info,concat("-- Option 82 info:
",binary-to-ascii(10,8,"",reverse(2,option agent.circuit-id))));
log(info,concat("-- String: ",binary-to-ascii(10,8,"",option
agent.circuit-id));
log(info,concat("++ Option 82 info:
",substring(binary-to-ascii(10,8,"",option agent.circuit-id),3,4)));
class "lab-besteffort" {
match if substring(binary-to-ascii(10,8,"",option
agent.circuit-id),3,4) = "010";
spawn with binary-to-ascii(16,8,":",hardware);
lease limit 5;
} # class lab-besteffort
class "lab-iptv" {
match if substring(binary-to-ascii(10,8,"",option
agent.circuit-id),3,4) = "020";
spawn with binary-to-ascii(16,8,":",hardware);
lease limit 5;
} # class lab-iptv
class "lab-voip" {
match if substring(binary-to-ascii(10,8,"",option
agent.circuit-id),3,4) = "030";
spawn with binary-to-ascii(16,8,":",hardware);
lease limit 5;
} # class lab-voip
class "lab-unused" {
match if substring(binary-to-ascii(10,8,"",option
agent.circuit-id),3,4) = "040";
spawn with binary-to-ascii(16,8,":",hardware);
lease limit 5;
} # class lab-unused
class "lab-management" {
match if substring(binary-to-ascii(10,8,"",option
agent.circuit-id),3,4) = "050";
spawn with binary-to-ascii(16,8,":",hardware);
lease limit 5;
} # class lab-management
class "wlan-public" {
match if substring(binary-to-ascii(10,8,"",option
agent.circuit-id),3,4) = "110";
spawn with binary-to-ascii(16,8,":",hardware);
lease limit 5;
} # class wlan-public
#
# Test.int - Defined shared networks
#
shared-network lab-besteffort-vlan-10 {
subnet 172.16.10.0 netmask 255.255.255.128 {
pool {
allow members of "lab-besteffort";
max-lease-time 120;
default-lease-time 120;
range 172.16.10.32 172.16.10.63;
option routers 172.16.10.1;
option broadcast-address 172.16.10.127;
option subnet-mask 255.255.255.128;
log(info,concat("lab-best-effort-vlan-10:
",binary-to-ascii(10,8,".",option agent.circuit-id)));
}
}
} # shared-network lab-besteffort-vlan-10
shared-network lab-iptv-vlan-20 {
subnet 172.16.20.0 netmask 255.255.255.128 {
pool {
allow members of "lab-iptv";
max-lease-time 120;
default-lease-time 120;
range 172.16.20.32 172.16.20.63;
option routers 172.16.20.1;
option broadcast-address 172.16.20.127;
option subnet-mask 255.255.255.128;
log(info,concat("lab-iptv-vlan-20:
",binary-to-ascii(10,8,".",option agent.circuit-id)));
}
}
} # shared-network lab-iptv-vlan-20
shared-network lab-voip-vlan-30 {
subnet 172.16.30.0 netmask 255.255.255.128 {
pool {
allow members of "lab-voip";
max-lease-time 120;
default-lease-time 120;
range 172.16.30.32 172.16.30.63;
option routers 172.16.30.1;
option broadcast-address 172.16.13.127;
option subnet-mask 255.255.255.128;
log(info,concat("lab-voip-vlan-30:
",binary-to-ascii(10,8,".",option agent.circuit-id)));
}
}
} # shared-network lab-voip-vlan-30
shared-network lab-unused-vlan-40 {
subnet 172.16.40.0 netmask 255.255.255.128 {
pool {
allow members of "lab-unused";
max-lease-time 120;
default-lease-time 120;
range 172.16.40.32 172.16.40.63;
option routers 172.16.40.1;
option broadcast-address 172.16.40.127;
option subnet-mask 255.255.255.128;
log(info,concat("lab-unused-vlan-40:
",binary-to-ascii(10,8,".",option agent.circuit-id)));
}
}
} # shared-network lab-unused-vlan-40
shared-network lab-mgmt-vlan-50 {
subnet 172.16.50.0 netmask 255.255.255.128 {
pool {
# allow members of "lab-management";
max-lease-time 120;
default-lease-time 120;
range 172.16.50.32 172.16.50.63;
option routers 172.16.50.1;
option broadcast-address 172.16.50.127;
option subnet-mask 255.255.255.128;
log(info,concat("lab-mgmt-vlan-50:
",binary-to-ascii(10,8,".",option agent.circuit-id)));
}
}
} # shared-network lab-mmgt-vlan-50
shared-network wlan-public-vlan-110 {
subnet 172.16.2.0 netmask 255.255.255.240 {
pool {
allow members of "wlan-public";
max-lease-time 360;
default-lease-time 360;
range 172.16.2.3 172.16.2.14;
option routers 172.16.2.1;
option broadcast-address 172.16.2.15;
option subnet-mask 255.255.255.240;
option domain-name "wlan-Test-int";
option domain-name-servers 213.50.29.170,
213.50.29.180;
log(info,concat("wlan-public-vlan-110:
",binary-to-ascii(10,8,".",option agent.circuit-id)));
}
}
} # shared-network wlan-public-vlan-110
#
# Test1.int LAN - Standard LAN network
#
subnet 172.16.1.0 netmask 255.255.255.192 {
pool {
range 172.16.1.32 172.16.1.47;
option routers 172.16.1.1;
option broadcast-address 172.16.1.63;
option subnet-mask 255.255.255.192;
option static-routes 172.16.210.2 172.16.1.2,
172.16.200.2 172.16.1.2, 172.16.200.3 172.16.1.2;
}
} # Subnet 172.16.1.0
I have a dhcp relay on selected VLANs that adds opt 82 string - Then
when the value arrives to ISC DHCPd, it has the wrong GIADDR causing the
DHCPd to give an error
The GIADDR is ofcourse the MGMT IP of the Switch there have Relaying
enable..
Thanks.
Cheers
Martin
This e-mail, including attachments, may include confidential
and/or proprietary information, and may be used only by the
person or entity to which it is addressed. If the reader of this
e-mail is not the intended recipient or his or her authorized
agent, the reader is hereby notified that any dissemination,
distribution or copying of this e-mail is prohibited. If you have
received this e-mail in error, please notify the sender by
replying to this message and delete this e-mail immediately
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20081008/cbf85397/attachment.html>
More information about the dhcp-users
mailing list