Wrt54gs wireless minipci model is bcm4320, using kamikaze7.09 drive module kmod-brcm-wl-2.4.34 + 4.80.53.0-1
If you want to drive the wireless network card to the AP mode, you only need to modify the configuration file/etc/config/wireless, and then restart the network card (/etc/init. d/network restart)
(1) set the wireless network card to AP Mode
Configure WiFi-device wl0:
Option type Broadcom
Option Channel 6
Option disable 0 # Set this parameter to 0. Otherwise, the wireless Nic does not work.
Configure WiFi-iface:
Option device wl0
Option Network LAN
Option mode AP
Option SSID openwrt
Option encryption none
(2) configure the WAN port of the wired network card (/etc/config/Network)
#### VLAN configuration
Config switch eth0
Option vlan0 "1 2 3 4 5 *"
Option vlan1 "0 5"
#### Loopback Configuration
Config interface loopback
Option ifname "Lo"
Option proto static
Option ipaddr 127.0.0.1
Option netmask 255.0.0.0
#### LAN Configuration
Config interface LAN
Option Type Bridge
Option ifname "eth0.0"
Option proto static
Option ipaddr 192.168.1.4
Option netmask limit 255.0
#### Wan Configuration
Config interface Wan
Option Type Bridge
Option ifname "eth0.1"
Option proto static
Option ipaddr 10.0.0.10
Option netmask limit 255.0
Option gateway 10.0.0.2
(3) Use iptables to configure Nat
Cat "1">/proc/sys/NET/IPv4/ip_forward (in fact, the configuration command has been set in the/etc/sysctl. conf started on startup)
Iptables-T filter-A forwarding_rule-J accept
Iptables-T Nat-A postrouting_rule-O Br-Wan-J Masquerade
So far, the configuration of the Wireless Router Based on the kamikaze system is complete. We use a laptop to connect to a Wireless AP, automatically obtain the IP address, and manually configure the DNS (this is not configured on the router), you can access the Internet normally. Next, download the corresponding tcpdump and iperf versions on the openwrt official website to measure the features of the wireless link most directly.