以下设置以网件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