- 2 minutes to read
- Print
- DarkLight
- PDF
Configuring network interfaces
- 2 minutes to read
- Print
- DarkLight
- PDF
Configure the primary senhasegura network interface to reach the Web interface, Proxies, and Webservices. This functionality replaces the need for localhost login with the user 'orbit'. When configuring the network interface, you will need to restart the server to apply the settings.
[email protected]:~$ sudo orbit network --help
Usage: orbit network
Network settings tools
Flags:
--help Show context-sensitive help.
-i, --interface=STRING
-a, --address=STRING
-m, --netmask=STRING
-g, --gateway=STRING
--reboot Reboot the machine
--force Force the command execution, never prompt
--show
List current configuration
The orbit network –show
command displays the network settings currently applied.
[email protected]:~$ sudo orbit network --show
Networking interface status
============================================================================
Interface eth0
MAC Address = 00:15:5d:3e:73:1c
MTU = 1500
Type = ether
IPv4
Address = 172.17.182.204
Broadcast = 172.17.182.207
Gateway =
============================================================================
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Ifac
0.0.0.0 172.17.182.193 0.0.0.0 UG 0 0 0 eth0
172.17.182.192 0.0.0.0 255.255.255.240 U 0 0 0 eth0
============================================================================
Without the arguments, the user is presented with fields to configure the desired network interface.
This example shows how to configure the primary interface with DHCP.
[email protected]:~$ sudo orbit network
Use the arrow keys to navigate: ↓ ↑ → ←
? Choose an interface to configure:
▸ eth0
? Network settings:
static
▸ dhcp
? Are you sure you want to proceed? [y/N] y
Done!
No errors reported
If you set the senhasegura IP to DHCP, the DNS configuration (both via the screen and via command) may not work if configured as the Operating System default and made available in the OVA. To change DNS, you need to configure a static IP.
This second example shows how to configure the interface with a static IP.
[email protected]:~$ sudo orbit network
Use the arrow keys to navigate: ↓ ↑ → ←
? Choose an interface to configure:
▸ eth0
? Network settings:
▸ static
dhcp
✔ IP Address: 172.17.182.204
Netmask: 255.255.255.240
Gateway: 172.17.182.193
? Are you sure you want to proceed? [y/N]
Done!
No errors reported
You can also provide the configuration details as command line arguments. This way, the interaction is reduced.
[email protected]:~$ sudo orbit network
--interface=eth0
--address=172.17.182.204
--netmask=255.255.255.240
--gateway=172.17.182.193
Use the arrow keys to navigate: ↓ ↑ → ←
? Choose an interface to configure:
▸ eth0
? Network settings:
▸ static
dhcp
? Are you sure you want to proceed? [y/N]
Done!
No errors reported
Restart the server to apply the settings
Use the command orbit network –reboot
so the server restarts immediately after entering the network configuration. Use it with caution.
[email protected]:~$ sudo orbit network --reboot
Use the arrow keys to navigate: ↓ ↑ → ←
? Choose an interface to configure:
▸ eth0
? Network settings:
static
▸ dhcp
? Are you sure you want to proceed? [y/N] y
Done!
No errors reported
Stopping database service...
Redefinition of network interfaces
Use the orbit default-interface
command to redefine the network interfaces so that the eth0 interface is defined as a member of the cluster.
Usage: orbit default-interface
Configure the default network interface. The application uses this information to determine the host IP.
Flags:
-h, --help Show context-sensitive help.
--force Force the command execution, never prompt