ip_address

Name

ip_address -- Set IP addresses

Synopsis

ip_address [-b] [-l local_IP_address [/netmask_length] ] [-h server_IP_address] [-d DNS_server_IP_address]

Arguments

NameTypeDescriptionDefault
-bBooleanObtain an IP address using BOOTP or DHCP.don't use BOOTP/DHCP
-l local_IP_address[/netmask_length]Numeric IP or DNS nameThe IP address RedBoot should use, optionally with the network mask length.none
-h server_IP_addressNumeric IP or DNS nameThe IP address of the default server. Use of this address is implied by other commands, such as load.none
-d DNS_server_IP_addressNumeric IP or DNS nameThe IP address of the DNS server.none

Description

The ip_address command is used to show and/or change the basic IP addresses used by RedBoot. IP addresses may be given as numeric values, e.g. 192.168.1.67, or as symbolic names such as www.redhat.com if DNS support is enabled.

The -b option is used to cause the target to perform a bootp or dhcp negotiation to get an IP address.

The -l option is used to set the IP address used by the target device. The network mask length can also be specified

The -h option is used to set the default server address, such as is used by the load command.

The -d option is used to set the default DNS server address which is used for resolving symbolic network addresses. Note that an address of 0.0.0.0 will disable DNS lookups.

Examples

Display the current network settings.

 
RedBoot> ip_address 
IP: 192.168.1.31, Default server: 192.168.1.101, DNS server IP: 0.0.0.0 

Change the DNS server address.

 
RedBoot> ip_address -d 192.168.1.101 
IP: 192.168.1.31, Default server: 192.168.1.101, DNS server IP: 192.168.1.101 

Change the default server address.

 
RedBoot> ip_address -h 192.168.1.104 
IP: 192.168.1.31, Default server: 192.168.1.104, DNS server IP: 192.168.1.101

Set the IP address to something new, with a 255.255.255.0 netmask

 
RedBoot> ip_address -l 192.168.1.32/24 
IP: 192.168.1.32, Default server: 192.168.1.104, DNS server IP: 192.168.1.101