Datasheet

Microchip MRF24W Getting Started Guide for MRF24WB0MA/B, MRF24WG0MA/B for MLA v5
DS52108A-page 36 Preliminary 2013 Microchip Technology Inc.
4.5.2 Static IP Address
By default, the demonstrations use DHCP and rely on the DHCP server in the AP or
router to give the development board an IP address on the network.
4.5.2.1 TO ENABLE THE USE OF A STATIC IP ADDRESS
1. The selected static IP address must be on the same subnet as the AP. By default,
the Linksys WRT54G manages IP addresses on the subnet 192.168.1.x
(192.168.1.1 is for AP). The IP address above 192.168.1.100 are dynamically
managed by the DHCP server. Therefore, ideal to assign a unique static IP
address in the range of 192.168.1.2 – 192.168.1.99.
2. Two sections of the code must be changed to use the static IP address. To stop
the development kit to request a dynamic address, comment the variables
STACK_USE_AUTO_IP and STACK_USE_DHCP_CLIENT in the \con-
figs\TCPIP MRF24W.h file, see Figure 4-5.
FIGURE 4-5: DISABLE AUTO IP AND DHCP CLIENT
3. Define the IP address to statically use in MY_DEFAULT_IP_ADDR_BYTEx, and
match the default mask (MY_DEFAULT_MASK_BYTEx) to match the router (for
the default Linksys AP, the default mask is 255.255.255.0), see Figure 4-6.