Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

RockpiS/dev/apmode

< RockpiS‎ | dev
    ROCK Pi S >  Development >  Setting AP Mode

ROCK Pi S support AP(Wireless Access Point) mode, more information about AP mode click here.

Install Necessary Packs

   $ sudo apt-get install hostapd isc-dhcp-server

Configure AP and DHCP Service

  • Configure AP service:
  $ sudo vim /etc/hostapd/hostapd.conf
  • Change it to:
   interface=wlan0
   country_code=CN
   #AP ssid
   ssid=Rockpis
   hw_mode=g
   channel=6
   wpa=2
   #password
   wpa_passphrase=rockpis123456
   # Key management algorithms
   wpa_key_mgmt=WPA-PSK
   # Set cipher suites (encryption algorithms)
   # TKIP = Temporal Key Integrity Protocol
   # CCMP = AES in Counter mode with CBC-MAC
   wpa_pairwise=TKIP
   rsn_pairwise=CCMP
   # Shared Key Authentication
   auth_algs=1
   # Accept all MAC address
   macaddr_acl=0
  • Configure DHCP service:
  $ sudo vim /etc/dhcp/dhcpd.conf
  • In this part change some configure to fit your need.
   #subnet 192.168.1.0 netmask 255.255.255.0 {
   #  range 10.5.5.26 10.5.5.30;
   #  option domain-name-servers ns1.internal.example.org;
   #  option domain-name "internal.example.org";
   #  option routers 10.5.5.1;
   #  option broadcast-address 10.5.5.31;
   #  default-lease-time 3600;
   #  max-lease-time 7200;
   #}

Restart Services

  • Restart AP and DHCP service:
  $ sudo service isc-dhcp-server restart
  $ sudo hostapd /etc/hostapd/hostapd.conf