/etc/config/dhcp
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
/etc/config/network
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
list dns '114.114.114.114'
option ipaddr '192.168.3.33'
option gateway '192.168.3.1'
该配置文件描述了一个OpenWrt路由器的网络设置,包括LAN和WAN接口的DHCP服务以及静态IP配置。LAN接口配置了一个DHCP服务器,分配范围从192.168.3.100到192.168.3.150,租约时间为12小时。WAN接口则被忽略,不启用DHCP。同时,LAN接口使用192.168.3.33作为静态IP地址,子网掩码为255.255.255.0,DNS服务器设为114.114.114.114,网关为192.168.3.1。
2562

被折叠的 条评论
为什么被折叠?



