Overview
This article will outline how to configure a static IPv4 address for your Operations Manager in the web UI and at cli.
Web UI
To configure a static IP for your OM via the web UI, you will login, then navigate to Configure > Network Connections > click one of the physical interfaces to expand it > then click Add a new connection
This will take you to the New Connection page where you will confirm/populate the following fields,
Interface: This is the physical interface associated with the static IP
Connection type: This will be IPv4 Static
IPv4 Address: The IP address you would like to assign to the connection
IPv4 Network Mask: The subnet mask for the IP scope
IPv4 Gateway (optional): The gateway for the IP scope
Once filled, click Apply to save the changes
CLI
Access the Operations Manager terminal via the method of your choosing (web terminal, ssh, telnet, console). Once at the shell, you can use the below command to build an IPv4 configuration for an interface. There are several methods you can use to achieve this, which are displayed below.
# Passing the command "as one line"
ogcli create conn \
'mode="static"' \
'physif="net2"' \
'ipv4_static_settings.address="172.20.0.5"' \
'ipv4_static_settings.gateway="172.20.0.1"' \
'ipv4_static_settings.netmask="255.255.255.0"'
# Interactively creating the conn
ogcli create conn
Reading information from stdin. Press Ctrl-D to submit and Ctrl-C to cancel.
mode="static"
physif="net2"
ipv4_static_settings.address="10.50.0.1"
ipv4_static_settings.gateway="10.50.0.254"
ipv4_static_settings.netmask="255.255.255.0"
# Using heredoc format
ogcli create conn <<EOF
mode="static"
physif="net2"
ipv4_static_settings.address="10.50.0.1"
ipv4_static_settings.gateway="10.50.0.254"
ipv4_static_settings.netmask="255.255.255.0"
EOF
Comments
0 comments
Article is closed for comments.