IBM Support

Configuring static routes to avoid network problems

Question & Answer


Question

This technote discusses how to configure static routes on a MessageSight appliance when the appliance requires the behavior of a separate gateway for each interface

Cause

In certain configurations of MessageSight, if a separate gateway is configured for each interface, the packets for one interface may get routed out of the gateway configured for a different interface, usually resulting in the destination being unreachable.

Answer

Control the flow of traffic using static routes instead of configuring gateways for each interface. More information for manipulating static routes can be found here. Here's an example for adding a static route for eth0 on a physical appliance:

(In this example, I had two different gateways configured for eth1 and eth0 and my default gateway was on eth1.)

1. I only wanted one gateway, so I removed the gateway on eth0:

edit ethernet-interface eth0; ip; reset ipv4-default-gateway; exit; exit; exit

(Note: running these commands separated with semi-colons is a simpler, faster way to run the edit ethernet-interface commands.)

2. Add a static route:

It needs to be in the form "static-route <Destination> <Gateway> <Metric>".

For example:

edit ethernet-interface eth0; ip; static-route 10.10.0.0/24 10.10.0.1 1; exit; exit

If you make a mistake you can start over configuring the static route by doing:


edit ethernet-interface eth0; ip; reset static-route; exit; exit

[{"Product":{"code":"SSCGGQ","label":"IBM MessageSight"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Command Line","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21968970