找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 10137|回复: 3

Netgear WNDR3800刷OPENWRT之后如何设置双线接入

[复制链接]
发表于 2015-3-5 19:18 | 显示全部楼层 |阅读模式
不是一线多拨,是双物理WAN,原始的配置文件如下(已经打开WAN口的NWAN):
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 'fd3f:66d8:b260::/48'


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 ip6assign '60'


config interface 'wan'
        option ifname 'eth1'
        option _orig_ifname 'eth1'
        option _orig_bridge 'false'
        option username 'xxxxx'
        option password 'xxxxx'
        option metric '40'
        option mtu '1480'
        option proto 'none'


config interface 'wan6'
        option ifname '@wan'
        option proto 'dhcpv6'


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


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


config switch_port
        option device 'switch0'
        option port '1'
        option led '6'


config switch_port
        option device 'switch0'
        option port '2'
        option led '9'


config switch_port
        option device 'switch0'
        option port '5'
        option led '2'


config interface 'vwan1'
        option ifname 'macvlan1'
        option proto 'pppoe'
        option username 'xxxxx'
        option password 'xxxxx'
        option metric '41'
        option mtu '1480'


config interface 'vwan2'
        option ifname 'macvlan2'
        option proto 'pppoe'
        option username 'xxxxx'
        option password 'xxxxx'
        option metric '42'
        option mtu '1480'
现在想把LAN1改为第二个物理WAN,怎么修改设置?

我的恩山、我的无线 The best wifi forum is right here.
发表于 2015-3-5 19:31 | 显示全部楼层
本帖最后由 eraghjk 于 2015-3-5 19:35 编辑
config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 1 2 3 5t'

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

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

第2个wan口就是eth0.2
config interface 'wan2'
        option ifname 'eth0.2'
        option _orig_ifname 'eth0.2'
        option _orig_bridge 'false'
        option username 'xxxxx'
        option password 'xxxxx'
        option metric '50'
        option mtu '1480'
        option proto 'none'

点评

OK,非常感谢!  详情 回复 发表于 2015-3-5 19:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2015-3-5 19:59 | 显示全部楼层
eraghjk 发表于 2015-3-5 19:31
改成

第2个wan口就是eth0.2

OK,非常感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-3-5 23:04 来自手机 | 显示全部楼层
vlan交换机设置可以把多余的lan配置成不同的协议,可以2个或多个lan公用一个vlan分组物理端口互相桥接作用相同
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 14:51

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表