beautypg.com

Creating a routing rule – Amer Networks E5Web GUI User Manual

Page 275

background image

Example 4.6. Creating a Routing Rule

In this example, a routing rule called my_routing_rule is created. This will select the routing table
MyPBRTable for any http traffic destined for the network my_network.

Command-Line Interface

Device:/> add RoutingRule Service=http

SourceInterface=any
SourceNetwork=all-nets
DestinationInterface=any
DestinationNetwork=my_network
ForwardRoutingTable=MyPBRTable
ReturnRoutingTable=MyPBRTable
Name=my_routing_rule

InControl

Follow the same steps used for the Web Interface below.

Web Interface

1.

Go to: Network > Routing > Routing Tables > Add > RoutingTable

2.

Now enter:

Name: my_routing_rule

Service: http

SourceInterface: any

SourceNetwork: all-nets

DestinationInterface: any

DestinationNetwork: my_network

ForwardRoutingTable: MyPBRTable

ReturnRoutingTable: MyPBRTable

3.

If Remove Interface IP Routes is enabled, the default interface routes are removed, that is
to say routes to the core interface (which are routes to cOS Core itself ).

4.

Click OK

Routing Rules can use IPv4 or IPv6 Addresses

Routing rules support either IPv4 or IPv6 addresses as the source and destination network for a
rule's filtering properties.

However both the source and destination network must be either IPv4 or IPv6. It is not
permissible to combine IPv4 and IPv6 addresses in a single rule. For further discussion of this
topic, see Section 3.2, “IPv6 Support”.

Chapter 4: Routing

275

This manual is related to the following products: