unifreq / openwrt_packit

Flippy's openwrt packaged source code
1.42k stars 417 forks source link

兼容ImmortalWrt #144

Open tporwx opened 2 years ago

tporwx commented 2 years ago

能否兼容ImmortalWrt? 现在打包此源码刷N1后,网络不正常。

0xffffharry commented 1 year ago

应该是网络设置的问题,建议用imagebuilder重新打包固件,调整默认网络配置:


config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option device 'eth0'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.1.250'
        option gateway '192.168.1.1'
        list dns '192.168.1.1'

默认旁路由设置,地址 192.168.1.250 网关 192.168.1.1 DNS 192.168.1.1

RookieZoe commented 1 month ago

使用 losetup 挂载 打包好的 img 文件,然后再挂载分区到目录,直接修改或创建 /etc/config/network 文件即可