本帖最后由 bonnyandsky 于 2022-1-12 13:19 编辑
固件我编译的important]immortalwrt的源代码:immortalwrt/immortalwrt at openwrt-21.02 (github.com)
我以前用7621的时候vlan设置如下:
- config interface 'lan'
- option type 'bridge'
- option ifname 'lan1 lan2 lan3 lan4'
- option proto 'static'
- option ipaddr '192.168.0.1'
- option netmask '255.255.255.0'
- option ip6assign '60'
- config interface 'wan'
- option ifname 'wan'
- option _orig_ifname 'wan'
- option _orig_bridge 'false'
- option proto 'pppoe'
- option username 'xxxxxx'
- option password 'xxxxx'
- option ipv6 'auto'
- option keepalive '0'
- config switch_vlan
- option device 'switch0'
- option vlan '3'
- option vid '85'
- option ports '0t 1t 2t 3t 4t'
- config switch_vlan
- option device 'switch0'
- option vlan '4'
- option ports '0t 1t 2t 3t 4t'
- option vid '51'
复制代码
后来用x86的4口软路由,用lean的18.06编译的固件vlan设置如下:
- config interface 'lan'
- option type 'bridge'
- option proto 'static'
- option netmask '255.255.255.0'
- option _orig_ifname 'eth0'
- option _orig_bridge 'true'
- option ifname 'eth0 eth2 eth3'
- option dns '119.29.29.29 223.5.5.5'
- option ipaddr '192.168.0.1'
- option ip6assign '64'
- config interface 'wan'
- option ifname 'eth1'
- option _orig_ifname 'eth1'
- option _orig_bridge 'false'
- option proto 'pppoe'
- option username 'xxxxxx'
- option password 'xxxx'
- option ipv6 'auto'
- option keepalive '0'
- config interface 'iptv85'
- option type 'bridge'
- option ifname 'eth0.85 eth1.85 eth2.85 eth3.85'
- option _orig_ifname 'eth0.85 eth1.85 eth2.85 eth3.85'
- option _orig_bridge 'true'
- option proto 'dhcp'
- config interface 'iptv51'
- option type 'bridge'
- option proto 'none'
- option ifname 'eth0.51 eth1.51 eth2.51 eth3.51'
- option auto '1'
复制代码 但是现在换了21.02后 不知道怎么设置了。尝试过下面这个设置方法,iptv可以用了,但是上网都不行了。
- config interface 'loopback'
- option device 'lo'
- option proto 'static'
- option ipaddr '127.0.0.1'
- option netmask '255.0.0.0'
- config globals 'globals'
- config device
- option name 'br-lan'
- option type 'bridge'
- list ports 'eth0'
- list ports 'eth2'
- list ports 'eth3'
- config interface 'lan'
- option proto 'static'
- option ipaddr '192.168.0.1'
- option netmask '255.255.255.0'
- option ip6assign '60'
- list dns '119.29.29.29'
- option device 'br-lan'
- config interface 'wan'
- option proto 'pppoe'
- option username 'xxxxxxx'
- option password 'xxxxxxx'
- option ipv6 'auto'
- option device 'eth1'
- config interface 'wan6'
- option device 'eth1'
- option proto 'dhcpv6'
- config device
- option type '8021q'
- option ifname 'eth0'
- option vid '85'
- option name 'eth0.85'
- option ipv6 '0'
- config device
- option type '8021q'
- option ifname 'eth1'
- option vid '85'
- option name 'eth1.85'
- option ipv6 '0'
- config device
- option type '8021q'
- option ifname 'eth2'
- option vid '85'
- option name 'eth2.85'
- option ipv6 '0'
- config device
- option type '8021q'
- option ifname 'eth3'
- option vid '85'
- option name 'eth3.85'
- option ipv6 '0'
- config device
- option type 'bridge'
- option name 'br-vlan85'
- list ports 'eth0.85'
- list ports 'eth1.85'
- list ports 'eth2.85'
- list ports 'eth3.85'
- option ipv6 '0'
- config interface 'iptv85'
- option proto 'dhcp'
- option device 'br-vlan85'
复制代码
请不要胡乱输入以及粘贴、复制等方式灌水
请尊重作者、并共同维护网站的正常阅读,否则账户将会被限制发帖、回帖,站内短信以及阅读权限等都会受到影响,谢谢。
具体限制方式:https://www.right.com.cn/forum/thread-8307840-1-1.html
|