Download GG200 Microchip Getting Started Guide v5.2

Transcript
GG200
Microchip Getting Started Guide
4.3.2.
Static IP Address
By default, the demonstrations use DHCP, and rely on the DHCP server in the
access point to give the development board an IP address on the network. To
enable the use of a static IP address, a couple of things must be done.
Figure 18: Disable DHCP Client
First, the static IP address that is selected must be on the same subnet as the
access point. As an example, by default, the Linksys WRT54G manages IP
addresses on the subnet 192.168.1.x (192.168.1.1 is reserved for the access point
itself). Additionally IP addresses above 192.168.1.100 are dynamically managed by
the DHCP server, so it is best to assign a static IP address in the range of
192.168.1.2 – 192.168.1.99.
Second, two sections of code need to be changed to enable use of the static IP
address. The first is to stop the dev kit from trying to request a dynamic address.
Comment out the variable STACK_USE_DHCP_CLIENT, as shown.
Figure 19: Setting up Static IP Address
Also, define the IP address you would like to statically use in
MY_DEFAULT_IP_ADDR_BYTEx and match the default mask
ZeroG Wireless ∙ 255 San Geronimo Way ∙ Sunnyvale ∙ CA ∙ 94085 ∙ 408 738 7600 ∙ 408 738 7601 fax
www.zerogwireless.com
19