User Guide

9 IP Commands
165 / 260
3EC 16982 AFAA TCZZA Ed. 01
ip rtadd
Add a route to the SpeedTouchPro with Firewall routing table.
SYNTAX:
ip rtadd dst = <ip-address>
[dstmsk = <ip-mask(dotted or cidr)>]
[src = <ip-address>]
[srcmsk = <ip-mask(dotted or cidr)>]
[gateway = <ip-address>]
[intf = <interface name>]
[metric = <number{0-100}>]
[type = <number>]
dst The destination IP address(es) for this route.
Supports cidr notation.
REQUIRED
[dstmsk] The destination IP address mask. OPTIONAL
[src] The source IP address(es) allowed to use this route.
Supports cidr notation.
OPTIONAL
[srcmsk] The source IP address mask. OPTIONAL
[gateway] The IP address of the next hop. Must be directly connected.
The parameters `gateway` and `intf` are mutually exclusive.
OPTIONAL
[intf] Only for special interface routes : the outgoing IP interface name.
The parameters `gateway` and `intf` are mutually exclusive.
OPTIONAL
[metric] The metric for this route (currently not used). OPTIONAL
[type] Route classification. For internal use only. OPTIONAL
EXAMPLE:
=>ip rtlist
Destination Source Gateway Intf Mtrc
10.0.0.0/24 10.0.0.0/24 10.0.0.140 eth0 0
10.0.0.140/32 0.0.0.0/0 10.0.0.140 eth0 0
127.0.0.1/32 0.0.0.0/0 127.0.0.1 loop 0
=>ip rtadd dst=10.10.0.0/24 src=10.0.0.0/24 gateway=10.0.0.140
=>ip rtlist
Destination Source Gateway Intf Mtrc
10.0.0.0/24 10.0.0.0/24 10.0.0.140 eth0 0
10.10.0.0/24 10.0.0.0/24 10.0.0.140 eth0 0
10.0.0.140/32 0.0.0.0/0 10.0.0.140 eth0 0
127.0.0.1/32 0.0.0.0/0 127.0.0.1 loop 0
=>
RELATED COMMANDS:
ip rtdelete Remove a route from the routing table.
ip rtlist Show current routing table.