DHCP reply not leaving machine
Rok Kosir
rok.kosir at cosylab.com
Mon Oct 28 16:04:16 CET 2013
Just installed another laptop with centos 6, built FR from git and i got
same result..
It makes me wonder if i have my configuration correctly set, if anyone
can confirm, here are my steps:
- I did clean install of centos 6, installed required packages and built
and installed freeradius from git
- set IP on FR machine on eth0 to 192.168.10.1 with netmask 255.255.255.0
- cleared iptables and disabled selinux
- added mac2ip to mods-enabled
- created folder mods-config/passwd/ and edited file mac2ip with this
content: 00:30:48:32:d7:5f,192.168.10.102 (this is the mac of ubuntu
machine which is waiting for dhcp IP)
- created file dhcp-static under sites-enabled with this content:
server dhcp {
listen {
type = dhcp
ipaddr = 255.255.255.255
port = 67
interface = eth0
broadcast = yes
}
dhcp DHCP-Discover {
update reply {
DHCP-Message-Type = DHCP-Offer
}
update reply {
DHCP-Domain-Name-Server = 0.0.0.0
DHCP-IP-Address-Lease-Time = 7200
DHCP-DHCP-Server-Identifier = 192.168.10.1
}
mac2ip
ok
}
dhcp DHCP-Request {
update reply {
DHCP-Message-Type = DHCP-Ack
}
update reply {
DHCP-Domain-Name-Server = 0.0.0.0
DHCP-IP-Address-Lease-Time = 7200
DHCP-DHCP-Server-Identifier = 192.168.10.1
}
mac2ip
ok
}
dhcp {
reject
}
}
started the server with radiusd -X and received dhcp requests, but no
respose was gathered.
More information about the Freeradius-Users
mailing list