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
Name | Type | Description | Default |
---|---|---|---|
-b | Boolean | Obtain an IP address using BOOTP or DHCP. | don't use BOOTP/DHCP |
-l local_IP_address [ | Numeric IP or DNS name | The IP address RedBoot should use, optionally with the network mask length. | none |
-h server_IP_address | Numeric IP or DNS name | The IP address of the default server. Use of this address is implied by other commands, such as load. | none |
-d DNS_server_IP_address | Numeric IP or DNS name | The 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.ecoscentric.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, DNS domain name:
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, DNS domain name:
Change the DNS domain name.
RedBoot> ip_address -D example.com
IP: 192.168.1.31, Default server: 192.168.1.101, DNS server IP: 192.168.1.101, DNS domain name: example.com
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, DNS domain name:
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, DNS domain name:
2024-03-18 | eCosPro Non-Commercial Public License |