問題1

# iptables -L -n -v
iptables v1.4.10: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

解法

[*] Networking support —->
          Networking options —->
          [*] Network packet filtering framework (Netfilter) —> 
                    IP: Netfilter Configuration —> 
                    [*] Packet filtering 
                    [*]     REJECT target support

問題2

# iptables -t mangle -L -v -n
iptables v1.4.10: can't initialize iptables table `mangle': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

解法

[*] Networking support —->
          Networking options —->
          [*] Network packet filtering framework (Netfilter) —> 
                    IP: Netfilter Configuration —> 
                    [*] Packet mangling

參考


台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()

  • emmc pconf 0x48 : 設定後可以從 emmc 開機,不需要 sd card。
  • tftp 84000000 uImage
  • mmc dev 0
  • mmc write 84000000 1000 5800

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()

  • cd users/boa/defconfig
  • ../tools/cvcfg-gw -r config.txt ../../../config.dat
  • cd ../../..
  • ./users/boa/tools/mgbin -o flash.img bootcode/btcode/boot.bin config.dat image/root.bin image/linux.bin
  • 如果有使用 default setting in firmware support 需要修改 users/boa/apmib/apmib.h 中的 HW_SETTING_SECTOR_LEN 為 (CONFIG_RTL_CURRENT_SETTING_OFFSET-CONFIG_RTL_HW_SETTING_OFFSET),因為已經沒有了 DEFAULT_SETTING。
  • 或是在 linux kernel 把 default setting offset 跟 current setting offset 設成一樣。

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()


台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()

set Tagged port

switch reg w 2004 ff0001
switch reg w 2104 20ff0001
switch reg w 2204 20ff0001
switch reg w 2304 20ff0001
switch reg w 2404 20ff0001
  • 29:28 Port-Based Egress VLAN Tag Attribution,2’b00: Untagged,2’b01: Swap,2’b10: Tagged,2’b11: Stack。
  • 1:0 Port-based VLAN Mechanism,2’b00: Port Matrix Mode,2’b01: Fallback Mode,2’b10: Check Mode,2’b11: Security Mode。
  • 27:16 Group 1 Port VLAN ID (optional) The Group 1 VID for per port according to IEEE 802.1Q definition.

set PVID

switch reg w 2014 10001 #port0
switch reg w 2114 10002 #port1
switch reg w 2214 10002 #port2
switch reg w 2314 10002 #port3
switch reg w 2414 10002 #port4
switch reg w 2514 10002 #port5
  • 11:0 Group 0 Port VLAN ID (Default Port VID) The Group 0 and default VID for per port according to IEEE 802.1Q definition
  • 15:13 Group 0 Port Priority (Default Port Priority) The Group 0 and default Priority for per port according to IEEE 802.1Q definition.
  • 27:16 Group 1 Port VLAN ID (optional) The Group 1 VID for per port according to IEEE 802.1Q definition.

set vlan group member

switch vlan set [vlan idx][vid] [portmap]
switch vlan set 0 1 01111111
switch vlan set 1 2 10000011
  • vlan idx: vlan group index
  • vid: vlan id
  • portmap: 8bit, 0~5 為 lan port, 6 為 CPU??, 7 為 HNAT(hardware NAT)??.
  • 設定 vlan group 時,第六個 bit 一定要為 1,不然會上不了網也進不了 WEB UI。

create vlan interface

vconfig add [interface-name] [vlan-id]
vconfig add eth2 1
vconfig add eth2 2
  • Creates a vlan-device on [interface-name]. The resulting vlan-device will be called according to the nameing convention set.
  • 會建立一個 eht2.vid 的 virtual interface。

enable vlan filtering on the bridge interface

[*] Networking support —->
          Networking options —->
          [*] 802.1d Ethernet Bridging
          [*]     IGMP/MLD snooping
          [*]     VLAN filtering

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()