AN2836 Freescale Semiconductor / Motorola, AN2836 Datasheet - Page 16

no-image

AN2836

Manufacturer Part Number
AN2836
Description
Web Server Development with MC9S12NE64 and OpenTCP
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Preparing for OpenTCP TCP/IP Stack Development
Configuring the IP Addresses
IP addresses are assigned by a network administrator or a dynamic host configuration protocol (DHCP)
server. These addresses are used by the IP layer of the OpenTCP TCP/IP stack. If the IP addresses are
not correctly configured, the embedded device will not communicate over the network connection—even
if an Ethernet connection can be made.
When developing an application off a real network and on a developer’s PC, the developer is the network
administrator. The developer must create a local network between the PC and the target board. A network
consists of nodes that are on the same network subnet. To set up the subnet for the demo, the developer
must use compatible IP address settings between the developer’s PC and the target board.
When setting up IP addresses, it is preferable to configure or use the development target and
development host manually with non-routable IP addresses (i.e., 10.x.x.x, 90.0.0.x, 172.16.x.x through
172.32.x.x, or 192.168.x.x).
When the application is developed and ready for a real network, the IP address settings must be
configured to be compatible with the real network on which the node will reside. Recall, for the OpenTCP
code, IP addresses and MAC hardware addresses are configured in addess.c . In this web server
example, a static IP address is used. For a real network, recall that the IP address should be assigned by
the network administrator. Optionally, the DHCP capability of OpenTCP software can be used. With
DHCP, a DHCP server will automatically assign a leased IP address to the embedded device.
16
IP address settings for this demo:
These IP settings and others must be reflected in the Windows network
settings.
All devices are configured with an IP address in the range 192.168.2.1
to 192.168.2.3
OpenTCP code is programmed with an IP address of:
192.168.2.1, for the development host (PC)
192.168.2.3, for the development target (embedded device)
Web Server Development with MC9S12NE64 and OpenTCP, Rev. 0
NOTE
Freescale Semiconductor

Related parts for AN2836