Point-to-point connections, Point–to–point connections – Altera Nios Development Board User Manual

Page 54

Advertising
background image

C–4

Altera Corporation

July 2005

Obtaining an IP Address

This command opens a terminal connection via the JTAG download
cable to a monitor program running on the board. The monitor
program displays status messages and text instructions that tell you
how to set the IP address for your board.

5.

Press the ! key to abort the DHCP process and display a prompt. If
you don't abort the DHCP process, it will fail after two minutes, and
eventually a prompt will appear.

1

The monitor's prompt is the + character. You can enter
h<Enter>

at the prompt for a complete list of supported

commands.

6.

At the prompt, type xip:<safe IP address><Enter>

The xip command saves the IP address in flash memory. In general,
you will only need to assign an IP address to your board once.
However, you may change it at any time by issuing another xip
command. You can also use the commands xsubnet and xgateway
to assign subnet and gateway addresses, but setting these addresses
is not usually necessary.

7.

Type xdhcp:off<Enter> to disable the board from attempting to
obtain the IP address using DHCP in the future. (You can re-enable
DHCP later, using the xdhcp:on command.)

8.

Type CTRL+C to terminate the JTAG terminal session and
disconnect from the monitor program, then close the Nios II SDK
Shell.

9.

Press the SW8 button labeled CPU Reset to reboot the Nios II
processor and start the web server using the new IP address. The
LCD screen will display the static IP address assigned to the board,
along with other status messages.

The web server is now ready to display pages using the IP address you
assigned. See

“Browsing to Your Board” on page C–5

to continue.

Point–to–Point Connections

All boards are factory programmed with a default IP address of 10.0.0.51
stored in flash memory. The 10.0.0.x subnet is conventionally reserved for
development, test, and prototyping. If DHCP fails or is aborted, the board
will use this static IP address. The LCD screen displays status messages
to indicate when the web server starts running using the default IP
address.

Advertising