POLICY ROUTING
The Policy Routing mechanism allows to decide about routing of packets according to the
destination address and according to other parameters such as the IP source address, type of
protocol, source and destination port, TOS field (or DSCP) of the IP header, or every other
combination of IP header fields. For example:
In this case:
the address 1.1.1.1 is associated with the atm0 interface of Imola and 1.1.1.2 is the
nexthop
the address 3.3.3.1 is associated with the ppp0 interface of Imola and 3.3.3.2 is the
nexthop
the network accessible through the atm0 interface is ADSL
the network accessible through the ppp0 interface is GPRS
two hosts with addresses 10.10.10.11 and 10.10.10.12 are connected to the internal
LAN.
external addresses are accessible either via ADSL or GPRS networks.
In the following paragraphs two different functions are described:
split access
load balancing
SPLIT ACCESS
In order to separate the traffic from the two PCs, traffic from 10.10.10.11 must be routed on the
ADSL network, i.e. on atm0 interface, while traffic from 10.10.10.12 must be sent to GPRS
network, i.e. on ppp0 interface.
The following commands are applied: