Configuring IP address

Using the dhcp command, you can have the PXS use either a configured static IP address or allow the PXS to obtain an IP address from a DHCP server. For a list of RedBoot commands, check the RedBoot Command Summary.

Static IP address

First, use the dhcp disable command to configure the PXS to use a static IP address. Then, use the ip command to check and modify the network configuration.

RedBoot> dhcp disable
DHCP: disabled
RedBoot> ip
IP Config: Address=192.168.168.244 Mask=255.255.255.0 Gateway=192.168.168.251
RedBoot>

Configure the PXS network parameters with ip [address mask gateway] where:

	address = static IP address
	   mask = subnet mask
	gateway = default gateway

For example, to set 192.168.1.244 as the IP address, 255.255.255.0 as the subnet mask and 192.168.1.1 as gateway address, enter:

RedBoot> ip 192.168.1.244 255.255.255.0 192.168.1.1
IP Config: Address=192.168.1.244 Mask=255.255.255.0 Gateway=192.168.1.1
RedBoot> reset

The reset command in the last line instructs the PXS to reset so the new values will take effect.

Dynamic IP address assignment with DHCP

If you have a DHCP server in your network, you can configure the PXS to obtain an IP address automatically by using dhcp enable:

RedBoot> dhcp enable
DHCP: enabled
RedBoot> reset

When the PXS resets, it will request an IP address from the DHCP server.

To find the IP address in this case, issue the dhcp command:

RedBoot> dhcp
DHCP: enabled
DHCP address: 192.168.168.238
RedBoot>

Note 1: You may want to set the lease duration to "unlimited" in the the DHCP server configuration. Otherwise, you will have to change the LayGO configuration files every time the IP address changes.

Note 2: RedBoot uses the older subset of DHCP called BOOTP. Some DHCP servers (for instance, Microsoft's) may not respond to BOOTP requests unless you reserve an IP address for the device in the server configuration using the MAC address of the device. Use the mac command to find the MAC address of the PXS.

Note 3: Make sure to use the dhcp command to find the dynamically configured IP address. The ip command will continue to show the previously configured static IP address.