ADC SG-1 user manual Routing Command, Hostconfig# ip forward, Ip forward Hostconfig# no ip forward

Models: SG-1

1 226
Download 226 pages 28.6 Kb
Page 132
Image 132

Chapter 7: Second Level Commands

June 30, 2006

ROUTING COMMAND

Using the ip forward command

Host(config)# ip forward

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

Usage

ip forward

Host(config)# no ip forward

This command disables IP forwarding between the Ethernet interfaces.

Usage

no ip forward

Using the IP route command

Host(config)# ip route

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

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 type

Interface type: Ethernet or

interface>

 

ATM

<slot number>

PMC slot number

0 - 1

<port number>

SONET physical port number

1 - 2

<sub-interface number>

Sub interface number

1- 2000

7-52

SG1-UM-8500-03

Page 132
Image 132
ADC SG-1 user manual Routing Command, Hostconfig# ip forward, Ip forward Hostconfig# no ip forward, Hostconfig# ip route