|
本帖最后由 矮星V 于 2023-2-17 10:20 编辑
安装附件里的三个ipk,其实 sdf8057 这位老哥的源码自带。
kmod-bonding_4.4.60-1_aarch64_cortex-a53.ipk
proto-bonding_2021-04-09-3_all.ipk
luci-proto-bonding_git-23.029.50249-41298f3-1_all.ipk
配置/etc/rc.local
- # Put your custom commands here that should be executed once
- # the system init finished. By default this file does nothing.
- ip link add bond-wan type bond mode balance-rr
- ip link add bond-lan type bond mode balance-rr
- ip link set eth0 type bond_slave
- ip link set eth1 type bond_slave
- ip link set eth2 type bond_slave
- ip link set eth3 type bond_slave
- ip link set eth0 master bond-wan
- ip link set eth3 master bond-wan
- ip link set eth1 master bond-lan
- ip link set eth2 master bond-lan
- ip link set bond-wan up
- ip link set bond-lan up
- exit 0
复制代码 配置/etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
# ipv6地址根据自己的改一下
option ula_prefix 'fd6b:1111:2222::/48'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.1'
option ifname 'bond-lan'
config interface 'wan'
option ifname 'bond-wan'
option proto 'pppoe'
#修改为自己的账号密码
option username '000000000000000@163.gd'
option password '000000000000000'
option ipv6 'auto'
option keepalive '0'
config interface 'wan6'
option proto 'dhcpv6'
option ifname 'bond-wan'
option reqaddress 'try'
option reqprefix 'auto'
注意要network要ssh改,不然进不去系统只能重置,两个都保存后重启
暂时还没在1000m宽带环境测试,需要更换华为带Q结尾的光猫,测试过聚合是成功了的,还可以配合TL-SG2008D 聚合使用。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|