Efficient Networks® Router family

Chapter 5: Ethernet Interface Commands

Command Line Interface Guide

 

 

 

eth ip addroute

Adds a route to the default routing table for the Ethernet interface. This command is needed only if the system does not support RIP (see RIP Controls” on page 6-4of the Technical Reference Guide and the eth ip options command).

NOTE:

This command requires a save and reboot before it takes effect.

Mgmt Class

Network (R/W)

Input Format

eth ip addroute <ipaddr> <ipnetmask> <gateway> <hops> [<interface>]

Parameters

<ip addr>a

Ethernet LAN IP address.

<ipnetmask>a

IP network mask.

<gateway>a

IP address of the IP gateway.

<hops>b

Number of routers the packet will pass to get to its destination.

<interface>c,d

Ethernet interface through which the packet is sent.

aDotted-decimal notation

bInteger

cThis parameter may be omitted if the router has only one Ethernet interface. If the router has two physical Ethernet interfaces (an Ethernet hub router), the port number (0 or 1) must be specified.

dTo specify a logical interface other than logical interface 0, specify both the port number and the logical interface number (<port #>:<logical #>, for example, 0:1).

Examples

The following command adds a route to the default routing table for the default Ethernet interface (0:0):

-> eth ip addRoute 10.1.2.0 255.255.255.0 192.168.1.17 1

The following command adds a route to the default routing table for logical interface 1 on Ethernet port 0:

-> eth ip addRoute 10.1.3.0 255.255.255.0 10.0.27.20 1 0:1

Response

Command prompt.

Efficient Networks®

Page 5-9

Page 147
Image 147
Efficient Networks 107-0001-000 Eth ip addroute ipaddr ipnetmask gateway hops interface, IP address of the IP gateway