A) freeradius安装
sudo apt-get install freeradius
B)添加用户
sudo vim /etc/freeradius/users
test Cleartext-Password := "5678"
C)配置client 网段
sudo vim /etc/freeradius/clients.conf
client 192.168.0.0/16 {
secret = aaaa
shortname = privat-network-1
}
D)重启freeradius服务
sudo service freeradius restart
E)测试
radtest test 5678 localhost 0 testing123