|
前提条件:
1.自己用WNNDR3700单线双拨和双线双拨都成功了
2.安装了mwan3、luci-app-mwan3 和macvlan
-------------------------------------------------------------------------------------------------------------------------------------------------------------
单线双拨
1.network cfg中配置了
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '0 1 2 6'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '2'
option ports '4 5t'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '3 5t'
1.在 /etc/rc.local中加入了
sleep 6
ip link add link eth0.2 name vth1 type macvlan
ifconfig vth1 hw ether 00:11:22:33:44:55
ifconfig vth1 up
2.配置了虚拟网口的拨号
3.真实wan口可以正常拨号上网,但是虚拟网口vth1就播不上去
-------------------------------------------------------------------------------------------------------------------------------------------------------------
双线双拨
1.network cfg中配置了
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option vid '1'
option ports '0 1 2 6'
config switch_vlan
option device 'switch0'
option vlan '2'
option vid '2'
option ports '4 5t'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '3 5t'
2.每个wan口都可以独立的拨号上网,也配置不同的metric
3.两个wan口同时通过交换机拨号就都不能上网了
请教各位大神,这个是啥原因啊?谢谢!
|
|