Integrator Resources

The official home for NAI Support

Not sure where to start? Try Quick Start Guide or ask a question below!

Toggle Components with Visual Button
JavaScript Form Processing

Change IP Address Guide

A Guide to Changing Your IP Address

The target board contains 2 Ethernet Interfaces. Each Ethernet Interface is assigned a unique MAC address and static IP address. The MAC addresses and static IP addresses are stored on the motherboard EEPROM. The static IP address can be changed using an EEPROM update utility provided with the unit. The MAC addresses should not be changed. To access the EEPROM utility from the Linux shell terminal, proceed as follows:

This guide will cover how to change your IP address on various devices as well as when to use mbexec versus mbcore.

Using mbexec

To update the static IP addresses, enter the following commands (substitute your desired IP addresses):

To change the IP address of the first ethernet interface with the following command:

mbeeprom_util set EthA_IPv4Address 192.168.1.16

You can also set the SubnetMask if necessary, with:

mbeeprom_util set EthA_IPv4SubnetMask 255.255.255.0

To change the second ethernet interface, use the same commands above, but change the EthA to EthB:

mbeeprom_util set EthB_IPv4Address 192.168.2.16

You can also set the SubnetMask if necessary, with:

mbeeprom_util set EthB_IPv4SubnetMask 255.255.255.0

The updated IP addresses will take effect on the next system reset.

Using mbcore

To change the IP address on the NAI hardware running MBCore:

The IP address and subnet mask values are examples. To change the IP address on the under PetaLinux you must use the following commands:

First you must disable the EEProm’s write protect by running:

naiMBEEPROMUtil disablewriteprotect

Then you can change the IP address of the first ethernet interface with the following command:

naiMBEEPROMUtil set EthA_IPv4Address 192.168.1.16

You can also set the SubnetMask if necessary, with:

naiMBEEPROMUtil set EthA_IPv4SubnetMask 255.255.255.0

The gateway can be changed with:

naiMBEEPROMUtil set EthA_IPv4Gateway 192.168.1.1

To change the second ethernet interface, use the same commands above, but change the EthA to EthB:

naiMBEEPROMUtil set EthB_IPv4Address 192.168.2.16

You can also set the SubnetMask if necessary, with:

naiMBEEPROMUtil set EthB_IPv4SubnetMask 255.255.255.0

After you have made these changes, you can power cycle the card.

After logging into PetaLinux, run ifconfig which should now show your changed IP address(es). This change will remain until someone changes the IP address again with the steps above.

For a list of commands and usage, type naiMBEEPROMUtil -h.

Help Bot

X