18.11.2014 Views

Clavister cOS Core Administration Guide

Clavister cOS Core Administration Guide

Clavister cOS Core Administration Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4: Routing<br />

• It does not matter even if there is a separate route which includes the gateway IP address and<br />

that routes traffic to a different interface.<br />

Composite Subnets can be Specified<br />

Another advantage with the <strong>cOS</strong> <strong>Core</strong> approach to route definition is that it allows the<br />

administrator to specify routes for destinations that are not aligned with traditional subnet<br />

masks.<br />

For example, it is perfectly legal to define one route for the destination IP address range<br />

192.168.0.5 to 192.168.0.17 and another route for IP addresses 192.168.0.18 to 192.168.0.254. This<br />

is a feature that makes <strong>cOS</strong> <strong>Core</strong> highly suitable for routing in highly complex network<br />

topologies.<br />

Displaying Routing Tables<br />

It is important to note that routing tables that are initially configured by the administrator can<br />

have routes added, deleted and changed automatically during live operation and these changes<br />

will appear when the routing table contents are displayed.<br />

These routing table changes can take place for different reasons. For example, if dynamic routing<br />

with OSPF has been enabled then routing tables will become populated with new routes learned<br />

from communicating with other OSPF routers in an OSPF network. Other events such as route<br />

fail-over can also cause routing table contents to change over time.<br />

Example 4.1. Displaying the main Routing Table<br />

This example illustrates how to display the contents of the default main routing table.<br />

Command-Line Interface<br />

To see the routing table contents:<br />

Device:/> cc RoutingTable main<br />

Device:/main> show<br />

Route<br />

# Interface Network Gateway Local IP<br />

- --------- -------- ------------- --------<br />

1 wan all-nets 213.124.165.1 <br />

2 lan lan_net <br />

3 wan wan_net <br />

To return the default CLI context:<br />

Device:/main> cc<br />

Device:/><br />

To see the active routing table enter:<br />

Device:/> routes<br />

Flags Network Iface Gateway Local IP Metric<br />

----- ------------------ ------- --------------- -------- ------<br />

192.168.0.0/24 lan 0<br />

213.124.165.0/24 wan 0<br />

0.0.0.0/0 wan 213.124.165.1 0<br />

235

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!