V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wacke  ›  全部回复第 4 页 / 共 4 页
回复总数  63
1  2  3  4  
我的network的config,我这边直接用eth0.3,就可以多拨了,也不需要额外的mac地址。。。


[code]
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config globals 'globals'
option ula_prefix '2001:470:19:978::/64'

config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option macaddr '44:94:fc:8a:60:f7'
option ip6prefix '2001:470:19:978::/64'
option ip6addr '2001:470:19:978::1/64'

config interface 'wan1'
option ifname 'eth0.2'
option _orig_ifname 'eth0.2'
option _orig_bridge 'false'
option proto 'pppoe'
USERNAME HIDDEN
PASSWORD HIDDEN
option peerdns '0'
option dns '114.114.114.114 114.114.115.115'
option metric '10'

config interface 'wan2'
option ifname 'eth0.3'
option _orig_ifname 'eth0.3'
option _orig_bridge 'false'
option proto 'pppoe'
USERNAME HIDDEN
PASSWORD HIDDEN
option peerdns '0'
option dns '114.114.114.114 114.114.115.115'
option metric '20'

config interface 'wan3'
option ifname 'eth0.3'
option _orig_ifname 'eth0.3'
option _orig_bridge 'false'
option proto 'pppoe'
USERNAME HIDDEN
PASSWORD HIDDEN
option peerdns '0'
option dns '114.114.114.114 114.114.115.115'
option metric '30'

config interface 'wan4'
option ifname 'eth0.3'
option _orig_ifname 'eth0.3'
option _orig_bridge 'false'
option proto 'pppoe'
USERNAME HIDDEN
PASSWORD HIDDEN
option peerdns '0'
option dns '114.114.114.114 114.114.115.115'
option metric '40'

config interface 'wan5'
option ifname 'eth0.3'
option _orig_ifname 'eth0.3'
option _orig_bridge 'false'
option proto 'pppoe'
USERNAME HIDDEN
PASSWORD HIDDEN
option peerdns '0'
option dns '114.114.114.114 114.114.115.115'
option metric '50'

config interface 'wan6'
option ifname 'eth0.3'
option _orig_ifname 'eth0.3'
option _orig_bridge 'false'
option proto 'pppoe'
USERNAME HIDDEN
PASSWORD HIDDEN
option peerdns '0'
option dns '114.114.114.114 114.114.115.115'
option metric '60'

config interface 'wan7'
option _orig_ifname '@wan'
option _orig_bridge 'false'
option proto '6in4'
option peeraddr '216.218.221.6'
option mtu '1480'
option ip6addr '2001:470:18:978::2/64'
option ip6prefix '2001:470:19:978::/64'

config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'

config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 1 2 3'

config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 5'

config switch_vlan
option device 'switch0'
option vlan '3'
option ports '0t 4'

config interface 'openvpn'
option proto 'none'
option ifname 'tun0'
option auto '1'
option metric '70'
[/code]
我是两条线路的,划了3个vlan,一个lan,一个电信wan,一个移动的wan,移动的wan可以单线多拨的,我也没用macvlan,都能获取到ip
多拨一定需要macvlan吗,我的wndr4300,没装macvlan,也可以多拨,每个wan工作都正常...有大神给科普下吗?
1  2  3  4  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   3571 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 9ms · UTC 04:43 · PVG 12:43 · LAX 20:43 · JFK 23:43
♥ Do have faith in what you're doing.