- 固件:immortalwrt 21.02.7
- 换源:
sed -e 's,https://downloads.immortalwrt.org,https://mirrors.cernet.edu.cn/immortalwrt,g' \
-e 's,https://mirrors.vsean.net/openwrt,https://mirrors.cernet.edu.cn/immortalwrt,g' \
-i.bak /etc/opkg/distfeeds.conf
- 扩容
opkg update
opkg install block-mount kmod-usb-storage kmod-usb-storage-uas kmod-fs-ext4 e2fsprogs cfdisk
mkfs.ext4 /dev/sda1
mount -t ext4 /dev/sda1 /mnt
cp /overlay/* /mnt -a
umount /mnt
block detect > /etc/config/fstab
uci set fstab.@mount[0].target='/overlay'
uci set fstab.@mount[0].enabled='1'
uci commit fstab
reboot
- 安装zram
opkg update
opkg install kmod-zram zram-swap
dmesg | grep zram
cat /sys/block/zram0/comp_algorithm
cat /sys/block/zram0/disksize
- 设置中继IPV6
- 设置WAN口和LAN口的,DHCP服务器 为三个中继模式
- 在/etc/config/dhcp中,在WAN口配置下添加一条 option master ‘1’
- 重启路由