Wrt54gs V2 + kamikaze 7.09 build a Wireless Access Point

Source: Internet
Author: User

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.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.