Static routes to destination networks may be added to the Operations Manager using the ogcli command line configuration tool.
- Login to the Operations Manager CLI shell as an Administrator or root
- Determine the ID or Device Name of the Interface (e.g. NET1) on which to add the route by running:
sudo ogcli get physifs
- In the example output, the ID is system_net_physifs-1 and Device Name is net1:
physifs[0].description="NET1 - 1G Copper/SFP"
physifs[0].device="net1"
physifs[0].enabled=true
physifs[0].ethernet_setting.id="system_net_physifs-1"
physifs[0].ethernet_setting.link_speed="auto"
physifs[0].id="system_net_physifs-1"
physifs[0].media="ethernet"
physifs[0].mtu=1500
- Add the static route specifying either the device or interface ID. Optionally specify a gateway_address and/or metric:
sudo ogcli create static_route <<'END'
destination_address="10.123.234.0"
destination_netmask=24
gateway_address="192.168.0.254"
interface="net1"
metric=10
END
- Check the route has installed by running:
ip route show
Comments
0 comments
Article is closed for comments.