以下设置以网件wndr3700v4路由为例
一、安装所需的软件
opkg update
opkg install ip
opkg install komd-macvlan
opkg install
编辑/etc/rc.local 增加虚拟网卡、MAC地址
root@
增加
ip link add link eth0.2 eth2 type macvlan
ifconfig eth2 hw ether 00:11:22:33:44:5E
ifconfig eth2 up
ip link add link eth0.2 eth3 type macvlan
ifconfig eth3 hw ether 00:11:22:33:44:6E
ifconfig eth3 up
如果需要更多 自行添加
修改后保存 退出
按esc 退出 。shift+:看见左下角显示 :输入wq 保存退出
重启路由
或者直接在luci启动项最下面文本框添加
sleep 3
ip link add link eth0.2 type macvlan
exit 0
二、进入web界面设置mvan3