本帖最后由 dogb 于 2011-2-5 05:59 编辑
- r: V4 M& _ X2 L% K+ f- o& D
[8 X9 O; [2 s' i% s) W' m回复 tangsoft 的帖子$ r! m( {% g @3 ~4 ?: f- Y
* D; B& t t) |1 M
openwrt 对5325E 的支持应该很完善了,source估计也不用改动
6 z3 {& x: L2 R( h% B( ?$ r Q; c/ Z/ b
最新进展,有兴趣的看看吧,不晓得下方红色字体部分是不是兄弟们一直在找的东东哦,对linux不了解,诶
8 B. ?- S% X7 M3 S }; K, I
* f: H V2 b$ g( _, \+ HUsing Robocfg
$ R" r3 S- k) s: L1 M9 iRobocfg is a utility written by Oleg Vdovikin to enable the hardware configuration of the Broadcom BCM5325E/536x VLAN enabled 6-port ethernet switch. When used properly, it can configure the switch in such a way that enables each of the five exposed ports of the switch to be treated as a separate, individual ethernet interface. Using robocfg, the switch can also be configured to tag packets for use in VLAN enabled networks, and to configure each port's MDI, duplex, and speed settings. Robocfg options can be issued individually, or strung together on one line, each new option and parameter separated by a space. See the bottom of this section for a copy of Robocfg's own stated parameters.
! `8 {/ l# V/ q! P: V* \5 m, k5 y' A9 }: h7 \. F% q
Advanced Configuration- A5 v0 m( D- I2 c: M% `8 T1 |
When changing port assignments for VLANs, the switch should be disabled before changing the settings, and then re-enabled after the settings have been entered. Of course, the configuration should also be done using a serial console or executed as a script, since reconfiguration of the switch will disconnect any current telnet or ssh session. Port numbers followed by a "t" will pass tagged packets(necessary for port 5), while port numbers with a "u", or no "t", will untag packets when passing them through the interface.
& O3 Y; K' Y0 F/ Q- O7 n( A+ J t$ c% u
Original Robocfg Parameter List
- z+ H V7 [" {4 sUsage: robocfg <op> ... <op>
* c) i9 L# n+ nOperations are as below:
/ F( r" l P3 |3 \& C8 [6 B7 Q show3 u& \8 I: l. T# A) C0 w
switch <enable|disable>1 V& }$ N* ` B- g. C6 b
port <port_number> [state <enabled|rx_disabled|tx_disabled|disabled>]
2 a, X9 v3 t4 T9 a3 } [stp none|disable|block|listen|learn|forward] [tag <vlan_tag>]
9 ?: t0 J" y& ] [media auto|10HD|10FD|100HD|100FD] [mdi-x auto|on|off]/ S/ c }+ s2 Q! I0 d
vlan <vlan_number> [ports <ports_list>]5 S0 |- c6 d8 c) {3 c: S2 B4 T) F3 m
vlans <enable|disable|reset>8 x+ a. r3 f% u z1 E6 W) q+ c
ports_list should be one argument, space separated, quoted if needed,
" B2 u& y! c8 \7 B port number could be followed by 't' to leave packet vlan tagged (CPU3 W6 x' [4 Y% r6 Q$ ]+ p% i
port default) or by 'u' to untag packet (other ports default) before
- E) D: D4 d H& @$ N6 }- O/ B bringing it to the port, '*' is ignored/ Q1 K7 w J* t! \
- \4 }) j% P, c
|