OpenWRT单WAN多帐户 多拔叠加网络( Multi-WAN+macvlan)

以下设置以网件wndr3700v4路由为例


一、安装所需的软件 macvlan、luci-app-mwan3

 

opkg update

opkg install ip

opkg install komd-macvlan

opkg install

编辑/etc/rc.local 增加虚拟网卡、MAC地址
root@ :~# vi /etc/rc.local 

 

增加
ip link add link eth0.2 eth2 type macvlan    增加wan2 虚拟网卡   eth0.2 对应前面记下的
ifconfig eth2 hw ether 00:11:22:33:44:5E
ifconfig eth2 up

ip link add link eth0.2 eth3 type macvlan    增加wan3虚拟网卡 eth0.2 对应前面记下的
ifconfig eth3 hw ether 00:11:22:33:44:6E
ifconfig eth3 up

如果需要更多 自行添加   少的话可以少加点,把MAC改成所需的地址

修改后保存 退出 
按esc 退出 。shift+:看见左下角显示 :输入wq 保存退出

重启路由

 

或者直接在luci启动项最下面文本框添加

sleep 3
ip link add link eth0.2 type macvlan
exit 0


 

二、进入web界面设置mvan3


  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值