Alcatel Carrier Internetworking Solutions 350I Modem User Manual


 
5 IP Commands
95 / 138
3EC 16982 AGAA TCZZA Ed. 01
ip rtadd
Add a route to the SpeedToucht350i 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] Do not use this parameter. OPTIONAL
[metric] The metric for this route (currently not used). OPTIONAL
[type] Do not use this parameter. 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.