Hi, I configured (basic) DHCP on two different interfaces : listen { ipaddr = * port = 67 type = dhcp interface = eth0 broadcast = yes } listen { ipaddr = * port = 67 type = dhcp interface = eth1.102 broadcast = yes } I need to establish a different (basic for now) lease policy by interface (ie. different network range). How can I know from which interface the request came? PS. By the way, if I don't set ipaddr = * , broadcast are not handled. Normal? -- Francois Gaudreault, ing. jr fgaudreault@inverse.ca :: +1.514.447.4918 (x130) :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org)
Francois Gaudreault wrote:
I configured (basic) DHCP on two different interfaces : ... I need to establish a different (basic for now) lease policy by interface (ie. different network range). How can I know from which interface the request came?
You configure different virtual servers. See raddb/sites-available/README
PS. By the way, if I don't set ipaddr = * , broadcast are not handled. Normal?
Yes. If you specify a unique IP, only packets to that IP are received by FreeRADIUS. Alan DeKok.
HI Alan, On 11-10-18 3:37 PM, Alan DeKok wrote:
You configure different virtual servers. See raddb/sites-available/README Right. That one was obvious. Sorry about that :S It was not clear that the listen statement was also supporting the virtual-server flag. Maybe I am tired...
PS. By the way, if I don't set ipaddr = * , broadcast are not handled. Normal? Yes. If you specify a unique IP, only packets to that IP are received by FreeRADIUS. That's what I thought, but I wanted to check with you.
Another quick question, if we want to use perl in the "dhcp DHCP-Discover" section, which sub should I redefine in the perl script? -- Francois Gaudreault, ing. jr fgaudreault@inverse.ca :: +1.514.447.4918 (x130) :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org)
participants (2)
-
Alan DeKok -
Francois Gaudreault