Efficient Networks 107-0001-000 manual Eth ip addr ipaddr ipnetmask interface, IP network mask

Models: 107-0001-000

1 516
Download 516 pages 19.79 Kb
Page 146
Image 146

Chapter 5: Ethernet Interface Commands

Efficient Networks® Router family

 

Command Line Interface Guide

 

 

eth ip addr

Defines the IP address and subnet mask for an Ethernet port or logical interface.

Mgmt Class

Network (R/W)

Input Format

eth ip addr <ipaddr> <ipnetmask> [<interface>]

Parameters

<ip addr>a

Ethernet LAN IP address.

<ipnetmask>a

IP network mask.

<interface>b,c

Ethernet interface.

aDotted-decimal notation

bThis 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.

cTo 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).

Example

The following command sets the IP address and subnet mask for the default Ethernet interface (0:0):

-> eth ip addr 192.168.1.254 255.255.255.0

The following command sets the IP address and subnet mask for logical interface 1 on Ethernet port 0:

-> eth ip addr 10.0.27.1 255.255.255.0 0:1

Response

Command prompt.

Page 5-8

Efficient Networks®

Page 146
Image 146
Efficient Networks 107-0001-000 manual Eth ip addr ipaddr ipnetmask interface, Ethernet LAN IP address, IP network mask