Netopia CLI 874 manual Examples

Models: CLI 874

1 207
Download 207 pages 55.4 Kb
Page 88
Image 88

2-76 Command Line Interface Commands Reference

GMT +1:00 Central Europe Time

GMT +11:00 Russia Zone 10

GMT +2:00 Eastern Europe Time

GMT +12:00 Russia Zone 11

GMT +3:00 Moscow time (MSK)

ip route { ip-addr/mask-bits ip-addr mask } gw-ip-addr [{ high low }] [advertise [{no distance}] [{enable disable}]

no ip route { ip-addr/mask-bits ip-addr mask } gw-ip-addr

show ip route [{ static ip-addr ip-addr/mask-bits ip-addr mask }]

The ip route and no ip route commands allow you to add, change, or delete static routes. The show ip route static form of the show ip route command displays the configured static routes (including invalid or disabled ones), while the other forms of the show ip route command display the router's IP routing table (including any installed (i.e., valid and enabled) static routes).

The destination network may be specified as an IP address and mask in either prefix or dotted-quad notation. gw-ip-addris the IP address of the next-hop router, and should be on one of the router's directly connected IP subnets.

The keywords high and low control the priority of the static route relative to an identical route learned via RIP. A static route with high priority (the default) takes precendence over an identical route learned via RIP, while an identical route learned via RIP takes precedence over a static route with low priority.

The keyword advertise controls whether or not the router will advertise (redistribute) the static route via RIP. The keyword advertise may be followed by a RIP metric (distance) between 1 (the default) and 15 inclusive.

If the show ip route command includes an optional IP address or IP address and mask, the route, if any, in the IP routing table that pertains to the specified destination network, subnetwork, or host address is displayed.

Examples:

ip route 192.168.2.0/24 192.168.1.123 low advertise

no ip route 192.168.2.0 255.255.255.0 192.168.1.123

show ip route

show ip route static

Note: Beginning with Firmware Version 8.2, the ip route commands will no longer show or set static routes that are default gateways. They will only operate on direct routes (IP address and mask are non-zero). The default gateway routes are now meant to be handled with two commands: 1) ip gateway, which configures the Primary Default Gateway, and 2) backup gateway, which configures the Backup Default gateway.

Page 88
Image 88
Netopia CLI 874 manual Examples