Network interfaces#
The command network interfaces will display the available network interfaces and their configuration. The hostname can be set or changed with network name <hostname>.
Note
The maximum character length for the hostname is 56.
A network interface can be configured or changed as follows:
network <interface-name> <ip> <netmask> <gateway>
For example: network eth0 172.29.89.100 255.255.255.0 172.29.89.1
The IP address can be changed without affecting the netmask and gateway using:
network <interface-name> ip <ip>
For example, network eth0 ip 172.29.89.100.
How to change a Network Interface
The steps below apply to the network interface change on both single node and multi-node topologies.
Note
During this process, the application or database primary might be migrated automatically to a new node.
Ensure you are working on the correct node when running the below commands by checking with the cluster primary command.
A single node system will have all commands run on it unless otherwise stated.
If the node to be changed is a database or unified node, then record the currently assigned database weight database weight list.
On the current application primary run cluster del <IP> where IP is the IP address of the node being changed.
On the node being changed, run network list and note the interface name that will be changed.
On the node being changed, run the network <interface> ip <newIPAddress> command to change the IP.
Reboot the node being changed.
If not a single node (standalone):
Log in as the platform user to the node with the new IP address and run cluster prepnode.
On the current application primary run cluster add <newIPAddress>
On the current primary database or unified node (not standalone / single node), run database weight add <NewIPAddress> <weight> to restore the database weight previously assigned to the changed node.
On the current primary application node, run cluster provision.
On the current application primary node, ensure services are restored by running: cluster check and cluster run all app status.
If any services are not running, try and restart them using: app start <service>.
Network Routes
Network routes can be displayed with network routes.
A new network route can be configured with network routes <network-address> <netmask> <gateway>.
Network routes can be deleted with network routes del <network-address>.
Network Static Hosts
Static hosts can be maintained in /etc/hosts
by using the following commands:
Add: network static_host add <host> <ip>
Delete: network static_host del <host>
List: network static_host list
Example:
$ network static_host list
static_hosts:
lab.solutions.com: 10.121.1.42