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.
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]
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
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.
If you have a DHCP server in your network, you can configure the PXS to obtain
an IP address automatically by using
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
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.
mac command to find the MAC address of the PXS.
Note 3: Make sure to use the
to find the dynamically configured IP address. The
will continue to show the previously configured static IP address.