Mike's PBX Cookbook

CPDC Add/Show Routes

The ELAN Default Gateway, set in baseparamsconfig, may need a route (tied to eth0) to work off-net.

eg: routeconfig add -net | -host target_ip [-gw <gateway_ip>] [-netmask <mask>] [-dev <eth>] [-tag <tag>]

Where:

-net <target_ip>the target_ip is a network
-host <target_ip>the target_ip is a host
-gw <gateway_ip>Route packets via gateway (must be reachable)
-netmask <mask>Netmask must be used only when adding a network entry
-dev eth0/eth1CPDC network port, where: eth0 = ELAN; eth1 = TLAN
-tag <tag_name>Add route with tag_name (optional)

Help:

$ routeconfig -h displays extensive help:

Example:

ss0.pbxbook.com login: admin2
Password:
Last login: Fri Aug 19 09:09:51 on ttyS0
[admin2@ss0 ~]$ routeconfig add -net 13.224.0.0 -gw 13.11.200.254 -netmask 255.255.255.0 -dev eth0
Route succesfully added
[admin2@ss0 ~]$ routeconfig show

Kernel IP routing table (user configured routes)

ROUTE#  Destination      Gateway          Netmask          Iface  Tag
1       13.224.1.0      13.11.200.254  255.255.255.0    eth0   manual
2       13.224.0.0      13.11.200.254  255.255.255.0    eth0   manual
[admin2@ss0 ~]$