![MYiR MYD-AM335X Development Manual Download Page 88](http://html.mh-extra.com/html/myir/myd-am335x/myd-am335x_development-manual_1862478088.webp)
wlan0: AP-ENABLED
4.Configure the ip address and subnet mask of the ap hotspot. This IP address
needs to be set according to the value of the routers in /etc/dhcp/dhcpd.conf.
# ifconfig wlan0 192.168.43.1 netmask 255.255.255.0 up
5.Start the DHCP service of wlan0.
# dhcpd wlan0
Internet Systems Consortium DHCP Server 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
WARNING: Host declarations are global. They are not limited to the scope you declared
them in.
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/wlan0/00:1d:43:a0:04:11/192.168.43.0/24
Sending on LPF/wlan0/00:1d:43:a0:04:11/192.168.43.0/24
Sending on Socket/fallback/fallback-net
After completing the above five steps, you can use other WIFI STA mode devices to
connect to the created AP hotspots, but only LAN communication. If you need to
perform external network communication, you need to complete the following steps.
1.Connect eth0 to the Internet and obtain an IP address.
# udhcpc eth0
udhcpc: started, v1.25.1
udhcpc: sending discover
udhcpc: sending select for 192.168.30.160
udhcpc: lease of 192.168.30.160 obtained, lease time 3600
deleting routers
adding dns 223.5.5.5
adding dns 201.104.111.114
2.Enable IP packet forwarding.
88