Notice: Radxa Wiki is no longer maintained and content is for reference only. Please visit the latest Radxa Documentation site:
docs.radxa.com
Difference between revisions of "RockpiS/dev/apmode"
(Created page with "{{rockpiS_header}} {{Languages|rockpiS/dev/apmode}} ROCK Pi S > Development > Setting AP Mode") |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 4: | Line 4: | ||
[[rockpiS | ROCK Pi S]] > [[rockpiS/dev | Development]] > [[rockpiS/dev/apmode | Setting AP Mode]] | [[rockpiS | ROCK Pi S]] > [[rockpiS/dev | Development]] > [[rockpiS/dev/apmode | Setting AP Mode]] | ||
| + | |||
| + | ROCK Pi S support AP(Wireless Access Point) mode, more information about AP mode click [https://en.wikipedia.org/wiki/Wireless_access_point 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 | ||
Latest revision as of 09:55, 27 July 2020
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
