beautypg.com

Static route commands, 1 command summary, Static route commands (209) – ZyXEL Communications ZyXEL Dimension ES-2024PWR User Manual

Page 209

background image

Ethernet Switch CLI Reference Guide

209

C

H A P T E R

59

Static Route Commands

Use these commands to tell the Switch how to forward IP traffic. IP static routes are used by
layer-2 Switches to ensure they can respond to management stations not reachable via the
default gateway and to proactively send traffic, for example when sending SNMP traps or
conducting IP connectivity tests using ping.
Layer-3 Switches use static routes to forward traffic via gateways other than those defined as
the default gateway.

59.1 Command Summary

The following section lists the commands for this feature.

Table 123 ip route Command Summary

COMMAND

DESCRIPTION

M

P

show ip route

Displays the IP routing table.

E

3

show ip route static

Displays the static routes.

E

3

ip route <ip> <mask> <next-hop-
ip
> [metric <metric>] [name
<name>] [inactive]

Creates a static route. If the <ip> <mask> already exists,

the Switch deletes the existing route first. Optionally, also

sets the metric, sets the name, and/or deactivates the static

route.
metric: 1-15
name: 1-10 English keyboard characters

Note: If the <next-hop-ip> is not directly

connected to the Switch, you must make
the static route inactive.

C

13

no ip route <ip> <mask>

Removes a specified static route.

C

13

no ip route <ip> <mask> inactive Enables a specified static route.

C

13