家里光猫拨号,有两台设备需要固定内网 ip,但是又只能通过 dhcp 获取,所以需要对应 mac 地址分配固定 ip 。光猫通过 telnet 连接后,找到了一个配置文件如下:
/flash/cfg/app_conf/udhcpd # cat udhcpd_lan.conf
max_leases 254 #must be first
start 192.168.1.2
end 192.168.1.254
interface br0
lease_file /var/udhcpd_lan.leases #default: /var/lib/misc/udhcpd.leases
pidfile /var/run/udhcpd_lan.pid #default: /var/run/udhcpd.pid
option dns
XXX.XXX.XXX.XXX XXX.XXX.XXX.XXXoption subnet 255.255.255.0
option router 192.168.1.1
option lease 604800
# Static leases map
HGW_start 192.168.2.0
HGW_end 192.168.2.20
STB_start 192.168.1.155
STB_end 192.168.1.166
Camera_start 192.168.1.136
Camera_end 192.168.1.144
Computer_start 192.168.1.101
Computer_end 192.168.1.135
Phone_start 192.168.1.177
Phone_end 192.168.1.215
#IP munber limit
IP_Number 4
IP_limit_enable=yes
dns_relay_enable=1
enable125=yes
请问怎么修改能实现我要的效果呢?