找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: cncaihua

求教HG553 openwrt刷机后VLAN划分

[复制链接]
 楼主| 发表于 2011-4-24 18:56 | 显示全部楼层
确定了关系才晓得CPU连在哪个口,每个LAN口对应的口,才可以划VLAN,不然你这样划可能会挂,需要重刷
huaxie1988 发表于 2011-4-24 18:48

谢谢提醒。正在找资料学习,看怎么确定对应关系。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-24 18:59 | 显示全部楼层
谢谢提醒。正在找资料学习,看怎么确定对应关系。
cncaihua 发表于 2011-4-24 18:56
  1. root@OpenWrt:~# robocfg show
  2. probing eth1
  3. Switch: enabled
  4. Port 0(W):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  5. Port 1(4):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  6. Port 2(3):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  7. Port 3(2):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  8. Port 4(1):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  9. Port 5(C): 100FD enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  10. VLANs: BCM5325/535x disabled mac_check mac_hash
复制代码
用robocfg show确定
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-24 22:34 | 显示全部楼层
  1. root@OpenWrt:~# robocfg show
  2. probing eth1
  3. Switch: enabled
  4. Port 0(W):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  5. Port 1(4):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  6. Port 2(3):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  7. Port 3(2):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  8. Port 4(1):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  9. Port 5(C): 100FD enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
  10. VLANs: BCM5325/535x disabled mac_check mac_hash
复制代码
这个怎么看呀,是怎么样的对应关系呢。robocfg的WIKI也没有

HG553的架构要是和RG100-AA相同就好了。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-24 22:53 | 显示全部楼层
root@OpenWrt:~# robocfg show
probing eth1
Switch: enabled
Port 0(W):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
Port 1(4):  DOWN enabled stp: none vlan: 1 mac: 00:00:00:00:00:00
Port  ...
cncaihua 发表于 2011-4-24 22:34

插上会显示100FD,表示100M全双工,你4个口子都插一遍就晓得对应关系了,插上的时候会有2个口子100FD,一个是CPU,一个是你插的,换个口子就又有2个100FD,没变的那个就是CPU,明白?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-24 22:56 | 显示全部楼层
明白。搞了一天了。等下个礼拜天再继续。
现在挂一级路由BT东西呢,比较稳定。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-27 11:07 | 显示全部楼层
明白。搞了一天了。等下个礼拜天再继续。
现在挂一级路由BT东西呢,比较稳定。
cncaihua 发表于 2011-4-24 22:56

我试出来了,0对应LAN4,1对应LAN3,2对应LAN2,3对应LAN1,4空,5是CPU,网卡是ETH1
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-28 13:57 | 显示全部楼层
21# huaxie1988

呵呵,你比我进度快多了哦。看来4是和内置ADSL芯片通讯的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-28 14:01 | 显示全部楼层
本帖最后由 cncaihua 于 2011-4-28 14:43 编辑
我试出来了,0对应LAN4,1对应LAN3,2对应LAN2,3对应LAN1,4空,5是CPU,网卡是ETH1
huaxie1988 发表于 2011-4-27 11:07

那看来我的配置文件没有问题呀。。。LAN4口接猫拨号,可是并不成功。

当restart了network后错误信息


root@OpenWrt:~# /etc/init.d/network restart
'radio0' is disabled
/sbin/uci: Parse error (invalid command) at line 6, byte 0
/sbin/uci: Parse error (invalid command) at line 6, byte 0
'radio0' is disabled
/sbin/uci: Parse error (invalid command) at line 6, byte 0
/sbin/uci: Parse error (invalid command) at line 6, byte 0
root@OpenWrt:~# Sending discover...
Sending discover...
Sending discover...

然后LUCI的NETWORK配置页面就打不开了。

把uci的log导出来看看。。。。
暴汗,难道这交换芯片不支持VLAN?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-28 14:46 | 显示全部楼层
似乎找到原因了。

https://packetprotector.org/forum/viewtopic.php?id=3916

FIREWALL没更新。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-28 15:14 | 显示全部楼层
刚查VLAN 的WIKI 是不是BCM的VLAN这样配置更简洁

config 'switch' 'eth1'
        option 'vlan0' '1 2 3 5*'
        option 'vlan1' '0 5'

5* 这个接口是trunk.....
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-28 15:18 | 显示全部楼层
刚查VLAN 的WIKI 是不是BCM的VLAN这样配置更简洁

config 'switch' 'eth1'
        option 'vlan0' '1 2 3 5*'
        option 'vlan1' '0 5'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-28 19:37 | 显示全部楼层
刚查VLAN 的WIKI 是不是BCM的VLAN这样配置更简洁

config 'switch' 'eth1'
        option 'vlan0' '1 2 3 5*'
        option 'vlan1' '0 5'
cncaihua 发表于 2011-4-28 15:18

我最先就这样配置的,但是不行。。。

  1. root@OpenWrt:~# cat /etc/config/network

  2. config 'switch' 'eth1'
  3.         option 'reset' '1'
  4.         option 'enable_vlan' '1'

  5. config 'switch_vlan'
  6.         option 'device' 'eth1'
  7.         option 'vlan' '0'
  8.         option 'ports' '0 1 2 5*'

  9. config 'switch_vlan'
  10.         option 'device' 'eth1'
  11.         option 'vlan' '1'
  12.         option 'ports' '3 5*'

  13. config 'interface' 'loopback'
  14.         option 'ifname' 'lo'
  15.         option 'proto' 'static'
  16.         option 'ipaddr' '127.0.0.1'
  17.         option 'netmask' '255.0.0.0'

  18. config 'interface' 'lan'
  19.         option 'type' 'bridge'
  20.         option 'ifname' 'eth1.0'
  21.         option 'proto' 'static'
  22.         option 'ipaddr' '192.168.1.1'
  23.         option 'netmask' '255.255.255.0'
  24.         option 'nat' '1'

  25. config 'interface' 'wan'
  26.         option 'ifname' 'eth1.1'
  27.         option 'proto' 'pppoe'
  28.         option 'username' 'XXXX'
  29.         option 'password' 'XXXX'
  30.         option 'mtu' '1492'
  31.         option 'keepalive' '10'
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-28 19:38 | 显示全部楼层
这样配置就可以了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2011-4-28 19:51 | 显示全部楼层
28# huaxie1988
谢谢你!

我的也配置成功了.
我是在LUCI界面下配置的。
然后LUCI界面不允许ETH1.0,只能从ETH1.1开始,修改了我最初的配置文件就OK了。
现在是LAN4口当WAN口使用。
HG553也越来越好玩了。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2011-4-30 22:40 | 显示全部楼层
楼主,我也有一个HG553,想刷OPENWRT ,可是我实在太菜,能不能给个教程呀,谢谢了,我的QQ303508471
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 00:02

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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