![](/images/new-backgrounds/1266963/266963263x1.webp)
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
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
Parameter(s)
Table
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> | 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 | 1- 2000 |
|