Ip Route Command; Clear Ip Route Command - Avaya P334T-ML User Manual

Stackable switch
Table of Contents

Advertisement

Chapter 7
CLI – Layer 3

ip route Command

Use the ip route command to establish a static route. The no form of this
command removes a static route.
The syntax for this command is:
[no] ip route <ip-address> <mask> <next-hop> [<next-hop>]
[<next-hop>] [<cost>] [<preference>]
ip-address
mask
next-hop
cost
preference
Example:
To define the router 192.168.33.38 as the next hop for the network 192.168.33.0 with
mask 255.255.255.0:
Router-N(configure)# ip route 192.168.33.0 255.255.255.0
10.10.10.10

clear ip route Command

Use the clear ip route command to delete all the dynamic routing entries from
the Routing Table.
The syntax for this command is:
clear ip route * | <ip-addr> [<ip-mask>]
ip-addr
ip-mask
Example:
clear ip route *
clear ip route 192.168.49.1 255.255.255.0
168
The IP address of the network
Mask of the static route
The next hop address in the network
The path cost. The default is 1
Preference, either High or Low. Default is Low.
IP address
IP mask address
clears all the routing table
clears a range of entries
P334T-ML User's Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

P332g-ml

Table of Contents