beautypg.com

7 subnet flush command, 8 route add command, 9 route delete command – ZyXEL Communications ZyXEL DMA 1000 User Manual

Page 94: 10 route flush command

background image

IES-1000 User’s Guide

12-4

IP Commands

12.2.7 Subnet

Flush

Command

Syntax:

192.168.1.1 ip> subnet flush

This command removes all of the subnets.

12.2.8 Route

Add

Command

Syntax:

192.168.1.1 ip> route add a.b.c.d [am:bm:cm:dm [

]]

where

=

The name of the static route.

a.b.c.d =

The destination IP address of packets that this static route is to route.

=

The IP address of the gateway that you want to send the packets through.

am:bm:cm:dm =

The destination subnet mask of packets that this static route is to route.

=

The metric (hop count) of this static route.

This command defines a new, static IP forwarding route or edits an existing one. Type “route” without any
parameters to view a list of the configured static routes.

Use 0’s for the destination IP address and subnet mask to configure a default static route for the device. The
device uses the default static route to forward packets for which it cannot find another route. The following is
the syntax for configuring a static route.

192.168.1.1 ip> route add 0.0.0.0 0:0:0:0

12.2.9

Route Delete Command

Syntax:

192.168.1.1 ip> route delete

where

=

The name of the static route.

This command removes a static, IP forwarding route.

12.2.10 Route Flush Command

Syntax:

192.168.1.1 ip> route flush

This command removes all of the static IP forwarding routes.