Routing command, Using the ip route command, Routing command -52 – ADC SG-1 User Manual

Page 132: Table 7-14.ip route command parameters -52

Advertising
background image

Chapter 7: Second Level Commands

June 30, 2006

7-52

SG1-UM-8500-03

R

OUTING

C

OMMAND

Using the ip forward command

This command enables IP forwarding between the Ethernet interfaces. The system's default setting does not use IP
forwarding.

Usage

ip forward

This command disables IP forwarding between the Ethernet interfaces.

Usage

no ip forward

Using the IP route command

The ip route command is used for establishing static routes. A static route is appropriate when the SG-1 is not
dynamically building the routes to the destinations.

Usage

ip route <[nip <destination prefix> <destination prefix mask> <forwarding router's>]

| [<destination prefix> <destination prefix mask> <[<forwarding router's>] |

[<<Ethernet interface | ATM interface> <slot number>\<port number>\[<sub-interface

number]>>| <loopback interface>]>]>

Parameter(s)

Table 7-14. ip route command parameters

Host(config)# ip forward

Host(config)# no ip forward

Host(config)# ip route

Parameter

Description

Values

<destination prefix>

Destination IP or Network

Valid IP or Network

<destination prefix mask>

Network mask

Valid Mask (Except to 0.0.0.0)

<forwarding router’s>

Next-hop IP address

Valid IP address

<Ethernet interface | ATM

interface>

Interface type

Interface type: Ethernet or
ATM

<slot number>

PMC slot number

0 - 1

<port number>

SONET physical port number

1 - 2

<sub-interface number>

Sub interface number

1- 2000

Advertising