Debian路由服务器 下用 macvlan 实现多拨 增加带宽

先编辑一个新的 ppp连接 到/etc/ppp/peers下 找到先前ppp0拨号的配置
一般为 dsl-provider

vim dsl-provider

找到 plugin rp-pppoe.so eth0
把eth0 改为 eth0.1

添加虚拟网卡
ip link add link eth0 name eth0.1 address 11:11:11:22:22:22 type macvlan
激活网卡
ifconfig eth0.1 up
添加路由转发
iptables -t nat -A POSTROUTING -o ppp1 -j MASQUERADE

拨号
pon eth0.1

查看 如果有ppp1则为成功

实现均衡分流

ip route replace default scope global nexthop dev ppp0 weight 1 nexthop dev ppp1 weight 1

ok。。。。到windows下试试迅雷吧