Static Routes How to Guide

From Swivel Knowledgebase
Jump to: navigation, search


Overview

The Swivel appliance CMI allows one static route to be added, however subsequent static routes may need to be added manually. This is why you only see the Display Route option available on the appliance CMI if you already have a route configured.


View the routing table

From the CMI, select Advanced Menu > Admin > Networking > IPs & Routing > Diagnostics > Routing table


Add a Static Route

Swivel appliance 2.0.14

From the CMI, select Advanced Menu > Networking > IPs & Routing > Change Appliance Routing > Add a route

The following information is required:

  • Address : The destination address
  • Netmask : The network subnet mask for the address e.g. 255.255.255.0
  • Gateway : The gateway address to be used

Press return when complete

To view a current route select Display route.


Multiple static routes

This option should only be used when multiple static route are required. Connect to the Swivel appliance using WinSCP How To Guide.

Then navigate to the following file on the appliance using WinSCP:

/etc/sysconfig/network-scripts/route-eth0

Edit this file by right clicking on it and selecting Edit.

You should see the route that you've already defined exists under the ADDRESS0, NETMASK0, GATEWAY0 entries. Add another set of values underneath as provided in the example below using ADDRESS1, NETMASK1, GATEWAY1 entries:

ADDRESS0=10.10.10.0

NETMASK0=255.255.255.0

GATEWAY0=192.168.0.1

ADDRESS1=172.16.1.0

NETMASK1=255.255.255.0

GATEWAY1=192.168.0.1

Save the file and restart networking through the command line or CMI

 service network restart


Static Routes on different interfaces

create a routing file for the required network e.g. route-eth1, route-eth2

 cd /etc/sysconfig/network-scripts
 
 touch route-eth1

Edit the file with vi or WinSCP with the required parameters, for example:

ADDRESS0=192.168.0.0

NETMASK0=255.255.255.0

GATEWAY0=192.168.0.1

Save the file and restart networking through the command line or CMI

 service network restart


Create a static route on a separate interface

create a routing file for the required network e.g. route-eth1 or route-eth2

 cd /etc/sysconfig/network-scripts
 
 touch route-eth1

Edit the file with vi or WinSCP with the required parameters, for example:

ADDRESS0=0.0.0.0

NETMASK0=0.0.0.0

GATEWAY0=192.168.0.1

Save the file and restart networking through the command line or CMI

 service network restart


Verifying routes

the following commands are of use in verifying routes

 route
 
 netstat -r

to test if a route can be reached using traceroute

 traceroute 192.168.0.1


Known Issues

If the delete route option is run from within the CMI menu, all routes are deleted.


Troubleshooting

View the /var/log/messages file as this may include network issues such as invalid format for the route or of the network is unreachable.