OptiSwitch 2400_L3 (ML46141, Rev. 02)

OptiSwitch-2400/L3
User's Guide
ML46141 Rev. 02
OptiSwitch 2400/L3
About This Guide
Standards Compliance
UL 1950; CSA 22.2 No 950; FCC Part 15 Class A; CE-89/336/EEC, 73/23/EEC
FCC Notice
WARNING: This equipment has been tested and found to comply with the
limits for a Class A digital device, pursuant to Part 15 of the FCC Rules. These
limits are designed to provide reasonable protection against harmful
interference when the equipment is operated in a commercial environment.
This equipment generates, uses, and can radiate radio frequency energy
and, if not installed and used in accordance with the instruction manual,
may cause harmful interference to radio communications. Operation of this
equipment in a residential area is likely to cause harmful interference in
which case the user will be required to correct the interference at his own
expense.
The user is cautioned that changes and modifications made to the
equipment without approval of the manufacturer could void the user’s
authority to operate this equipment
It is suggested that the user use only shielded and grounded cables when
appropriate to ensure compliance with FCC Rules.
CE Mark
The CE mark symbolizes compliance with the EMC directive of the European
Community. Such marking is indicative that the specified equipment meets
or exceeds the following technical standards:
,
EN 55022 - Limits and Methods of Measurement of Radio Interference
Characteristics of Information Technology Equipment
,
EN 50081-1- Electromagnetic compatibility - of Radio Interference
Characteristics of Information Technology Equipment Generic
Emission standard Part 1 – Residential commercial and light industry
environment
,
EN 50082-1 - Electromagnetic compatibility -- Generic immunity
standard Part 1: Residential, commercial and light industry
environment
,
EN61000-4-2 (previously IEC 1000-4-2) - Electromagnetic compatibility
for industrial-process measurement and control equipment Part 4:
Section 2 - Electrostatic discharge requirements
,
EN61000-4-3 (previously IEC 1000-4-3) - Electromagnetic compatibility
for industrial-process measurement and control equipment Part 4:
Section 3 - Radiated electromagnetic field requirements
i
OptiSwitch 2400/L3
About This Guide
,
EN61000-4-4 (previously IEC 1000-4-4) - Electromagnetic compatibility
for industrial-process measurement and control equipment Part 4:
Section 4 - Electrical fast transient/burst requirements
,
EN61000-4-5 - Electromagnetic compatibility for industrial-process
measurement and control equipment
Part 4: Section 5 – Surge Immunity requirements
,
EN61000-4-6 - Electromagnetic compatibility for industrial-process
measurement and control equipment
Part 4: Section 6 – Immunity to conducted disturbances induces by
radio frequency fields
,
EN61000-4-8- Electromagnetic compatibility for industrial-process
measurement and control equipment
Part 4: Section 8– Power frequency magnetic field immunity
requirements
,
EN61000-4-11 – Electromagnetic compatibility for industrial-process
measurement and control equipment Part 4: Section 11 – Voltage
dips short interruptions and voltage variations immunity requirements
,
EN61000-3-2 – Harmonic standard
,
EN61000-3-3 – Voltage Fluctuation and Flicker standard
,
CISPR 22 - Radiated and Line-conducted Class A
,
EN 60950 - ITE Safety
A ‘Declaration of Conformity’, in accordance with the above standards, has been
made and is on file at Optical Access Communications Ltd.
This document and the information contained herein are proprietary to
Optical Access and are furnished to the recipient solely for use in operating,
maintaining and repairing Optical Access equipment. The information within
may not be utilized for any purpose except as stated herein, and may not
be disclosed to third parties without written permission from Optical Access.
Optical Access reserves the right to make changes to any technical
specifications in order to improve reliability, function or design.
©2001 Optical Access Inc.
ii
OptiSwitch 2400/L3
About This Guide
Important Notice
This User's Guide is delivered subject to the following conditions
and restrictions:
■ This User's Guide contains proprietary information belonging to
Optical Access Inc. Such information is supplied solely for the
purpose of assisting explicitly and properly authorized users of
OptiSwitch-2400/L3.
■ No part of its contents may be used for any other purpose,
disclosed to any person or firm or reproduced by any means,
electronic or mechanical, without the express prior written
permission of Optical Access Inc.
■ The text and graphics are for the purpose of illustration and
reference only. The specifications on which they are based are
subject to change without notice.
■ The software described in this User's Guide is furnished under a
license. The software may be used or copied only in
accordance with the terms of that agreement.
■ Information in this User's Guide is subject to change without
notice. Corporate and individual names and data used in
examples herein are fictitious unless otherwise noted.
Copyright 2001 Optical Access Inc. All rights reserved.
OptiSwitch-2400/L3 is a trademark of Optical Access Inc.
Other company and brand products and service names are
trademarks or registered trademarks of their respective holders.
iii
OptiSwitch 2400/L3
About This Guide
About This Guide
This guide describes the OptiSwitch-2400/L3, its installation and
configuration procedures, as follows:
■ Chapter 1, Introducing OptiSwitch-2400/L3, provides an
introduction to the OptiSwitch-2400/L3.
■ Chapter 2, Getting Started, describes how to set up and install
the OptiSwitch-2400/L3.
■ Chapter 3, Configuring Interfaces, describes how to perform
basic aspects of interface and port configuration.
■ Chapter 4, Configuring Routing Protocols, describes IP routing
and the various routing protocols that can operate with the
OptiSwitch-2400/L3.
■ Chapter 5, CLI Commands, describes the CLI commands, and
provides a detailed example of each one.
iv
OptiSwitch 2400/L3
Table of Contents
Table of Contents
Chapter 1 ............................................................................ 1
Introducing OptiSwitch-2400 L3 ............................................................................. 1
What is OptiSwitch-2400/L3? .................................................................................. 2
What Can OptiSwitch-2400 Do for You? ................................................................ 3
Routing Function ..................................................................................................... 3
Backbone Management and Routing .................................................................. 3
Benefits ..................................................................................................................... 4
Chapter 2 ............................................................................ 5
Getting Started......................................................................................................... 5
Setting Up the Optiswitch-2400/L3 ......................................................................... 5
OptiSwitch-2400/L3 Architecture .......................................................................... 6
Optiswitch-2400/L3 Installation ............................................................................ 11
Safety Requirements............................................................................................. 11
General................................................................................................................... 13
Activating the OptiSwitch-2400 L3 ..................................................................... 15
Technical Specifications ...................................................................................... 16
Interfacing with the OptiSwitch-2400/L3.............................................................. 17
Telnet....................................................................................................................... 17
SSH ........................................................................................................................... 17
SNMP ....................................................................................................................... 17
Web Management Interface.............................................................................. 18
Command Line Interface ..................................................................................... 18
CLI Conventions .................................................................................................... 18
Command Modes................................................................................................. 19
Initial Configuration............................................................................................... 21
Module Installation................................................................................................ 22
First Time Login to the OptiSwitch-2400/L3 ........................................................ 22
Standard OptiSwitch-2400/L3 Login ................................................................... 23
Command Line Navigation and Editing ........................................................... 24
Command Navigation and Syntax .................................................................... 25
Password Configuration ........................................................................................ 28
Configuring or Changing the System Entrance Password.............................. 28
Configuring or Changing the Privileged Password.......................................... 29
Configuring or Changing the Root Password................................................... 30
v
OptiSwitch 2400/L3
Table of Contents
Configuring Time, Date, Banner and Location.................................................... 32
Configuring the Date............................................................................................ 32
Configuring the Time ............................................................................................ 32
Configuring the Banner........................................................................................ 33
Configuring the Location..................................................................................... 33
Configuring the Hostname .................................................................................. 34
Chapter 3 .......................................................................... 35
Configuring Interfaces .......................................................................................... 35
About Interface Configuration ............................................................................. 35
Primary IP Interface............................................................................................... 36
Secondary IP Interface......................................................................................... 38
Port Interface ......................................................................................................... 39
Tagged IP Interface .............................................................................................. 40
Tagged Port Interface .......................................................................................... 41
Port Tag Outbound Mode ................................................................................... 42
Management ........................................................................................................ 42
Physical Port Configuration ................................................................................. 43
Port Status............................................................................................................... 43
Port Speed Configuration .................................................................................... 43
Setting the Duplex Mode ..................................................................................... 44
Port Statistics Status ............................................................................................... 45
Show Port Statistics ................................................................................................ 45
Clear Port Statistics................................................................................................ 46
Chapter 4 .......................................................................... 47
Configuring Routing Protocols.............................................................................. 47
IP Routing ............................................................................................................... 47
Routing Protocols................................................................................................... 48
Static Routes .......................................................................................................... 48
Routing Information Protocol (RIP) ..................................................................... 49
RIP Authentication Customization ...................................................................... 50
Open Shortest Path First (OSPF)........................................................................... 51
Dynamic Host Configuration Protocol (DHCP)................................................. 52
Proxy Address Resolution Protocol (ARP)........................................................... 56
Chapter 5 .......................................................................... 58
CLI Commands...................................................................................................... 58
View Commands .................................................................................................. 59
Enable Commands............................................................................................... 74
Configure Commands ......................................................................................... 83
vi
OptiSwitch 2400/L3
Table of Contents
RIP Commands ...................................................................................................... 97
OSPF Commands ................................................................................................ 102
Interface Commands ......................................................................................... 110
DHCP Commands............................................................................................... 116
DHCP Relay Commands.................................................................................... 119
DNS Commands .................................................................................................. 120
vii
OptiSwitch 2400/L3
Introducing OptiSwitch-2400 L3
CHAPTER 1
Chapter 1
Introducing
OptiSwitch-2400 L3
About This Chapter
This chapter provides an introduction to the OptiSwitch-2400/L3
and includes the following sections:
■ What is OptiSwitch-2400 L3?, page 2, provides an introduction
to the OptiSwitch-2400 L3, and describes how it works and the
basic functions it performs.
■ What Can the OptiSwitch-2400/L3 Do for You?, page 3,
describes the importance of the OptiSwitch-2400/L3 as a
provider of high-speed switch routing and a backbone for the
Enterprise.
■ Routing Function, page 3, provides a description of how the
switch router operates.
■ Benefits, page 4, details the numerous benefits that OptiSwitch2400/L3 offers.
1
OptiSwitch 2400/L3
Introducing OptiSwitch-2400 L3
CHAPTER 1
What is OptiSwitch-2400/L3?
The OptiSwitch-2400/L3 is an IP router with the ability to provide
solutions for a wide range of networking applications. It includes a
twenty-four slot IP platform for both Enterprise, carriers, ISPs and
data service providers. The OptiSwitch-2400/L3 router performs
high-speed traffic engineering upto layer 4 and handles intelligent
communication between networks.
Figure 1 OptSwitch 2400 Front View
2
OptiSwitch 2400/L3
Introducing OptiSwitch-2400 L3
CHAPTER 1
What Can OptiSwitch-2400 Do for You?
The OptiSwitch-2400/L3 is a multi-faceted system that acts as a
switch router, IP security platform and network backbone. It is
capable of performing traffic engineering up to Layer 4 and
facilitating high-speed network connections for service providers.
The two principal functions of the OptiSwitch-2400/L3 are to
provide IP routing functionality, as well as, IP segmentation for
security and performance purposes.
Routing Function
The OptiSwitch-2400/L3 is capable of processing 35.7 million
packets per second. The router supports routing protocols such as
RIP I and II, OSPF,BGP4, together with functionality of networking
protocols and applications such as VRRP, DHCP, DHCP relay server
and DiffServ.
Backbone Management and Routing
The OptiSwitch-2400/L3 provides full routing functionality. With the
usage of the Linux based routing controller module and Layer-3
modules, high density routing interfaces can be provisioned in a
single system. The combination of a modular high-density and
powerful switch router with an extremely high capacity makes the
OptiSwitch-2400/L3 the ideal Enterprise backbone system. In the
enterprise LAN, the OptiSwitch-2400/L3 provide routing
functionality, as well as, IP segmentation for security and
performance purposes.
The OptiSwitch™ routing architecture is based on the system’s
powerful Layer 2-5 ASICs, which are capable of performing frame
header lookups at wire speed. This switch router hardware
components perform the IP traffic forwarding, while the routing
protocols are performed in the routing controller module. This
routing controller is based on the Intel architecture , which runs the
Linux Operating System. The Routing controller is connected to the
Forwarding components through the backplane matrix.
The routing architecture is such, that the routing tables are stored
in the Ingress port, which is the incoming port. The switching
engine’s hardware performs the forwarding of the frame to the
Egress (destination) port through the backplane matrix.
3
OptiSwitch 2400/L3
Introducing OptiSwitch-2400 L3
CHAPTER 1
When a topology change occurs, or when a new route is added
the frame is forwarded to the routing controller, which performs
the action based on the relevant routing protocol. The instruction
is then returned to the routing tables, which are stored in the
switching engines. Once an entry is learned the switching engine
performs the forwarding without the need to communicate with
the routing controller.
Benefits
The OptiSwitch-2400/L3 provides the following benefits:
■ Low-Cost Solution:
● High-density IP router cost-effective unit.
● Concentration and aggregation of IP traffic platform
■ Flexible and Multifaceted Solution:
● Twenty four slot chassis with integrated routing fabric and
management.
● Supports routing protocols OSPF, BGP4, and RIP
● Supports IP protocols VRRP, DHCP and DHCP relay
● Supports DiffServ (Quality of Service)
● Flow classification provided by a service-aware switch
router.
● Traffic management for thousands of active users.
● Custom IP filters for security and delay-sensitive applications.
4
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Chapter 2
Getting Started
About This Chapter
This chapter describes how to set up and install the OptiSwitch2400/L3, as follows:
■ Setting Up the OptiSwitch-2400/L3, page 5, describes the switch
router architecture, as well as, the installation guidelines and
specifications.
■ Interfacing with the OptiSwitch-2400/L3, page 17, describes
different ways to access the router.
■ Command Line Interface, page 18, describes the access levels
for entering configuration information, and the configuration
modes used during configuration. It also describes the various
aspects, functions, navigation tools and shortcuts of the
Command Line Interface (CLI).
■ Password Configuration, page 28, describes the procedures for
setting up and changing entrance and mode passwords.
Setting Up the Optiswitch-2400/L3
The Optiswitch-2400/L3 can operate as a standalone unit, or in
conjunction with any of the Optical Access products. The
Optiswitch-2400/L3 can be managed and configured through CLIbased interface, Optical Access' MegaVision SNMP manager or
any other SNMP-compatible software. The following section
describes the installation and operation of the OptiSwitch-2400/L3.
5
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
OptiSwitch-2400/L3 Architecture
The OptiSwitch-2400/L3 includes the following:
■ 12 slots, each slot accommodates one cassette that can
contain upto two port modules.
■ CPU Controller Module – Hardware configuration controller
located in the middle of the top front of the chassis.
NOTE:
This module is not user accessible and its RS 232 port is for maintenance use only.
■ Routing Controller Module-Routing engine supporting all
routing protocols and functions. Located at the right most slot
at the top front.
■ Power Supply Host – installed at the rear of the chassis.
■ Upto two PS hosts can be installed. Each PS host supports upto
two hot swappable power supplies.
6
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Front Panel
The front panel of the OptiSwitch-2400/L3 is displayed below:
Figure 2 OptSwitch 2400 Front View
The OptiSwitch-2400/L3 front panel comprises the following
components:
■ Module Panel: Twenty four slots for port modules
7
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
CPU Controller
■ Global LEDs and Switches: The following table describes the
various LEDs:
Name
Color / Type
of Light
Function
PWR
Green
On: Power is on
Off: Power is off
MGMT
Green
On: Management enabled
Off: Management disabled
TEMP
Green
Internal temperature within
limits (upto 60 °C)
Internal temperature is over
the limit of 60 °C
Yellow
Power Cord
On: Electricity connected to
the device
Off: Electricity disconnected in
the device
Reset Activity
Green
On: In reset mode
Off: Normal operation activity
PS Exist
Green
On: Power Supply is installed
Off: Power Supply is not
installed
PS OK
Green
On: Power supply is OK
Off: Power Supply is defective
PS Fan
Green
On: Active
Off: Not active
8
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
The following table describes the various switches and connectors:
Name
Color / Type
of Light
Power Switch
Function
On: Switch router powered-on
Off: Switch router powered-off
Reset Switch
On: Resets the device
(Push Button)
DB-9
Connector
An RS-232 connection for
debugging purposes.
9
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Routing Controller
Figure 3 Routing Controller
■ Global LEDs and Connectors: The following table displays the
Routing Controller’s various LEDs and their functions:
Name
Color /
Type of
Light
Function
RESET
Green
On: Resetting is in process
Off: Resetting is not in process
ACTIVITY
Green
(Controller)
(Blinking)
On: Communication between
routing module and hardware
LINK
Green
On: Controller Routing module is
linked to the hardware
Off: Controller Routing module is not
linked to the device
Green
On: Router module is powered-on
Off: Router module is powered-off
Green
On: Indicates Ethernet link on
management port 2
Off: Indicates no Ethernet link
Green
On: Indicates activity of the
Ethernet link
Off: Indicates no activity of Ethernet
the link
Green
On: Indicates Ethernet link on
management port 1
Off: Indicates no Ethernet link
(Controller)
(Controller)
PWR
(Controller)
LINK
(MNGT PORT 2)
ACTIVE
(MNGT PORT 2)
LINK
(MNGT PORT 1)
10
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Name
Color /
Type of
Light
Function
ACTIVE
Green
SLAVE
Green
On: Indicates activity of the
Ethernet link
Off: Indicates no activity of Ethernet
the link
Future Use
MASTER
Green
Future Use
(MNGT PORT 1)
The following table displays the Routing Controller’s various
connectors and their functions:
Name
Color /
Type of
Light
MGMT PORTS
-
RS-232
-
Function
Two Ethernet connectors for
management purposes
Connected: Direct CLI connection
(Connector)
Optiswitch-2400/L3 Installation
Safety Requirements
Rack Mounting
If rack mounted units are installed in a closed or multi-unit rack assembly,
they may require further evaluation by Certification Agencies. The following
items must be considered.
1. The ambient within the rack may be greater than room
ambient. Installation should be such that the amount of air
flow required for safe operation is not compromised. The
maximum temperature for the equipment in this
environment is 50 °C. Consideration should be given to the
maximum rated ambient.
11
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
2. Installation should be such that a hazardous stability
condition is not achieved due to uneven loading.
Ac Input Supply
Check nameplate ratings to assure there is no overloading of supply circuits
that could have an effect on overcurrent protection and supply wiring.
Grounding
Reliable earthing of this equipment must be maintained. Particular
attention should be given to supply connections when connecting to power
strips, rather than direct connections to the branch circuit.
Module Screws
Securely tighten all screws to a minimum of 4.5 in-lb.
Dc Input Supply
When installing dc rated equipment, it must be installed only per the
following conditions:
a. Connect the equipment to a dc supply source that is
electrically isolated from the alternating current
source and reliably connected to earth, or connect it
to a dc SELV source.
b. To Be Installed Only in Restricted Access Areas
(Dedicated Equipment Rooms, Equipment Closets or
the like) in Accordance with Articles 110-16, 110-17,
and 110-18 of the National Electrical Code,
ANSI/NEPA 70.
c. Input wiring to terminal block must be routed and
secured in such a manner that it is protected from
damage and stress. Do not route wiring past sharp
edges or moving parts.
d. A readily accessible disconnect device, with a 3 mm
minimum contact gap, shall be incorporated in the
fixed wiring.
e. A Listed circuit breaker suitable for protection of the
branch circuit wiring and rated 48V dc minimum must
be provided.
12
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
General
The OptiSwitch-2400/L3 comes as a 19" rack-mountable unit. It can
be placed in a rack mount using the rack-mount brackets, or on a
secure flat surface.
The unit must be within reach of the necessary power outlet and
Ethernet connections. The OptiSwitch-2400/L3 is powered by a
wide-range power supplies for 110 or 220 VAC operation.
CAUTION:
Do not block any of the unit's ventilation holes. Free airflow must be maintained in
order to cool the OptiSwitch unit properly.
13
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Power Connection
The power cord should be plugged into an easily accessible
outlet. The built-in power supply automatically adjusts to any
outlet, providing it is between 90 VAC and 264 VAC at 50/60 Hz.
The power cord used for a 115 Volt configuration is a
minimum-type SJT (SVT) 18/3, rated 250 VAC, 10 Amps with a
maximum length of 15 feet. One end terminates in an IEC 320
attachment plug, the other end terminates in a NEMA 5-15P plug.
The power cord used for a 230 volt configuration is a
minimum-type SJT (SVT) 18/3, rated 250 VAC, 10 Amps with a
maximum length of 15 feet. One end terminates in an IEC 320
attachment plug, the other end terminates as required by the
country where it is installed.
Installation and Wiring
You must check the nameplate rating on the unit to ensure that
there is no overloading of supply circuits that could effect
overcurrent protection and supply wiring.
48-volt DC-rated equipment must be installed according to the
following conditions:
■ Connect to a supply source that is electrically isolated from the
alternating current source. The 48-volt DC source should be
connected to a 48-volt DC SELV source.
■ Input wiring to a terminal block must be routed and secured so
that it is protected from damage and stress. Do not route wiring
past sharp edges and/or moving parts.
14
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
■ Install an accessible disconnect device with a 3 mm minimum
contact gap in the fixed wiring.
Grounding
The OptiSwitch-2400/L3 must be properly grounded. You should
also be aware of electrical connections when connecting to
power strips, as opposed to direct connections to the branch
circuit.
Network Connections
The 10/100BaseTX ports on the OptiSwitch-2400/L3 are designed to
connect directly to a workstation using a standard straightthrough patch cable. In order to cascade switches or connect a
hub to the switch, a crossover cable must be used.
The cable connections to the 10/100BaseTX ports can be UTP or
STP Category 5 and above, and cable length is limited to 100
meters on each port. STP cable carries a higher quality of signal
and is less sensitive to environmental noise. The RJ-45 ports are
defined as MDI-X ports.
The OptiSwitch 2400/L3 also offers a high density Gigabit Ethernet
port platform in either copper or fiber. Using the Gigabit Ethernet
ports, allows for aggregation of multiple Gigait Ethernet links and
thus a higher bandwidth pipe can be achieved by connecting
multiple workgroup switches to a core enterprise switch. Gigabit
Ethernet ports are offered in either shortwave (SX) or longwave
(LX) and can reach distances of up to 60 km.
Activating the OptiSwitch-2400 L3
The power up / power down of the OptiSwitch-2400/L3 is an
internally sequenced process. To start, use the power switch
located on the front panel of the controller. Accordingly, the ONOFF switches of the hot swappable power supplies located in the
PS host, must always be in the “ON” position and not used for
system power down.
15
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Technical Specifications
Parameters
Optiswitch-2400/L3 Requirements
Compatibility
IEEE802.3z (Gigabit Ethernet),IEEE
802.3u (Fast Ethernet), IEEE802.1Q,
(Vlan Tagging), IEEE802.1p (Priority
Queuing),
RFCs: 1757 RMON (4 groups), 2236,
(IGMP v2), 783 (TFTP), 854 (Telnet),
1519 (Classless Interdomain
Routing(CIDR), 2178 (OSPF), 1122
(Host requirements), 768 (UDP ),
791 (IP ), 1812 (IP router
requirement), 792 (ICMP), 2131
(BootP/DHCP Relay), 1157 SNMP
v1/v2c, 1213 (MIBII), 1354 (IP
forwarding table MIB) 793 (TCP),
826 (ARP), 1643 (Ethernet MIB),
Optical Access Enterprise MIB,
1058 (RIP), 2453 (RIP v2), 1723 (RIP
v2), 1724 (RIP V2 MIB), 2328 (OSPF),
1850 (OSPF 2 MIB), 2338 (VRRP),
2787 (VRRP MIB), 1771 (BGP4), IP
Route Table MIB
Input Voltage (V)
90 – 264 VAC
AC Line Frequency
(Hz)
50-60 Hz
Minimum/Maximum
Power Consumption
(W)
115W / 620W
Size: Width x Depth x
Height
443 mmx457 mmx633 mm
17.4 x 18.0 x 24.9 inches
Weight
32 kg/ 70.4 lbs.
Operating
Temperature
0 °C to 40°C / 32°F to 104°F
Storage Temperature
-10 °C to +50°C/14°F to 122°F
Humidity
85% maximum, non-condensing
16
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Interfacing with the OptiSwitch-2400/L3
The OptiSwitch-2400/L3 can be configured from a direct console
connection to the RS-232 port, located on the Routing Controller. If
you are using a direct console connection, the terminal emulation
program should be configured for 9600 baud, 8 data bits, no
parity and 1 stop bit.
Alternatively, you can configure the OptiSwitch-2400/L3 using
Telnet, SNMP or the Web Management Interface. Prior to
configuration, you must assign an IP interface address to a port or
group of ports on the OptiSwitch-2400/L3 and configure it as a
management interface.
Telnet
Telnet enables you to remotely access and to configure the
OptiSwitch-2400. Through the Telnet protocol, you can log on to
the IP of the interface to which you are connected. After you
enter and log in, all commands operate as if the serial interface is
being used (CLI).
SSH
Secure Shell (SSH), sometimes known as Secure Socket Shell, is a
UNIX-based command interface and protocol for securely getting
access to a remote OptiSwitch-2400/L. It is widely used by network
administrators to control Web and other kinds of servers remotely.
Through the SSH protocol, you can log on to the IP of the interface
to which you are connected. After you enter and log in, all
commands operate as if the serial interface is being used (CLI).
SNMP
The Simple Network Management Protocol (SNMP) can also be
used to manage the OptiSwitch-2400/L3. You must then use an
SNMP-based network management software application, such as
Optical Access' MegaVision™. Optical Access switches and
routers support SNMP by implementing an SNMP agent that
reports MIB information to the workstation when requested. You
must define a route through the console from the router to the
SNMP manager.
17
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Web Management Interface
Optical Access MegaVision software also supports the Web
Management Interface through which you can access the
OptiSwitch-2400/L3.
Command Line Interface
The Command Line Interface gives you access to the
administrative interface, therefore, in order to ask the device to
perform some operation simply type the appropriate command.
The CLI enables you to manage, configure and receive status
information for all of the features of the Optiswitch-2400/L3. The CLI
contains various access levels and configuration modes that allow
you to perform the different configuration functions. To execute a
command, simply type the command followed by the parameters
the command requires.
CLI Conventions
The following style and font conventions are used to explain CLI
command utilization when configuring the OptiSwitch-2400/L3.
■ Bold font specifies that you must type the actual keyword
command that is displayed in bold.
■ Italic font specifies that you must enter a certain parameter
that is described by the word in italics.
■ [ ] specifies that the keyword, parameter or command is
optional.
■ [x|y] specifies that there are optional parameter alternatives.
■ {x|y} specifies that there are parameter alternatives.
Command Modes
This section describes the relevant components required to begin
the configuration process. There are three levels through which
you can access the different set of commands, where you
perform the actual configuration functions. The access levels and
configuration modes are described in the following sections.
18
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Access Levels
The OptiSwitch-2400/L3 has three levels of entry for the CLI,
depending on the knowledge, expertise and authorization level of
the user. The user accesses each level by entering the relevant
level password. The access levels are listed below.
■ User Mode: This is the first level accessed in the OptiSwitch2400/L3. You have access in the User Mode to a limited subset
of available commands. The User Mode enables you to view
the configuration of several router functions, but does not
enable any configuration.
■ Privileged (enable) Mode: This is the second access level,
which enables you to access most of the commands. To
access this level, enter the CLI command enable, followed by
the relevant password. To access configuration commands,
you then enter the command configure terminal. Privileged
mode enables you to monitor the network, make upgrades
and save configurations.
■ Technical Expert Mode: This is the third access level, providing
access to the operating system for expert users. To access this
level, enter the command linux. To become a root user
(superuser), enter the command su followed by the root
password.
CAUTION:
Improper use of the shell/Linux commands in Technical Expert mode may
cause damage to the OptiSwitch-2400/L3.
Configuration Modes
The OptiSwitch-2400/L3 includes several configuration modes that
determine the commands available to a particular subject. The
specific configuration modes enable you to configure the
required components for the router. The configuration modes are
listed below.
■ Global Configuration Mode: Enables general system
configuration. Enter this mode by typing configure terminal
from the Privileged mode. The (config)# prompt is displayed.
■ Interface Configuration Mode: Interface and protocol-specific
configuration. Enter this mode by typing interface from the
Global Configuration mode and entering the interface name.
The (config-if)# prompt is displayed.
19
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
■ Router Configuration Mode: Routing protocol configuration.
Enter the RIP, OSPF or BGP4 configuration modes by typing
router and the specific protocol.
■ DHCP Configuration Mode: DHCP configuration. Enter this
mode by typing dhcp from the Global Configuration mode.
The (config-dhcp)# prompt is displayed.
■ DHCP Relay Configuration Mode: DHCP relay configuration.
Enter this mode by typing dhcprelay from the Global
Configuration mode. The (config-dhcprelay)# prompt is
displayed.
■ DNS Configuration Mode: Domain Name Server configuration.
Enter this mode by typing dns from the Global Configuration
mode. The (config-dns)# prompt is displayed.
■ Route Map Configuration Mode: Route redistribution
configuration. Enter this mode by typing route-map and the
various parameters from the Global Configuration mode. The
(config-route-map)# prompt is displayed.
■ SNMP Configuration Mode: SNMP Configuration. Enter this
mode by typing snmp from the Global Configuration mode.
The (config-snmp)# prompt is displayed.
Initial Configuration
Prior to interface configuration, you must prepare information and
set up the OptiSwitch-2400/L3 properly. The following procedures
are recommended to ensure optimal functioning of the router.
Preparing to Configure
The following prerequisite information is required to configure the
OptiSwitch-2400/L3.
■ A map of your network topology.
■ The network protocols you are supporting.
■ The routing protocol to be used for each network protocol.
■ The IP addresses and the subnet masks for each network
interface.
■ The IP addressing plan for each network protocol.
20
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Module Installation
The OptiSwitch-2400/L3 includes twenty four slots for installing modules.
To install a module into an OptiSwitch-2400/L3:
1 Turn off the OptiSwitch-2400/L3 using the power switch and
make sure the router is powered off and completely shut
down. It might require a minute to power-down.
2 Insert the desired EM2004xx module into a free slot of a
cassette.
3 Tighten the thumbscrews securely.
4 Activate the OptiSwitch-2400/L3 using the power switch on the
front panel. It may require a few minutes before it is completely
loaded.
First Time Login to the OptiSwitch-2400/L3
Configuring the OptiSwitch-2400/L3 for the first time requires you to
define a number of parameters. You must define a root and login
password according to the following steps.
1 Turn on the OptiSwitch-2400/L3 for the first time.
2 Type the command ‘root’ in the “OS2400 login” prompt.
Optical Access OptiSwitch 2400/L3 version 1.4.10a
OS2400 login: root
3 Type in the password desired to configure the root (super user)
password in the system. The following is displayed
--- CHANGE ROOT PASSWORD --New UNIX password: new password
4 Retype the desired password.
5 Retype new UNIX password: new password
6 Type in the router’s admin (administrator) password. Enter the
password desired to configure the entrance into the system.
The following is displayed
passwd: all authentication tokens updated successfully
--- CHANGE ADMIN PASSWORD --New UNIX password: new password
21
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
7 Retype the desired password. The following is displayed
8 Retype new UNIX password: new password
The following message appears and indicates that password
authentication has been successful.
Passwd: all authentication tokens updated successfully
9 You are now ready to login with the new passwords
configured. Proceed to Standard OptiSwitch-2400/L3 Login.
Standard OptiSwitch-2400/L3 Login
The following are instructions the user needs to follow when
entering the OptiSwitch-2400/L3 for the second time and after.
1 Turn on the OptiSwitch-2400/L3 after the device initialization is
complete (approximately two and a half minutes). The
following will appear.
OS2400 login:
The default OS2400 login is ‘admin’ (all letters in lowercase).
2 Type in the appropriate password (refer to Configuring
Passwords).
Optical Access OptiSwitch 2400/L3 version 1.4.10a
login: admin
Password:password
The following will appear.
Optical Access OptiSwitch 2400/L3 version 1.4.10a
OS2400>
22
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Command Line Navigation and Editing
The OptiSwitch-2400/L3 CLI supports the following command line
editing keystrokes to enter and edit commands.
Keystroke
Function
Ctrl-A
Jumps to the first character on the
line.
Ctrl-B (or left
arrow)
Moves the cursor back one
character.
Ctrl-C
Escapes from and terminates
prompts and lengthy tasks.
Ctrl-D
Deletes the character at the cursor.
Ctrl-E
Jumps to the end of the current
command line.
Ctrl-F (or right
arrow)
Moves the cursor forward one
character.
Ctrl-K
Deletes all characters from the
cursor to the end of the command
line.
Ctrl-L, Ctrl-R
Repeats the current command on a
new line.
Ctrl-U, Ctrl-X
Deletes all characters from the
cursor to the beginning of the
command line.
Ctrl-W
Deletes the last word typed.
Ctrl-Z
Returns to the previous mode.
Esc-B
Moves the cursor back one word.
Esc-D
Deletes all characters from the
cursor to the end of the word.
Esc-F
Moves the cursor forward one word.
Delete or
Backspace
Erases command syntax mistakes.
(re-enter a command after using
these keys.)
23
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Command Navigation and Syntax
You can utilize various commands and shortcuts to assist in the
configuration process of the OptiSwitch-2400/L3.
No Commands
Almost every configuration command has a no form of the
command used to disable a feature or function. You can then
enter the command without typing no in order to re-enable the
function that you disabled or that was disabled by default.
OS2400(config-router)# network 113.114.23.2/31
OS2400(config-router)# no netowrk 113.114.23.2/31
OS2400(config-router)#
Default Commands
Some configuration commands have a default form of the
command used to return it to its default state. In some cases, the
default disables the command, turning the default into the no
form of the command. Other commands are enabled by default
and have variables set to default values. Entering default then
enables the command and sets the relevant values.
OS2400(config)# default event
Cancel event messages to CLI
OS2400(config)
Show Commands
The show command displays the current configuration status of
almost every command or function. The standard syntax is
show{configuration/function}, for example, show interface, which
enables you to view all of the defined interfaces for the router.
OS2400# show port
PORT CONFIGURATION
==================
PORT
LAN_TYPE
STATE
1.1
ETH10/100
1.2
ETH10/100
1.3
ETH10/100
1.4
ETH10/100
N1
ETH10/100
N2
ETH10/100
OS2400#
LINK
PHY
SPEED_SEL
OFF
OFF
OFF
OFF
OFF
OFF
TP
TP
TP
TP
TP
TP
AUTO
AUT
AUTO
AUT
AUT
AUT
24
LAN_SPEED
-
-
DUPLEX
ENABLED
ENABLED
ENABLED
ENABLED
ENABLED
ENABLED
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Abbreviated Commands
You can abbreviate commands and keywords to the number of
characters that allow a unique abbreviation. You can abbreviate
the configure terminal command by entering conf ter at the
system prompt and pressing <Enter> to execute the command. An
example is shown below.
OS2400#
OS2400# conf term
OS2400(config)#
Partial Commands
The <Tab> key enables you to complete partial commands. When
you enter a unique partial character string and press the <Tab>
key, the system completes the command or keyword on the
command line.
Accessing Help
Typing ? enables you to gain command information in a number
of ways.
NOTE:
The ? does not appear on the CLI screen and therefore is not depicted in the
following examples.
■ CLI Help: Type ? at the prompt in any mode to see the
commands available for that mode. The following example
displays the available options when you type ? in the User
mode.
OS2400>
enabled
exit
help
list
logout
ping
quit
show
telnet
traceroute
OS2400>
Turn on privileged mode command
Exit current mode and down to previous mode
Description of the interactive help system
Print command list
Logout form this current session
send echo messages
Exit current mode and down to the previous mode
Show running system information
Open a telnet connection
Trace t\route to destination
25
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
■ Command Syntax Help: Enter ? after a command to view a list
of valid keywords and arguments. This list contains all the
relevant commands, keyword and arguments relating to the
command you entered. You must insert a space between the
command and the question mark. For example, when you
type port duplex ?, the following results are displayed: (Screen
capture needs to be changed)
OS2400(config)# port duplex
Half
Port duplex mode set to half
Full
Port duplex mode set to full
■ Partial Keyword Help: Enter ? after a partial command to view
a list of commands that begin with a specific set of characters.
Do not insert a space between the last character and the
question mark. For example, when you type co?, the following
results are displayed: (Screen capture needs to be changed)
OS2400# co
Configure
Copy
Configure from vty interface
Copy file
■ Keyword Definition Help: Enter ? immediately after the keyword
to view the definition of a command or keyword that you have
typed. For example, when you type the command exit?, the
following results are displayed:
OS2400# co ter
OS2400(config)# exit
Exit
Exit current mode and down to previous mode
OS2400(config)# exit
26
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Password Configuration
The OptiSwitch-2400/L3 has three types of passwords,
corresponding to the level of entry given to a particular user.
■ System Entrance Password: Enables access to the OptiSwitch2400/L3 CLI.
■ Enable Password: Enables you to make configuration changes
to the OptiSwitch-2400/L3.
■ Linux/Root Password: Enables access to the operating system.
Passwords are secure and encrypted, designed to prevent
unauthorized access and configuration changes. A password can
contain from 1 to 25 uppercase and lowercase alphanumeric
characters.
NOTE:
It is recommended not to choose a password that contains words from a dictionary,
any type of name or personal accessible information, for example, telephone
numbers or addresses.
Configuring or Changing the System Entrance
Password
The following steps must be completed in order to configure or
change the system entrance password.
To configure or change the system entrance password:
1 Enter the enable mode to begin configuration.
OS2400> enable
OS2400 #
2 Type configure terminal to enter the Global Configuration
mode. The (config)# prompt indicates that you have entered
the Global Configuration mode.
OS2400#configure terminal
OS2400(config)#
3 Type the password command at the prompt and press <Enter>.
OS2400 (config)#password
27
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
4 Enter the current password at the prompt and press <Enter>.
Enter and re-enter your new password. The password is
authenticated and accepted by the system.
OS2400(config)#password
Changing password for admin
(current)UNIX password: current password
New UNIX password: new password
Re-type new UNIX password: new password
5 Type exit to return to the privileged (enable) mode.
The following is an example of the CLI when configuring the
system password:
OS2400(config)# password
Changing password for admin
(current) UNIX password:
New UNIX password:
Configuring or Changing the Privileged Password
The following steps must be completed in order to configure or
change the Privileged (enable) mode password.
To configure or change a privileged password:
1 Enter the enable mode to begin configuration.
OS2400> enable
OS2400 #
2 Type configure terminal to enter the Global Configuration
mode. The (config)# prompt indicates that you have entered
Global Configuration mode.
OS2400#configure terminal
OS2400(config)#
3 Type enable password to enter password configuration. Type 8
and then the hidden password or a Line password, meaning a
cleartext, unencrypted password.
OS2400(config)#enable password mypass
28
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
4 Type exit to return to the previous mode.
5 Type write file to save the configuration changes to the
configuration files.
Configuring or Changing the Root Password
There is a separate Technical Expert root password for accessing
the Linux operating system. You can configure or change the root
password using one of following two methods:
To configure the root password through the privileged (enable)
mode:
1 Enter the enable mode to begin configuration.
OS2400> enable
OS2400 #
2 Type linux and press <Enter> to enter the Technical Expert
access level.
OS2400# linux
[admin@OS]#
3 Type su to become a superuser. Then, type the current root
password at the password prompt. The following warning is
displayed:
[admin@OS]# su
Password: current_ root_password
BEWARE, YOU ARE SUPERUSER!
ANY CHANGES IN SYSTEM CONFIGURATION
MAY SERIOUSLY DAMAGE THE ROUTER!
[root@osr]#
4 Type passwd at the prompt and enter your new root password.
[root@osr]#passwd
New UNIX password: new_root_password
5 Re-enter your new password. The password is authenticated.
29
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
The following displays a portion of the command line for
configuring a root password:
OS2400# linux
[admin@OS]# su
Password:
***********************************************
***
BEWARE, YOU ARE SUPERUSER!
***
***
ANY CHANGES IN SYSTEM CONFIGURATION ***
***
MAY SEROULSY DAMAGE THE ROUTER!
***
***********************************************
[root@os]# passwd
New UNIX password:
Retype new UNIX password:
Passed: all authentication tokens updated successfully
[root@os}#]
NOTE:
The root password should not be written down or revealed to unauthorized users in
order to prevent damage or unwanted changes to the operating system.
You can log in as a root user only from the terminal and not from a Telnet session.
To configure the root password at the system login:
1 Connect the terminal to the serial port.
2 Type root at the system login to enter the Technical Expert
access level.
3 At the prompt, enter the current root password.
Password: root_password
The superuser warning is displayed, as shown in Step 3 above.
4 Enter and re-enter your new password. The password is
authenticated.
30
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Configuring Time, Date, Banner and
Location
Configuring the Date
The following steps must be completed in order to configure the
system date.
To configure or change the date:
1 Enter the enable mode to begin configuration.
OS2400> enable
OS2400 #
2 Type date and enter the month, day and year.
OS2400# date August 23 2001
Thu Aug 23 11:41:28 EDT 2001
Configuring the Time
The following steps must be completed in order to configure the
system time.
To configure or change the time:
1 Enter the enable mode to begin configuration.
OS2400> enable
OS2400 #
2 Type time and enter the time (hh:mm).
OS2400# time 13:47
Thu Aug 23 13:47:00 EDT 2001
31
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Configuring the Banner
The following steps must be completed in order to configure the
banner.
To configure or change the banner:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type banner and banner text
OS2400(config)#banner Engineering_Backbone_Router
3 The next time the device is rebooted the new banner will
appears.
Configuring the Location
The following steps must be completed in order to configure the
location.
To configure or change the location:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type snmp to enter SNMP configuration mode
OS2400(config)#snmp
OS2400(config-snmp)
3 Type location and the location parameter. Only a single word
is allowed however, underscores can be used.
OS2400(config-snmp)location main_building_second_floor
OS2400(config-snmp)
32
OptiSwitch 2400/L3
Getting Started
CHAPTER 2
Configuring the Hostname
The following steps must be completed in order to configure the
hostname.
To configure or change the hostname:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type hostname and the hostname parameter. Only a single
word is allowed however, underscores can be used.
OS2400(config)#hostname zeus
zeus (config)
33
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
Chapter 3
Configuring
Interfaces
About This Chapter
This chapter describes how to perform basic aspects of interface
and port configuration, as follows:
■ Interface Configuration, page 35, details the process and the
commands involved in interface configuration.
■ Physical Port Configuration, page 42, describes the various
aspects of physical port configuration.
About Interface Configuration
The main objective of a router is to relay packets from one data
link to another. To achieve this goal, the characteristics of the
interfaces through which the packets are received and sent must
be clearly defined. These characteristics include, but are not
limited to, the address of the interfaces, list of ports, media-type,
data encapsulation method and bandwidth. As a result, many
features are enabled on a per-interface basis. The interface
configuration mode contains commands that modify the
operation of an Ethernet or serial port.
34
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
The four types of interfaces for the OptiSwitch-2400 L3 are: IP
interface, Port interface, Tagged IP interface and Tagged Port
interface. Tagged-ports and Tagged-IP are used to interface with
other devices (e.g. switches, routers) that utilize VLAN TAGGING
802.1Q. Tagged-IP can be used for IP termination for layer 2
switches while Tagged-ports simulates layer 2 switching behavior.
IP and port interfaces are used for non-tagged environments.
The basic configuration begins with defining primary, secondary
and port interfaces, as described in the following sections.
Primary IP Interface
An IP interface define a broadcast domain for IP traffic. The
interface is assigned an IP address and is allowed to participate in
IP protocols (e.g. routing protocols, DHCP, Proxy Arp).
To define a primary interface:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type interface ethernet, followed by an interface name (for
example, vif3), IP address, subnet mask and the relevant port
range. Optionally you can add the interface name. An
example appears as follows:
OS2400(config)# interface ethernet if name ip ip
address/subnetmask port range {interface_name}
OS2400(config)# vif 194.90.137.254/24 1.1-1.8 sales
NOTE:
To avoid syntax errors, be sure to define port numbers properly. A port is
defined as {slot number.port number}, meaning port 8 in slot 4 is entered as
4.8. If you want to enter a range of ports, for example, ports 8-10 in slot 2, you
would enter 2.8-2.10.
35
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
NOTE:
Standards describing routing protocols often refer to the extended-networkprefix-length rather than the subnet mask. The prefix length is equal to the
number of contiguous one-bits in the traditional subnet mask. The / prefixlength notion is more compact and easier to understand than writing out the
mask in its traditional dotted-decimal format. The following example illustrates
this:
IP Address:
10000010.00000101.00011001
Subnet Mask:
11111111.11111111.11111111.00000000
or
IP Address / Prefix
130.5.5.25/24
The following command line is displayed, indicating that you
are in Interface Configuration mode:
OS2400 (config if)#
3 Type exit to return to the previous mode.
4 Type write file to save the configuration changes to the
configuration files.
The following example displays a portion of the command line
during interface configuration. The show interface command is
used to display the configured interfaces:
NOTE:
The symbol “?” is not displayed in the OptiSwitch-2400/L3 screen.
OS2400(config)#interface ethernet vif2
ip
ip-vlan
ports
ports-vlan
tagged-ip
TAGGED
IP-VLAN
tagged-ports
TAGGED
PORTS-VLAN
<cr>
OS2400(config)#interface ethernet vif2 ip 192.168.1.1/24
PORTS-GROUP
secondary interface
secondary
vlan symbolic name
OS2400(config)#interface ethernet vif2 ip 192.168.1.1/24 1.1-1.2
[name]
OS2400(config)#interface ethernet
vif2 ip 192.168.1.1/24 1.1-1.2
create ip interface on device vif2
OS2400(config-if)#
36
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
Secondary IP Interface
A secondary interface is defined in order to configure multiple IP
addresses on the same physical interface. The secondary
interface is configured using the same interface name. The
method of configuring a secondary interface is shown below.
To define a secondary interface:
1 From the enable mode, enter configure terminal to begin
configuration.
2 Type interface ethernet, and enter the interface name
followed by a colon and the relevant secondary interface
number (e.g. vif1000:5). Enter the Ethernet IP mode, and then
enter the IP address and the subnet mask as done in Primary IP
Interface, page 36. Type secondary to define the secondary
interface. The secondary interface uses the same port group as
the primary interface.
OS2400(config)# interface ethernet interface name:number ip
ip address/subnet mask secondary
The following command line is displayed, indicating that you are in
Interface Configuration mode:
OS2400 (config if)#
5 Type exit to return to the previous mode.
6 Type write file to save the configuration changes to the
configuration files.
The following example displays a portion of the command line for
secondary interface configuration:
OS2400(config)#interface ethernet vif2:1 ip 11.1.1.1/16
PORTS-GROUP Secondary interface
secondary
VLAN symbolic name
OS2400(config)#interface ethernet vif2:1 ip 11.1.1.1/16 secondary
[name]
OS2400(config)#interface ethernet vif2:1 ip 11.1.1.1/16 secondary rina
created IP interface on device vif2:1
37
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
Port Interface
The Port interface defines a broadcast domain for non-IP traffic
(e.g. IPX, Decnet). The method of configuring is shown below.
To configure a port interface:
1 From the enable mode, enter the configure terminal
command to begin configuration.
2 Type interface ethernet, and then enter the interface name.
Type port, and then enter the port range and the symbolic
interface name.
OS2400(config)# interface ethernet ifname port port range
symbolic name
The following command line is displayed, indicating that you are in
Interface Configuration mode:
OS2400 (config if)#
3 Type exit to return to the previous mode.
4 Type write file to save the configuration changes to the
configuration files.
The following example displays a port interface:
OS2400(config)# interface ethernet 194.90.137.254 port 2.1-7.1 R&D
38
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
Tagged IP Interface
A Tagged IP interface is defined as a broadcast domain for traffic
assigned with a specific tag. The tagged IP interface is assigned
an IP address and is allowed to participate in IP protocols (e.g.
routing protocols, DHCP, Proxy Arp).
To configure a tagged IP interface:
1 Type interface ethernet, and then enter the interface name.
Type tagged-ip, and then enter IP the port group and the tag.
OS2400(config)# interface ethernet ifname tagged-ip
ip_address port_group tag
The following command line is displayed, indicating that you are in
Interface Configuration mode:
OS2400 (config if)#
2 Type exit to return to the previous mode.
3 Type write file to save the configuration changes to the
configuration files.
The following example displays a port interface:
OS2400(config)# interface ethernet vif3 tagged-ip
194.90.137.254/24 2-6 6
The following example configures a tagged ip VLAN called vif3
(this will be the interface identifier from this point) on ports 2.1-2.6.
The tag for the VLAN is 6.
OS2400(config)# interface ethernet vif3 tagged-port 2.1-6.1 6
NOTE:
Interface command turns tag outbound mode on all their ports to the tag mode.
If you want to turn on some of them or all of them to untagged mode use the
port tag-outbound mode command.
39
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
Tagged Port Interface
A tagged port interface is defined as a broadcast domain for
traffic assigned with a specific tag.
To configure a tagged-port interface:
1 From the enable mode, enter the configure terminal
command to begin configuration.
2 Type interface and ethernet, and then enter the interface
name. Type tagged-port, and then enter the port group and
the tag
OS2400(config)# interface ethernet ifname tagged-port ip
address port group tag name
The following command line is displayed, indicating that you are in
Interface Configuration mode:
OS2400 (config if)#
3 Type exit to return to the previous mode.
4 Type write file to save the configuration changes to the
configuration files.
The following example configures a tagged VLAN called vif3 (this
will be the interface identifier from this point) on ports 2.1-2.6. The
tag for the VLAN is 6.
OS2400(config)# interface ethernet vif3 tagged-port 2.1-6.1 6
NOTE:
Interface command turns tag outbound mode on all their ports to the tag mode.
If you want to turn on some of them or all of them to untagged mode use the
port tag-outbound mode command.
40
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
Port Tag Outbound Mode
Using the tag-outbound mode you can selectively change a port
state from either tagged to untagged or in reverse.
To configure the tag-outbound-mode for a port:
1 From the enable mode, enter the configure terminal
command to begin configuration.
2 Type port tag-outbound-mode followed by the mode tagged
or untagged and the port group
OS2400(config)# port tag-outbound-mode tagged 2.1-3.3
Management
Management access is blocked by a default. It may be opened
selectively on a specific interface according to your requirements.
To enable snmp management through an interface:
1 From the global configuration mode, type interface
interface_name
2 Type management snmp
OS2400(config)# interface vif1
OS2400(config-if)# management snmp
To enable Telnet management through an interface:
1 From the global configuration mode, type interface
interface_name
2 Type interface interface_name
3 Type management Telnet
OS2400(config)# interface vif1
OS2400(config-if)# management telnet
41
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
To enable Telnet or snmp management from a specific IP address
1 From the enable mode, enter the configure terminal
command to begin configuration.
2 Type interface interface_name
3 Type management [telnet][snmp] ip_address/mask
OS2400(config)# interface vif1
OS2400(config-if)# management telnet 194.90.137.254/24
Physical Port Configuration
The OptiSwitch-2400/L3 enables you to configure the physical
ports through various commands.
Port Status
You can view the ports status using the show port command
optionally you can then specify the ports you would like to
examine. A sample show port list is displayed below:
OS2400#show port
PORTS CONFIGURATION
====================
PORT
LAN_TYPE
LINK
PHY SPEED_SEL LAN_SPEED DUPLEX STATE
----------------------------------------------------------------------1.1
ETH10/100
OFF
TP
AUTO
ENABLE
1.2
ETH10/100
OFF
TP
AUTO
ENABLE
1.3
ETH10/100
OFF
TP
AUTO
ENABLE
1.4
ETH10/100
OFF
TP
AUTO
ENABLE
M.1
ETH10/100
OFF
TP
AUTO
100MBPS
FULL ENABLE
M.2
ETH10/100
OFF
TP
AUTO
ENABLE
Port Speed Configuration
The CLI enables you to configure the router port speed.
To configure the port speed:
1 From the enable mode, enter the configure terminal
command to begin configuration.
2 Enter the port speed command at the (config)# prompt. Type
in the required speed option followed by the port group or all
ports.
OS2400(config)# port speed {10/100/100/auto} {ports-group/all}
42
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
3 Type exit to return to the previous mode.
4 Type write file to save the configuration changes to the
configuration files.
The following example displays the command line for setting the
port speed configuration:
OS2400<config># port speed 100 all
Port 1.1 speed set to: FORC100
Port 1.2 speed set to: FORC100
Port 1.3 speed set to: FORC100
Port 1.4 speed set to: FORC100
Port m1 speed set to: FORC100
Port m2 speed set to: FORC100
OS2400<config>#
Setting the Duplex Mode
You can set the duplex transmission mode, either half or full, for a
port, group of ports, or all the ports.
To set the duplex mode:
1 From the enable mode, enter the configure terminal
command to begin configuration.
2 Enter the port duplex command at the (config)# prompt. Type
in either half or full and enter the port group or type all ports.
OS2400(config)# port duplex {half|full} {ports- group|all}
3 Type exit to return to the previous mode.
4 Type write file to save the configuration changes to the
configuration files.
The following example displays the command line for setting the
duplex mode.
OS2400(config)#port duplex
half
Port duplex mode set to half
full
Port duplex mode set to half
OS2400(config)#port duplex half
PORTS-GROUP
Group of ports
all
All ports
OS2400(config)#port duplex half all
43
OptiSwitch 2400/L3
Configuring Interfaces
CHAPTER 3
Port Statistics Status
The OptiSwitch-2400/L3 enables you to view and clear port
statistics in order to obtain required port information.
Show Port Statistics
You can view the port statistics status using the show command to
see all of the statistics on each port. A sample show port statistics
list is displayed below:
PORTS STATISTICS
================
Port 4.2 Ethernet RMON counters
-------------------------------Octets
: 808726487
Packets
: 244330287
BcastPkts
: 5862306
McastPkts
: 1457001
CRCAllignPkts : 0
UndersizePkts : 0
OversizePkts : 0
RuntPkts
: 0
JabberPkts
: 0
Collisions
: 0
Port 4.2 RMON Packet Size Distribution Counters
------------------------------------------------ 64 Octets : 99399318
65- 127 Octets : 182707492
128- 255 Octets : 29234268
256- 511 Octets : 5999209
512-1023 Octets : 9510968
1024-1518 Octets : 49815710
OS2400>
Clear Port Statistics
In order to clear the port status counter, use the port clearcounters command in the Global Configuration mode. An
example is displayed below:
OS2400<config># port clear-counters
OS2400<config>#_
44
OptiSwitch 2400/L3
Configuring Routing Protocols45
CHAPTER 4
Chapter 4
Configuring Routing
Protocols
About This Chapter
This chapter describes IP routing and the various routing protocols
that can operate with the OptiSwitch-2400/L3. It includes the
following sections:
■ IP Routing, page 47, provides a background on the function of
IP networks and how they are used to transmit information.
■ Routing Protocols, page 48, describes the function of routing
protocols and specifies each protocol you can utilize with
OptiSwitch-2400/L3.
IP Routing
IP routing is the selection of a preferred path for forwarding
packets from one IP network to another. IP networks are logical
networks, therefore associations of one or more IP networks with
an interface is possible. When a host on an IP network needs to
send a data packet to a host on another IP network, the
originating host sends the packet to an IP router or gateway on its
local network. The IP router forwards the packet to the destination
host's network, or to an intermediary router along the path to the
destination. The packet may be handled by several routers before
it reaches the destination network.
45
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
Routing Protocols
Routing protocols are the formulas used by routers to decide
where to forward the data packets. The routing protocol
determines the path and specifies how routers communicate and
share information with each other. If you do not use a static,
predetermined route, various routing protocols exist that enable
the network to act dynamically and switch paths when necessary.
Static Routes
A static route indicates a permanent transmission path to another
network. You can restrict the path of data packets by configuring
a static route. The route remains in the routing tables until you
remove it. However, if the interface used to reach the next hop in
the static route becomes disabled, the static route is
automatically removed from the IP routing table.
To configure a static route:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type ip route at the prompt. You can then enter ? to display
your command options. You can also enter the static route IP
destination address with or without the subnet mask, followed
by the interface name or gateway IP.
OS2400(config)# ip route {ip address/ip address and subnet
mask} {if name/gateway ip}
3 Type exit to return to the previous mode.
4 Type write file to save the configuration changes to the
configuration files.
The following example displays the command line for configuring
static routes:
OS2400> enable
OS2400# config term
OS2400(config)# ip route
A.B.C.D
IP destination prefix
A.B.C.D/M IP destination prefix (e.g. 10.0.0.0/8)
OS2400(config)# ip route 192.168.1.1/24
A.B.C.D
IP gateway address
INTERFACE IP gateway interface name
OS2400(config)# ip route 192.168.1.1/24 vif1
OS2400(config)#
46
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
Routing Information Protocol (RIP)
RIP is used for managing routing information within a
self-contained network, such as a corporate local area network
(LAN) or an interconnected group of LANs. Using RIP, the router
maintains a routing table and sends it periodically to the closest
neighboring routers, so that all the routers running RIP will have the
same routing information.
RIP, a distance-vector routing protocol, measures the shortest path
between two points on a network, using a hop count as a way to
determine network distance. Each host can then use the routing
information to determine where to send the packet next. The
OptiSwitch-2400/L3 supports both RIP I, and RIP II, which includes
subnet masking.
To configure RIP protocol:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type router rip at the (config)# prompt. This defines RIP as the
routing protocol and begins the RIP routing process.
OS2400(config)# router rip
OS2400 (config-rip-router)#
3 Type network followed by the subnet IP or interface name to
enable RIP on the specified network. RIP begins processing
packets on the specified network using the appropriate
address.
OS2400 (config-rip-router)# network IPV4_ADDR
4 Type version by the version number (I or II) to specify RIP
version.
5 OS2400 (config-rip-router)# version version number
6 Type redistribute connected to redistribute the router's local
connected interface.
OS2400 (config-rip-router)# redistribute connected
7 Type redistribute static to redistribute the router's local static
routes.
OS2400 (config-rip-router)# redistribute static
47
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
8 Type exit to return to the previous mode.
9 Type write file to save the configuration changes to the
configuration files.
The following displays a sample command line for configuring RIP:
OS2400# conf term
OS2400(config)# router rip
OS2400(config)# router rip
rip Routing Information Protocol (RIP)
OS2400(config)# router rip
OS2400(config-router)# network
A.B.C.D/M IP prefix <network>/<length>, e.g.,
WORD
Interface name
OS2400(config-router)# network vif1
OS2400(config-router)# version
version Set routing protocol version
OS2400(config-router)# version
<1-2> version
OS2400(config-router)# version 1
OS2400(config-router)# redistribute connected
OS2400(config-router)# redistribute static
OS2400(config-router)#
35.0.0.0/8
RIP Authentication Customization
The OptiSwitch-2400/L3 enables you to customize the interface by
choosing RIP I or RIP II, as described in the previous section. In
addition, you can customize the RIP protocol by integrating an
authentication for RIP messages received by the router.
To perform RIP authentication:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type interface and enter the interface name that you are
configuring.
OS2400(config)# interface interface name
OS2400 (config-if)#
48
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
3 Type ip rip authentication and enter the method you are using
for authentication of RIP messages to the router. Each
parameter, key-chain, mode and string, enables
authentication for the routing protocol. The router reads the RIP
message and if the correct authentication string or password is
included, then the message is authenticated. This prevents
unauthorized packets that do not have the required
authentication string from being processed.
OS2400(config-if)#ip rip authentication {key-chain key chain
number/mode fill in/string authentication string}
OS2400(config-if-au)#
4 Type exit to return to the previous mode.
5 Type write file to save the configuration changes to the
configuration files.
The following is a sample RIP message authentication command
line:
OS2400> enable
OS2400# conf term
OS2400(config)# interface
OS2400(config)# interface
OS2400(config-if)# ip rip
OS2400(config-if)# ip rip
OS2400(config-if)# ip rip
OS2400(config-if)#
vif1
authentication key-chain 22
authentication mode Main_Floor
authentication string 12345
Open Shortest Path First (OSPF)
The OSPF routing protocol is an Internet gateway protocol that
determines routes based on the number of routers, transmission
speed, delays and route cost. OSPF is a link-state protocol,
meaning that it updates neighboring routers only when changes
are made to the routing table, as opposed to a set periodic
update. OSPF therefore uses less network resources because
updates are sent only when necessary.
OSPF is designated by the Internet Engineering Task Force (IETF) as
one of several Interior Gateway Protocols.
49
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
To configure OSPF:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type router ospf to enter OSPF Configuration mode.
3 Type router-id, and then enter the router ID, in IP address
format, for the router utilizing OSPF.
4 OS2400 (config-ospf-router)# router-id ip address
5 Type network to specify a directly connected network on
which the OSPF routing protocol interfaces and processes
packets. Enter the network prefix address, which may or may
not include a subnet mask. Type area and enter the area ID
that is to be associated with the OSPF address range. It can be
specified as either a decimal value or as an IP address.
OS2400 (config-ospf-router)# network network prefix area area
id
6 Type redistribute static to redistribute the router's local static
interface.
The following displays a sample OSPF command line:
OS2400> enable
OS2400# conf term
OS2400(config)# router ospf
OS2400(config-router)# router-id
A.B.C.D OSPF router-id in IP address format
OS2400(config-router)# router-id 194.90.140.1
OS2400(config-router)# network
Area Set the OSPF area ID
OS2400(config-router)# network 194.90.140.1 area 0
OS2400(config-router)#
Dynamic Host Configuration Protocol (DHCP)
DHCP is an IP protocol that enables you to manage a network by
automatically giving each host or machine an IP address for a
specific amount of time. The amount of time, or "lease",
determines how long an IP address remains valid for a host in the
network, with the default value being one day. Using DHCP, you
can dynamically configure network clients with leased IP
addresses for varying amounts of time.
50
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
To configure DHCP:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type dhcp to enter the DHCP Configuration mode.
3 Type default-lease-time and enter the time, in seconds, if no
specific lease time is assigned.
OS2400 (config-dhcp)# default-lease-time time
4 Type max-lease-time and enter the time, in seconds, for a
client requesting a specific lease time.
OS2400 (config-dhcp)# max-lease-time time
5 Type domain at the prompt, and then enter the domain name.
OS2400 (config-dhcp)# domain domain name
Type dns and then enter the server IP address, that specifies the
client's specific IP address.
OS2400 (config-dhcp)# dns server ip
6 Type exit to return to the previous mode.
7 Type write file to save the configuration changes to the
configuration files.
The following example displays a portion of the command line for
DHCP configuration. You can type show dhcp configuration to
display the various DHCP parameters configured for the specific
client.
OS2400# conf term
OS2400(config)# dhcp
OS2400(config-dhcp)# domain
NAME The domain name (e.g. opticalaccess.com)
OS2400(config-dhcp)# domain
OS2400(config-dhcp)# domain coco.com
OS2400(config-dhcp)# domain
NAME The domain name (e.g. opticalaccess.com)
OS2400(config-dhcp)# show dhcp configuration
DHCP CONFIGURATION:
entry: device = vif1:1
entry: device = vif3
entry: device = vif1
entry: device = vif2
dhcp status = disable
OS2400(config-dhcp)#
51
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
When utilizing DHCP protocol, you must configure the subnet and
interfaces for the OptiSwitch-2400/L3.
To configure interfaces with DHCP:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type dhcp to enter the DHCP Configuration mode.
3 Type entry to define the subnet entry configuration and enter
the interface name or the subnet IP address and mask.
OS2400 (config-dhcp)# entry {interface name/subnet ip and
mask}
OS2400 (config-dhcp-subnet)#
4 Type range to define the range of IP addresses from which the
server allocates addresses to clients, and then enter the upper
and lower range values.
5 OS2400 (config-dhcp-subnet)# range upper range lower range
6 Type router and enter the router IP address to define the router
being used.
OS2400 (config-dhcp-subnet)# router router ip address
7 Type subnet-mask and enter the relevant mask.
OS2400 (config-dhcp-subnet)# subnet-mask mask
OS2400 (config-dhcp-subnet)#
8 Type exit to return to the previous mode.
9 Type write file to save the configuration changes to the
configuration files.
The following is a sample of a DHCP interface configuration:
OS2400# conf term
OS2400(config)# dhcp
OS2400(config-dhcp)# entry
ENTRY Interface name or remote subnet IP address and mask
(a.b.c.d/mask)
OS2400(config-dhcp)# entry 168.110.21.1/23
OS2400(config-dhcp-subnet)#range
LOWER_RANGE The lower range ip
OS2400(config-dhcp-subnet)# range 194.90.140.3 194.90.140.10
OS2400(config-dhcp-subnet)# router
ROUTER-IP The router IP
OS2400(config-dhcp-subnet)# router 176.45.24.1
OS2400(config-dhcp-subnet)# subnet-mask 24
52
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
DHCP Relay
DHCP Relay sends DHCP requests from a subnet not connected to
a DHCP server to one or more DHCP servers on other subnets.
Using the interface command in dhcp relay mode can specify on
which interfaces the relay agent will listen for requests. When non
is specified it listen to all interfaces.
To configure DHCP relay:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type dhcprelay to enter the DHCP Relay Configuration mode.
3 Type server to allocate a server for DHCP requests and enter
the server IP address.
OS2400(config-dhcprelay)# server server ip
4 Type entry and enter the interface name to define an interface
from which you will forward DHCP requests.
OS2400(config-dhcprelay)# entry interface name
5 Type exit or press <Ctrl-Z> to return to the previous mode.
6 Type the write file command to save the configuration
changes to the configuration files.
53
OptiSwitch 2400/L3
Configuring Routing Protocols
CHAPTER 4
The following is a sample DHCP Relay command line including a
display of available commands:
OS2400(config)#dhcprelay
OS2400(config-dhcprelay)#server
SERVER
The server IP to be added
OS2400(config-dhcprelay)#server 178.180.12.3
OS2400(config-dhcprelay)#server
disable Disable the DHCP Relay Agent
enable
Enable the DHCP Relay Agent
end
End current mode and down to previous mode
entry
Add an interface from which to forward dhcp requests
exit
Exit current mode and down to previous mode
help
Description of the interactive help system
list
Print command list
no
Negate a command or set its defaults
quit
Exit current mode and down to previous mode
server
Add a server to which to forward dhcp requests
show
Show running system information
write
Write running configuration to memory, network, or terminal
OS2400(config-dhcprelay)# enable
OS2400(config-dhcprelay)#enable dhcprelay
Proxy Address Resolution Protocol (ARP)
Proxy ARP is an IP service that provides address conversion in both
directions, for hosts that do not understand IP subnets. Proxy ARP
enables the router to act as a proxy for destinations on a subnet,
answer ARP requests and forward converted packets to the
appropriate destination it has searched for and found.
To configure Proxy ARP:
1 From the enable mode, type configure terminal to begin
configuration.
2 Type interface at the prompt. Use of this command assumes
you have already configured the interface. Enter the interface
name.
OS2400(config)# interface if name
3 Type proxy-arp to enable the Proxy ARP service.
OS2400(config-if)# proxy-arp
4 Type exit to return to the previous mode.
5 Type write file to save the configuration changes to the
configuration files.
The following displays a sample command line for configuring
Proxy ARP.
OS2400(config-if)# proxy-arp
Proxy ARP is anabled on the interface
OS2400(config-if)
54
OptiSwitch 2400/L3
Chapter 5
CLI Commands
About This Chapter
This chapter describes the CLI commands. It provides a detailed
example of each command, including its relevant syntax format.
The commands are grouped in the following groups:
■ View Commands, page 59.
■ Enable Commands, page 74.
■ Configure Commands, page 83.
■ RIP Commands, page 97.
■ OSPF Commands, page 102.
■ Interface Commands, page 110.
■ DHCP Commands, page 116.
■ DHCP Relay Commands, page 119.
■ DNS Commands, page 120.
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
View Commands
Command
enable
Description
Enters Privileged mode and enables use of Privileged commands.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400>enable
OS2400#
Command
exit
Description
Exits the current mode.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400(config if)#exit
OS2400(config)#exit
OS2400#
Command
help
Description
Displays a brief description of the help system.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# help
VTY provides advanced help feature. When you need help,
anytime at the command line please press '?'.
If nothing matches, the help list will be empty and you must backup
until entering a '?' shows the available options.
Two styles of help are provided:
1. Full help is available when you are ready to enter a
command argument (e.g. 'show ?') and describes each possible
argument.
2. Partial help is provided when an abbreviated argument is entered
and you want to know what arguments match the input (e.g. 'show
me?'.)
56
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
list
Description
Prints the command list for a specific mode.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# list
clear ip prefix-list
clear ip prefix-list WORD
clear ip prefix-list WORD A.B.C.D/M
configure terminal
copy ftp firmware VERSION FTP-SERVER REMOTE-DIR [USERNAME]
[PASSWORD]
copy running-config startup-config
date MONTH DAY YEAR
debug
debug ospf ism
debug ospf ism (status|events|timers)
debug ospf lsa
debug ospf lsa (generate|flooding|refresh)
debug ospf nsm
debug ospf nsm (status|events|timers)
debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all)
debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all)
(send|recv) (det)
debug ospf packet (hello|dd|ls-request|ls-update|ls-ack|all)
(send|recv|detai)
debug ospf spf
--More--
Command
logout
Description
Ends the CLI session and logs you out.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400> enable
OS2400# logout
Command
quit
Description
Enables you to exit the current mode and return to the previous mode.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# quit
Command
show date
Description
Shows the system date.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show date
OS2400>
Wed Apr 18 10:21:31 EDT 2001
57
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show history
Description
Lists the 19 most recent commands from the current session.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show history
enable
show port statistics 1.1-1.2
show table
show time
clear ip prefix list
terminal length 300
disable
enable
OS2400#
Command
show interface statistics [interface name]
Description
Displays statistics for all interfaces configured on the router.
Syntax
Description
interface name: Specifies the name of the interface you want
displayed.
Example
OS2400# show interface statistics vif1
vif1
Link encap:Ethernet HWaddr 00:20:1A:06:D5:86
inet addr:194.90.138.55 Bcast:194.90.138.255
Mask:255.255.255.0
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
OS2400#
Command
show interface [port|ip]
Description
Displays interface information for the specific type.
Syntax
Description
port: Shows the port interfaces only.
Example
PORT INTERFACES TABLE
Ip: Shows the IP interfaces only.
Name
Device
State
MAC
Tag
vif100
vif100
UP
00:20:1A:10:CE:E0
-
Ports
3.1-4.8,8.1
IP INTERFACES TABLE
Name
M Device IP
State MAC
vif1
* vif1
Ports
UP
00:20:1A:18:CE:E0
-
4.1-4.4
vif1:1 192.168.1.254/24
UP
00:20:1A:18:CE:E0
-
4.1-4.4
vif2
vif2
194.90.138.253/24
UP
00:20:1A:1C:CE:E0
-
4.5-4.6
vif3
* vif3
194.90.136.254/24
UP
00:20:1A:1E:CE:E0
-
4.7-4.8
vif1:1
194.90.137.254/24
Tag
58
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show dhcp {configuration|leases}
Description
Displays the current DHCP server settings.
Syntax
Description
configuration: Print the DHCP server configuration.
Examples
leases: Print the DHCP leases.
OS2400# show dhcp configuration
DHCP CONFIGURATION:
domain name = company.com
domain name servers = 195.91.136.1 195.91.1.5
default lease time = 43200
max lease time = 86400
netbios name servers = 195.91.137.2
netbios node type = 8
entry: device = vif1
entry: device = vif2
range: 195.91.139.2 195.91.139.9
router 195.91.139.1
subnet mask 255.255.255.240
entry: device = vif3
range: 195.91.139.18 195.91.139.25
router 195.91.139.17
subnet mask 255.255.255.240
entry: no known device
subnet ip 195.91.139.64/28
range: 195.91.139.67 195.91.139.72
router 195.91.139.65
subnet mask 255.255.255.240
entry: no known device
subnet ip 195.91.139.144/28
range: 195.91.139.147 195.91.139.152
router 195.91.139.145
subnet mask 255.255.255.240
dhcp status = enable
OS2400# sh dhcp leases
# All times in this file are in UTC (GMT), not your local timezone.
lease 195.91.139.147 {
starts 0 2001/05/20 12:01:21;
ends 1 2001/05/21 00:01:21;
hardware ethernet 00:60:08:99:27:e5;
uid 01:00:60:08:99:27:e5;
client-hostname "Jone";
}
lease 195.91.139.68 {
starts 0 2001/05/20 10:49:26;
ends 0 2001/05/20 22:49:26;
hardware ethernet 00:50:da:4b:95:06;
uid 01:00:50:da:4b:95:06;
client-hostname "Kate";
}
lease 195.91.139.34 {
starts 0 2001/05/20 08:22:14;
ends 0 2001/05/20 20:22:14;
hardware ethernet 00:60:97:c2:71:60;
uid 01:00:60:97:c2:71:60;
client-hostname "Romeo";
59
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show dhcprelay configuration
Description
Shows the configuration with which the DHCP relay agent will run.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show dhcprelay configuration
Listening on interface vif1
Listening on interface vif2
Listening on interface vif8
Forward to server: 195.91.136.89
dhcprelay
running
Command
show ip forwarding
Description
Displays the IP forwarding status.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show ip forwarding
IP forwarding is on
Command
show ip ospf {database|interface|neighbor|route}
Description
Displays general information about OSPF routing processes.
Syntax
Description
database: Displays the database summary.
interface: Displays interface information.
neighbor: Displays the list of neighbors.
route: Displays the OSPF routing table.
Example
OS2400# show ip ospf
database
Database summary
interface
Interface information
neighbor
Neighbor list
route
OSPF routing table
<cr>
60
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show ip ospf interface interface name
Description
Displays interface information about OSPF routing.
Syntax
Description
interface name: Specifies an interface name.
Example
OS2400# show ip ospf interface
vif2 is up, line protocol is up
Internet Address 195.91.139.1/28, Area 0.0.0.0
Router ID 1.1.1.3, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 1.1.1.3, Interface Address 195.91.139.1
No backup designated router on this network
Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Neighbor Count is 0, Adjacent neighbor count is 0
vif3 is up, line protocol is up
Internet Address 195.91.139.17/28, Area 0.0.0.0
Router ID 1.1.1.3, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 1.1.1.3, Interface Address 195.91.139.17
No backup designated router on this network
Timer intarvals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Neighbor Count is 0, Adjacent neighbor count is 0
vif6 is down, line protocol is down
OSPF not enabled on this interface
61
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show ip ospf database {asbrsummar|external|max-age|
network|router|self-originate|summary}{adv-router
address}|advaddress
Description
Displays lists of information related to the OSPF database. The various
parameters for this command provide information about different OSPF
link state advertisements (LSAs).
Syntax
Description
asbr-summary: Displays information only about the autonomous system
boundary router summary LSAs.
external: Displays information only about the external LSAs.
max-age: Displays LSAs in the Max Age list.
network: Displays information only about the network LSAs.
router: Displays information only about the router LSAs.
self-originate: Displays only self-originated LSAs (from the local router).
summary: Displays information only about the summary LSAs.
address: Specifies the link state ID as an IP address.
adv-router: Specifies advertising link states.
adv address: Specifies the IP address of the advertising router.
Example
OS2400# show ip ospf database
OSPF Router with ID (1.1.1.3)
Router Link States (Area 0.0.0.0)
Link ID
ADV Router
Age Seq#
CkSum
0.0.0.28 0.0.0.28
1629 0x80000b6b 0x4ffd 1
1.1.1.2
1.1.1.2
1318 0x80002259 0x5369 4
1.1.1.3
1.1.1.3
1320 0x80000f98 0x575b 5
2.2.2.2
2.2.2.2
1322 0x80000265 0x3d25 1
Net Link States (Area 0.0.0.0)
Link ID
ADV Router
Age Seq#
CkSum
195.91.136.18 2.2.2.2 1322 0x80000002 0x7f03
195.91.138.254 0.0.0.28 1630 0x80000082 0x8173
Type-5 AS External Link States
Link ID ADV Router Age Seq#
CkSum Route
62
Link count
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show ip ospf neighbor {ID number|interface name detail|detail all}
Description
Displays OSPF-neighbor information on a per-interface basis.
Syntax
Description
ID number: Specifies the neighbor ID number. This should be entered in
the A.B.C.D format, similar to an IP address.
interface name: Specifies the neighbor interface name.
detail: Specifies neighbor details.
all: Specifies inclusion of down status neighbors.
Example
OS2400# show ip ospf neighbor
2.2.2.2
1.1.1.2
Neighbor ID PriState Dead Time Address Interface RXmtL RqstLDBsmL
1 Full/DR
00:00:31 195.91.136.18 vif1 0
0
0
1 Full/DROther 00:00:31 195.91.136.254 vif10
0
0
Command
show ip prefix-list {name|detail|summary} {prefix|seq} first
match|longer
Description
Displays all IP prefix lists.
Syntax
Description
name: Specifies the IP prefix list name.
detail: Indicates the details of the prefix list you want to display.
summary: Indicates the summary of the prefix list you want to display.
prefix: Specifies the network and length of the IP prefix in IP address
format.
seq: Indicates the list will be displayed according to sequence number.
first match: Indicates that the first prefix length match will be displayed.
longer: Indicates that all prefix lists with prefix lengths equal to or longer
than the defined length will be displayed.
Example
OS2400# show ip prefix-list
ip prefix-list pl1: 2 entries
Description: My prefix list
seq 5 deny 11.11.0.0/16 ge 17
seq 10 permit 12.12.0.0/16 ge 18
OS2400#
63
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show ip ospf route
Description
Displays OSPF routing table information.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show ip ospf route
============ OSPF network routing table ============
N
192.168.1.0/24
[20] area: 0.0.0.0
via 195.91.136.254, vif1
N
195.91.136.0/24
[10] area: 0.0.0.0
directly attached to vif1
N
195.91.137.0/24
[20] area: 0.0.0.0
via 195.91.136.254, vif1
N
195.91.138.0/24
[20] area: 0.0.0.0
via 195.91.136.254, vif1
N
195.91.139.0/28
[10] area: 0.0.0.0
directly attached to vif2
N
195.91.139.16/28
[10] area: 0.0.0.0
directly attached to vif3
N
195.91.139.32/28
[10] area: 0.0.0.0
directly attached to vif4
N
195.91.139.48/28
[9] area: 0.0.0.0
directly attached to vif5
tag: 0
============ OSPF router routing table =============
R
0.0.0.28
[20] area: 0.0.0.0, ASBR
via 195.91.136.254, vif1
R
1.1.1.2
[10] area: 0.0.0.0, ASBR
via 195.91.136.254, vif1
R
2.2.2.2
[10] area: 0.0.0.0, ASBR
via 195.91.136.18, vif1
============ OSPF external
N E2 0.0.0.0/0
N E2 10.0.0.0/24
N E2 192.168.0.0/24
N E2 195.91.139.64/28
N E2 195.91.139.96/28
N E2 195.91.139.128/28
N E2 195.91.139.144/28
N E2 195.91.139.160/28
routing
[20/10]
[20/20]
[20/20]
[10/20]
[10/20]
[10/20]
[10/20]
[10/20]
64
table ===========
tag: 0
tag: 0
tag: 0
tag: 0
tag: 0
tag: 0
tag: 0
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show ip protocols
Description
Displays IP routing protocol process parameters and statistics.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show ip protocols
Routing Protocol is "rip"
updates every 30 seconds with +/-50%, next due in 12 seconds
after 180 seconds, garbage collect after 120 seconds
redistribution metric is 1
gupdate filter list for all interface is not set
gupdate filter list for all interface is not set
i redistributing: connected
version control: send version 2, receive version 2
Interface
Send Recv
Key-chain
vif1
2
2
Routing for Networks:
195.91.136.0/24
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
195.91.136.18
0
0 120
00:00:01:(defaultis120)
Command
show ip rip
Description
Displays RIP routes.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# sh ip rip
Codes: R - RIP, C - connected, O - OSPF, B - BGP
Network Next Hop
Metric From
Time
C 195.91.136.0/24
1
C 195.91.139.0/28
1
C 195.91.139.16/28
1
C 195.91.139.32/28
1
C 195.91.139.48/28
1
R 195.91.139.64/28 195.91.136.18 2 195.91.136.18 02:29
R 195.91.139.96/28 195.91.136.18 2 195.91.136.18 02:29
R 195.91.139.128/28 195.91.136.18 2 195.91.136.18 02:29
R 195.91.139.144/28 195.91.136.18 2 195.91.136.18
02:29
R 195.91.139.160/28 195.91.136.18 2 195.91.136.18
02:29
65
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show ip route protocol address|subnet mask
Description
Displays various IP routes.
Syntax
Description
protocol: Specifies the routing protocol. The available options are bgp,
connected, kernel, ospf, rip and static.
address: The IP address for which routing information is displayed.
subnet mask: Network mask that lets you mask subnetwork bits.
Example
OS2400> show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
B - BGP, > - selected route, * - FIB route
O>* 0.0.0.0/0 [110/10] via 194.90.138.254, vif2, 5d00h21m
S>* 10.0.0.0/24 [1/0] via 194.90.138.252, vif2
S>* 10.10.0.0/24 [1/0] via 194.90.136.159, vif3
S>* 192.168.0.0/24 [1/0] via 194.90.138.252, vif2
O
192.168.1.0/24 [110/10] is directly connected, vif1, 04w0d20h
C>* 192.168.1.0/24 is directly connected, vif1
O
194.90.136.0/24 [110/10] is directly connected, vif3, 01w1d02h
C>* 194.90.136.0/24 is directly connected, vif3
O
194.90.137.0/24 [110/10] is directly connected, vif1, 04w0d20h
C>* 194.90.137.0/24 is directly connected, vif1
O
194.90.138.0/24 [110/10] is directly connected, vif2, 01w6d05h
C>* 194.90.138.0/24 is directly connected, vif2
O>* 194.90.139.0/28 [110/20] via 194.90.136.89, vif3, 01w1d02h
O>* 194.90.139.16/28 [110/20] via 194.90.136.89, vif3, 01w1d02h
O>* 194.90.139.32/28 [110/20] via 194.90.136.89, vif3, 01w1d02h
O>* 194.90.139.48/28 [110/19] via 194.90.136.89, vif3, 23:53:26
O>* 194.90.139.112/28 [110/10] via 194.90.136.18, vif3, 01:15:53
O>* 194.90.139.128/28 [110/10] via 194.90.136.18, vif3, 6d18h46m
O>* 194.90.139.208/28 [110/10] via 194.90.138.250, vif2, 01w1d02h
OS2400>
66
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show lt
Description
Displays MAC learning table information.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show lt
INDEX
MAC ADDRESS
VID VIDX PORT MODE
TAGGED
---------------------------------------------------------1
00:60:08:26:AA:F8 0
0
4.1
DYNAMIC
2
00:20:1A:0B:EB:B7 0
0
4.1
DYNAMIC
3
00:00:00:00:00:01 0
0
4.1
DYNAMIC
4
00:01:02:AE:C5:A1 0
0
4.1
DYNAMIC
5
00:00:86:45:A3:4C 0
0
4.1
DYNAMIC
6
00:20:AF:7D:1B:61 0
0
4.1
DYNAMIC
7
00:00:86:44:BA:AE 0
0
4.1
DYNAMIC
8
00:00:86:45:A3:51 0
0
4.1
DYNAMIC
9
00:00:86:45:A3:55 0
0
4.1
DYNAMIC
10
00:00:86:44:BA:B6 0
0
4.1
DYNAMIC
11
00:A0:F8:26:F5:11 0
0
4.1
DYNAMIC
12
00:10:5A:46:E4:10 0
0
4.1
DYNAMIC
13
00:A0:F8:26:F5:15 0
0
4.1
DYNAMIC
14
00:00:00:41:00:10 0
0
4.1
DYNAMIC
15
00:00:00:41:00:11 0
0
4.1
DYNAMIC
16
00:00:00:41:00:12 0
0
4.1
DYNAMIC
17
00:10:7B:3B:5A:34 0
0
4.1
DYNAMIC
18
00:00:00:41:00:13 0
0
4.1
DYNAMIC
19
00:10:83:0C:17:92 0
0
4.1
DYNAMIC
-
Command
show port [ports-group]
Description
Displays port configuration information.
Syntax
Description
ports-group: Specifies the group of ports to be displayed.
Example
OS2400# sh port
PORTS CONFIGURATION===================
PORT LAN_TYPE LINK PHY SPEED_SEL LAN_SPEED DUPLEX STATE
---------------------------------------------------------1.1
ETH10/100 ON
TP AUTO 10MBps
HALF
ENABLE
1.2
ETH10/100 ON
TP AUTO 100MBps FULL
ENABLE
1.3
ETH10/100 OFF TP AUTO
ENABLE
1.4
ETH10/100 ON
TP AUTO 100MBps FULL
ENABLE
2.1
ETH10/100 OFF TP AUTO
ENABLE
2.2
ETH10/100 ON
TP AUTO 100MBps FULL
ENABLE
2.3
ETH10/100 OFF TP AUTO
ENABLE
2.4
ETH10/100 OFF TP AUTO
ENABLE
2.5
ETH10/100 OFF TP AUTO
ENABLE
2.6
ETH10/100 OFF TP AUTO
ENABLE
2.7
ETH10/100 ON
TP AUTO 100MBps FULL
ENABLE
2.8
ETH10/100 OFF TP AUTO
ENABLE
4.1
ETH1000B ON
FO AUTO 1000MBps FULL
ENABLE
0
/100 OFF TP AUTO
ENABLE
67
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show multicasts
Description
Displays multicast group membership.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show multicasts
netstat -g -n
IPv6/IPv4 Group Memberships
Interface
RefCnt Group
--------------- ------ --------------------lo
1
224.0.0.1
eth0
1
224.0.0.1
vif4093
1
224.0.0.1
OS2400#
Command
show security start date end date
Description
Displays the router security log.
Syntax
Description
start date: Specifies the month, date and time you want to begin the
log display.
end date: Specifies the month, date and time you want to end the log
display.
You can exclude one or both keywords for a broader time display.
Example
OS2400# show security 05-14-09:00:00 05-14-11:00:00
May 14 09:07:47 OS2400 login:
DIALUP AT ttyS0 BY admin
May 14 09:07:47 OS2400 login:
LOGIN ON ttyS0 BY admin
May 14 09:35:12 OS2400 login:
DIALUP AT ttyS0 BY admin
May 14 09:35:12 OS2400 login:
LOGIN ON ttyS0 BY admin
May 14 10:29:04 OS2400 login:
DIALUP AT ttyS0 BY admin
May 14 10:29:04 OS2400 login:
LOGIN ON ttyS0 BY admin
OS2400#
68
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show port statistics ports-group
Description
Displays port counter statistics.
Syntax
Description
ports-group: Specifies the group of ports to be displayed.
Example
OS2400# show port statistics 1.1-1.2
PORTS STATISTICS
================
Port 1.1 Ethernet RMON counters
-------------------------------Octets
: 711
Packets
: 13
BcastPkts
: 6
McastPkts
: 0
CRCAllignPkts : 2
UndersizePkts : 0
OversizePkts : 0
RuntPkts
: 0
JabberPkts
: 2
Collisions
: 17
Port 1.1 RMON Packet Size Distribution Counters
----------------------------------------------64 Octets : 0
65- 127 Octets : 9
128- 255 Octets : 0
256- 511 Octets : 0
512-1023 Octets : 0
1024-1518 Octets : 0
Port 1.2 Ethernet RMON counters
-------------------------------Octets
: 36495352
Packets
: 56821
BcastPkts
: 31
McastPkts
: 0
CRCAllignPkts : 2
UndersizePkts : 0
OversizePkts : 10460
RuntPkts
: 0
JabberPkts
: 0
Collisions
: 0
Port 1.2 RMON Packet Size Distribution Counters
0- 64 Octets : 16358
65- 127 Octets : 4059
128- 255 Octets : 213
256- 511 Octets : 6488
512-1023 Octets : 2655
1024-1518 Octets : 6126
Command
show table
Description
Displays default routing table to be used.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# sh table
table 0
69
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show time
Description
Displays the system time.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show time
Sun Apr 29 08:57:17 EDT 2001
70
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Enable Commands
Command
configure terminal
Description
Enters global configuration mode.
Syntax
Description
terminal: Executes configuration commands from the terminal.
Example
OS2400#
OS2400# config terminal
OS2400(config)#
Command
clear ip prefix-list name
Description
Clears the IP prefix lists definitions.
Syntax
Description
name: Specifies the name of the prefix list.
Command
disable
Description
Exits Privileged mode and returns to User mode.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# disable
Command
linux
Description
Opens the Linux shell for Technical Expert configuration.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# linux
[admin@OS]#
OS2400>
71
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
ping host
Description
Enables you to assess network connectivity by sending an echo request
packet to an address and waiting for a reply. Ping reply helps you to
determine path-to-host reliability, delays over the path and whether the
host is reachable and functioning.
The ping will function continuously until you press <Ctrl-C> to stop it.
Syntax
Description
Example
host: Specifies the host name of the system to ping. This can be a host
name or an IP address.
OS2400# ping 195.91.136.254
PING 195.91.136.254 (195.91.136.254) from
195.91.136.89 :
56(84) bytes of data.
64 bytes from 195.91.136.254: icmp_seq=0 ttl=255 time=9.2 ms
64 bytes from 195.91.136.254: icmp_seq=1 ttl=255 time=4.9 ms
64 bytes from 195.91.136.254: icmp_seq=2 ttl=255 time=4.0 ms
--- 195.91.136.254 ping statistics --3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 4.0/6.0/9.2 ms
Command
show arp
Description
Displays the entries in the ARP table.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show arp
(10.10.10.10) at 10:10:10:10:10:10 [ether] PERM
(195.91.136.18) at 00:20:1A:00:D5:B7 [ether] on
(195.91.139.19) at 00:10:4B:2A:9D:EC [ether] on
(195.91.136.29) at 08:00:20:79:C0:C4 [ether] on
(195.91.139.21) at 00:60:08:99:27:6E [ether] on
?
?
?
?
?
on vif4093
vif1
vif3
vif1
vif3
? (195.91.136.254) at 00:20:1A:1E:D6:9F [ether] on vif1
Command
show connections
Description
Displays the network connections and the list of open sockets.
Syntax
Description
This command has no arguments or keywords.
Example
OSM400# show connections
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address
tcp
0
0 localhost:2444
tcp
0
0 localhost:2443
tcp
0
0 localhost:www
tcp
0
0 localhost:2441
tcp
0
0 localhost:2440
tcp
0
0 localhost:2439
tcp
0
0 localhost:2438
tcp
0
0 localhost:2604
tcp
0
0 localhost:1978
tcp
0
0 localhost:2602
tcp
0
0 localhost:1977
tcp
0
0 localhost:2601
tcp
0
0 localhost:1976
tcp
0
0 localhost:1025
Active UNIX domain sockets (w/o servers)
72
Foreign Address
localhost:8007
localhost:8007
localhost:2442
localhost:8007
localhost:8007
localhost:8007
localhost:8007
localhost:1978
localhost:2604
localhost:1977
localhost:2602
localhost:1976
State
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
TIME_WAIT
ESTABLISHED
ESTABLISHED
ESTABLISHED
ESTABLISHED
ESTABLISHED
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show debugging ospf|rip
Description
Displays debugging status for RIP or OSPF routing protocols.
Syntax
Description
ospf: Show OSPF debugging status.
Example
OS2400# show debugging rip
rip: Show RIP debugging status.
Debugging status:
OS2400#
Command
show fib
Description
Displays Forwarding Information Base table..
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show fib
IP MASK PROT NEXT HOP IP
NEXT HOP MAC
PORT TAG
--------------------------------------------------------10.0.0.0 24 LOCAL 195.91.136.254 00:20:1A:1E:D6:9F 4.1
192.168.0.0 24 LOCAL 195.91.136.254 00:20:1A:1E:D6:9F 4.1
192.168.1.0 24 LOCAL 195.91.136.254 00:20:1A:1E:D6:9F 4.1
195.91.136.1 32 ARP
08:00:20:12:58:8D 4.1
195.91.136.3 32 ARP
08:00:20:1A:52:BF 4.1
195.91.136.7 32 ARP
00:00:3B:80:17:4F 4.1
End Of FIB Table
Command
show startup-config
Description
Displays the startup configuration file.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show startup-config
!
! OS2400 configuration saved from vty
!
2001/05/06 12:24:05
!
hostname OS2400
log syslog
!
!
!
interface vif1
!
interface vif2
!
router ospf
ospf router-id 178.167.54.4
!
OS2400#
73
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show syslog [loglevel [start date] [end date]]
Description
Displays system log messages. Without parameter, it displays all
messages from the last 24 hours
Syntax
Description
loglevel: Specifies the log level from which you want information
displayed. The options are debug, info, warning, error and fatal.
start date: Specifies the month, date and time you want to begin the
log display.
end date: Specifies the month, date and time you want to end the log
display.
You can exclude one or both keywords for a broader time display.
Example
OS2400# show syslog
Getting information..
May 13 14:01:13 OS /usr/local/nbase/sbin/powerm:
/etc/POWERM_INFO su
Open of
May 13 14:01:13 OS /usr/local/nbase/sbin/powerm:
Shutdown initiated
May 13 14:01:17 OS initd[572]:
INFO, initd.c(656), - initd_shutdown
May 13 14:01:17 OS initd[572]:
level c
INFO, initd.c(672), - Terminating low
Command
tcpdump interface name
Description
Enables you to dump traffic on the network by printing out the headers
of packets on the specific interface.
Syntax
Description
interface name: Specifies the interface to listen on.
Example
OS2400# tcpdump vif2
tcpdump -i vif2
Kernel filter, protocol ALL, datagram packet socket
tcpdump: listening on vif2
10:22:16.607561 > dhcp-139-1.nbase.co.il > OSPF-ALL.MCAST.NET:
OSPFv2-hello 44:
rtrid 1.1.1.3 backbone dr dhcp-139-1.nbase.co.il [tos 0xc0]
[ttl 1]
10:22:26.617465 > dhcp-139-1.nbase.co.il > OSPF-ALL.MCAST.NET:
OSPFv2-hello 44:
rtrid 1.1.1.3 backbone dr dhcp-139-1.nbase.co.il [tos 0xc0]
[ttl 1]
Command
telnet host {port}
Description
Enables you to connect a remote device host using the telnet protocol.
Syntax
Description
host: Specifies the host name or IP address.
port: Specifies the port number of the host.
74
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
time time
Description
The device maintains an internal clock The time commands enables you
to set the system clock.
Syntax
Description
time: Specifies the current time you are setting.
Example
OS2400# time 14:55
Mon May 14 14:55:00 EDT 2001
Command
date date
Description
The device maintains an internal calendar and enables you to set the
system date.
Syntax
Description
date: Specifies the current month, day and year.
Example
OS2400# time 14:55
Mon May 14 14:55:00 EDT 2001
75
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
upgrade ftp ftp server remote-dir remote-filename[username|password]
Aliase
copy ftp firmware version ftp server remote-dir username password
Description
Enables you to upgrade the OptiSwitch 2400 software using FTP protocol.
Syntax
Description
ftp server: Specifies the host name or IP address of the FTP server.
remote-dir: Specifies the full path to the directory on the FTP server.
remote-filename: Specifies the file name for monolithic upgrades.
username: Specifies the user name for FTP login.
password: Specifies the password for FTP login.
Example
OS2400# upgrade ftp 194.90.136.240 image os2400-devel-1.5.0.5.tar.gz zeus
Start the upgarding process
Get upgrade packet by ftp...
/pdisk/last-dnld/os2400-devel-1.5.0.5.tar.gz:
100.77 MB
1.00
MB/s
...done
Unpacking the packet...
++++++++++
Unmount /dev/hda2
/dev/hda2 umounted
++++++++++
Format device /dev/hda2 with type reiserfs
<-----------MKREISERFS, 2000----------->
ReiserFS version 3.5.27
Block size 4096 bytes
Block count 244984
First 16 blocks skipped
Super block is in 16
Bitmap blocks are :
17, 32768, 65536, 98304, 131072, 163840, 196608, 229376
Journal size 8192 (blocks 18-8210 of device 0x3:0x2)
Root block 8211
Used 8219 blocks
Hash function "r5"
ATTENTION: ALL DATA WILL BE LOST ON '/dev/hda2'! (y/n)Initializing journal
- 0%....20%....40%....60%....80%....100%
Syncing..
ReiserFS core development sponsored by SuSE Labs (suse.com)
Journaling sponsored by MP3.com.
To learn about the programmers and ReiserFS, please go to
http://www.devlinux.com/namesys
Have fun.
++++++++++
Mount /dev/hda2 device on /bdisk++++++++++
Unpacking...
++++++++++
Install device dependent files
++++++++++
/etc/shadow -> /bdisk//etc/shadow
/usr/local/etc/System.conf -> /bdisk//usr/local/etc/System.conf
76
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Added os
Added os-serial *
Added os-bak
Added os-bak-serial
Upgrading completed successfully
...done
System is going to reboot.
The upgrading process will continue during the next boot.
DON'T TURN OFF THE ROUTER DURING THE BOOT
YOU CAN SEE THE BOOT PROGRESS ON THE SERIAL PORT
Command
debug rip|ospf
Description
Enables the debugging functions.
Syntax
Description
rip: Specifies RIP protocol information.
Note
Debug information is sent to syslog and can be viewed through the
show syslog command.
Command
debug rip {events|packet}
Description
Enables the RIP debugging functions.
Syntax
Description
events: Specifies RIP events.
No Form
no debug rip {events|packet|zebra}: Disables the RIP debugging
function.
Note
Debug is information sent to syslog and can be viewed through the
show syslog command.
Command
debug rip packet {recv|send} detail
Description
Enables the RIP debugging functions for packets.
Syntax
Description
recv: Specifies RIP received packet.
ospf: Specifies OSPF protocol information
packet: Specifies RIP packet information..
send: Specifies RIP sent packet.
detail: Specifies detailed information display.
No Form
no debug rip packet {recv|send} detail: Disables the RIP debugging
function.
Note
Debug information is sent to syslog and can be viewed through the
show syslog command.
77
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
debug ospf {ism|lsa|nsm|packet|spf}{status|events|timers}
Description
Enables the debugging of OSPF information.
Syntax
Description
ism: Specifies OSPF Interface State machine.
lsa: Specifies OSPF Link State Advertisements.
nsm: Specifies OSPF Neighbor State Machine.
packet: Specifies OSPF packets.
spf: Specifies OSPF SPF information.
status: Specifies ISM status information.
events: Specifies ISM event information.
timers: Specifies ISM timer information.
No Form
no debug ospf
{ism|lsa|nsm|packet|spf|zebra}{status|events|timers}: Disables
the OSPF debugging function.
Note
Debug information is sent to syslog and can be viewed through
the show syslog command.
78
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show running-config
Description
Displays all the configuration information for the terminal.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show running-config
Building configuration...
Current configuration:
!
ip route 10.0.0.0/24 194.90.150.252
!
interface ethernet vif1 ip 194.90.150.254/24 4.1-4.4 vif1
management
multicast
!
interface ethernet vif1:1 ip 192.168.1.254/24 secondary vif1:1
!
ip ospf message-digest-key 1 md5 12345t
!
interface ethernet vif100 ports 3.1-4.8,8.1 vif100
!
router rip
network eixt
network vif1
!
router ospf
ospf router-id 194.90.140.1
redistribute static
network 192.168.1.0/24 area 0
area 0 authentication message-digest
!
!port configuration
port speed 10 25.1-25.2
port duplex full 25.1-25.2
interface ethernet vif1 ip 195.91.136.89/24 4.1,m1,m2 vif1
management
!
interface ethernet vif2 ip 195.91.139.1/28 2.2-2.6 VLAN_2
management
!
management
!
!
! wan configuration
!
! Port configuration
port speed 10 25.1-25.2
port duplex full 25.1-25.2
!
dns
domain-name zeus.co.il
nameserver 194.90.150.1
nameserver 194.90.1.5
enable
!
snmp
contact Root_<root@localhost>
location iris
!
OS2400#
79
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Configure Commands
Command
end
Description
Use the end command to exit configuration mode, or any of the
configuration submodes.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# config terminal
OS2400(config)# end
OS2400#
Command
event cli
Description
Sends event messages to the CLI.
Syntax
Description
This command has no arguments or keywords.
No Form
no event cli: Cancels event messages to the CLI.
Example
OS2400(config)# event cli
Event messages are send to the CLI
Command
hostname name
Description
Specifies or modifies the host name for the OptiSwitch 2400/L3.
Syntax
Description
name: New host name for the network server.
Example
Router# config term
Router(config)# hostname OS2400
OS2400(config)#
Command
enable password [8 hidden password|clear-text-password]
Description
Enables you to set an encrypted Privileged mode password.
Syntax
Description
8: Indicates that a hidden password will follow.
Example
OS2400(config)#
hidden password: Specifies an encrypted password.
enable password 8 mypassword
80
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
write erase
Description
Enables you to erase the current configuration and return to the
factory default configuration files.
New configurations are loaded only after you reboot.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# write erase
Restore factory defaults and backup current configuration.
Ok.
OS2400#
Command
write file|write memory
Aliase
write file|write memory
Description
Enables you to save your configuration work to the configuration
file.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# write file
Building Configuration...
[OK]
OS2400#
Command
write old-configuration
Description
Enables you to recover erased configuration information.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# write old-configuration
Restore last saved current configuration.
OS2400#
81
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
write terminal
Aliase
show running-config
Description
Enables you to display your configuration work on the terminal.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# write terminal
Building configuration...
Current configuration:
!
hostname OS2400
!
!
log syslog
ip dvmrp enable
!
interface ethernet vif1 ip 194.90.136.89/24 4.1,m1,m2 vif1
management snmp 0.0.0.0/0
management telnet 0.0.0.0/0
multicast
ip ospf message-digest-key 1 md5 12345t
!
interface ethernet vif2 ip 194.90.139.1/28 2.2-2.6 VLAN_2
management snmp 0.0.0.0/0
management telnet 0.0.0.0/0
!
router rip
redistribute connected
network 194.90.136.0/24
!
router ospf
ospf router-id 1.1.1.3
network 194.90.136.0/24 area 0
network 194.90.139.0/28 area 0
network 194.90.139.16/28 area 0
network 194.90.139.32/28 area 0
network 194.90.139.48/28 area 0
network 194.90.139.64/28 area 0
network 194.90.139.80/30 area 0
area 0 authentication message-digest
!
route-map lisi permit 10
!
!port configuration
port speed 1000 4.1
port duplex full 4.1
!
dhcp
domain nbase.co.il
dns 194.90.136.1
dns 194.90.1.5
netbios name-server 194.90.137.2
netbios node-type 8
entry vif2
range 194.90.139.2 194.90.139.9
subnet-mask 255.255.255.240
router 194.90.139.1
82
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
!
route-map lisi permit 10
!
!port configuration
port speed 1000 4.1
port duplex full 4.1
!
dhcp
domain nbase.co.il
dns 194.90.136.1
dns 194.90.1.5
netbios name-server 194.90.137.2
netbios node-type 8
entry vif2
range 194.90.139.2 194.90.139.9
subnet-mask 255.255.255.240
router 194.90.139.1
entry vif3
range 194.90.139.18 194.90.139.25
subnet-mask 255.255.255.240
router 194.90.139.17
enable
!
dns
domain-name nbase.co.il
nameserver 194.90.136.1
nameserver 194.90.1.5
enable
!
snmp
contact Root_<root@localhost>
authtrap enable
!
OS2400#
83
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
interface interface name
Description
Enter Interface Configuration mode. The interface must exist.
Syntax
Description
interface name: Specifies a name for the interface being
configured.
Example
OS2400# config ter
OS2400(config)# interface vif2
OS2400(config-if)#
Command
1 interface ethernet interface_name ip address/mask
port_range [symbolic name]
2 interface ethernet interface_name port port_range [symbolic
name]
3 interface ethernet interface_name tagged-ip address/mask
port_range tag [symbolic name]
4 interface ethernet interface_name tagged-port port_range
tag [sysmbolic name]
Description
Configures a new interfaces
Syntax
Description
Interface_name: interface identifier (e.g.vif2, vif2, vif8.1).
ip: Specifies an IP Virtual LAN for the interface.
address: Specifies the interface IP address.
mask: Specifies the interface's subnet mask.
port: Specifies a port or group of ports for the interface.
port_range: Specifies the group of ports on which you are
configuring the interface.
tagged-ip: specifies the IP or group of IPs with a tag
tagged-port: specifies the port or group of ports with a tag
tag: specifies a tag that will attributed to the interface
symbolic name: symbolic name given to the port interface
Example
OS2400(config)# interface ethernet vif1:1 ip
199.188.76.6/25 secondary rina2
created IP interface on device vif1:1
OS2400(config-if)#
84
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
ip prefix-list {name|sequence-number} {deny|permit|description
line number|seq sequence number} ip prefix|any
Description
Enables you to create an entry in a prefix list for efficient match
searches.
Syntax
Description
name: Specifies the prefix-list name.
sequence-number: Includes the sequence number in the prefix
list being created.
deny: Denies access to match certain packets.
permit: Permits access to match certain packets.
description: Prefix-list specific description.
line number: A series of up to 80 characters specifying the prefix
list.
seq: Indicates the placement of a sequence number in the prefix
list.
sequence number: Specifies the actual sequence number.
ip prefix: Specifies the IP network and prefix length.
No Form
no ip prefix-list {name|sequence number}
{deny|permit|description line number|seq sequence number} ip
prefix|any: Deletes the prefix list entry.
Example
OS2400(config)# ip prefix-list rina permit any
OS2400(config)#
Command
ip route {destination-prefix|ip network and mask} {gatewayaddress|gateway interface-name}
Description
Establishes static routes and defines the next hop for IP routing.
Syntax
Description
destination-prefix: Specifies the IP address of the destination
network or subnet.
ip network and mask: Specifies the network and mask that let you
mask network and subnetwork bits.
gateway address: Specifies the internet address of the gateway
that can be used to reach the network in standard IP address
format. Example: 1.1.1.1.
interface: Specifies the gateway interface to be used.
No Form
no ip route: Disables the static route.
Example
OS2400(config)# ip route 195.91.136.1/24
85
195.91.137.1
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
key chain name
Description
Defines authentication for routing protocols by identifying a
group of authentication keys.
Syntax
Description
name: Specifies the name of the key chain.
No Form
no key chain name: Removes the key chain.
Example
OS2400(config)# key chain colors
OS2400(config-keychain)#
Command
log [record-priority|syslog]
Description
Enables logging control.
Syntax
Description
record-priority: Indicates the logging of the priority of the
message within the message.
syslog: Indicates that the logging goes to syslog.
No Form
no log record-priority|syslog: Disables logging control.
Command
log trap
[emergencies|alerts|critical|errors|warnings|notifications|
informational|debugging|default]
Description
Limits logging to a specific level.
No Form
no log trap: Cancels the logging level.
Command
lt entry MAC address port
Description
Enables you to add a learning table entry (MAC address).
Syntax
Description
MAC address: Specifies the the learned MAC address in hex
format (aa:bb:cc:dd:ee:ff).
port: Species a port in decimal format.
No Form
no lt entry MAC address port: Deletes the entry.
Example
OS2400(config)# lt entry 22:33:44:55:66:77 1.2
OS2400(config)#
86
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
password
Description
Enables you to change the login password.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400(config)# password
Changing password for admin
(current) UNIX password:current_password
New UNIX password:new_password
Retype new UNIX password:new_password
passwd: all authentication tokens updated successfully
Command
port clear-counters
Description
Sets all port counters to 0.
Syntax
Description
clear counters: Indicates the clearing of port counters .
Example
OS2400(config)# port clear-counters
OS2400(config)#
Command
port default [ports-group|all]
Description
Sets port configuration to the default value (Auto-Negotiation
mode).
Syntax
Description
ports-group: Specifies the group of ports to be configured with
the new speed.
all: Indicates that all ports are in configuration.
Example
OS2400(config)# port default all
This action takes some time, wait please
OS2400(config)#
Command
port speed {10|100|1000|auto} {ports-group|all}
Description
Configure physical port speed.
Syntax
Description
10: Indicates that the port speed is set to 10 Mbit/sec.
100: Indicates that the port speed is set to 100 Mbit/sec.
1000: Indicates that the port speed is set to 1000 Mbit/sec.
auto: Indicates that the port speed is set Auto-Negotiation mode.
ports-group: Specifies the group of ports in port speed
configuration.
all: Indicates that all ports are in port speed configuration.
Example
OS2400(config)#
port speed 100 3.4
port 3.4 speed set to: FORC100
87
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
port duplex {half|full} {ports-group|all}
Description
Configures port duplex mode. In order to configure the port
duplex mode, the port speed must be set to 10 or 100 and not to
Auto Negotiation mode.
Syntax
Description
half: Indicates that port duplex mode is set to half-duplex
operation.
full: Indicates that port duplex mode is set to full-duplex
operation.
port-group Specifies the port in a group for a port in the duplex
mode.
ports-group: Specifies the group of ports in port duplex mode.
all: Indicates that all ports are in port speed configuration.
Example
OS2400(config)# port duplex full 3.4
port 3.4 duplex set to: FULL
OS2400(config)#
Command
port state {enable|disable}{ ports-group|all}
Description
Enables or disables a specific group of ports.
Syntax
Description
enable: Indicates that port state is set to enabled.
disable: Indicates that port state is set to disabled.
ports-group: Specifies the group of ports in configuration.
all: Indicates that all ports are in configuration.
Command
route-map tag deny|permit sequence-number
Description
Specifies the parameters for redistributing routes from one routing
protocol into another.
88
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Syntax
Description
tag: Defines a name for the route map. The redistribute router
configuration command uses this name to reference this route
map. Multiple route maps may share the same map tag name.
deny: Specified when the match criteria are met for the route
map, the route is not redistributed routing, and no further route
maps sharing the same map tag name will be looked at.
permit: Specified when the match criteria are met for this route
map, and the route is then redistributed. If the match criteria are
not met and permit is specified, the next route map with the
same map tag is tested. If a route does not pass any of the
match criteria for the set of route maps sharing the same name, it
is not redistributed by that set. The permit keyword is the default.
sequence-number: Specifies the position number a new route
map is to have in the list of route maps already configured with
the same name. The number can be from 1 to 65535.
No Form
no route-map tag deny|permit sequence-number: Enables you
to delete an entry.
Example
OS2400(config)# route-map
OS2400(config)# route-map purple
OS2400(config)# route-map purple permit
<1-65535> Sequence to insert to/delete from existing route-map
entry
OS2400(config)# route-map purple permit 4556
OS2400(config-route-map)#
Command
router ospf
Description
Enables you start OSPF routing process and enters routers OSPF
configuration mode.
Syntax
Description
This command has no arguments or keywords.
No Form
no router ospf: Disables OSPF.
Example
OS2400(config)# router ospf
OS2400(config-ospf-router)#
Command
router rip
Description
Enables you to configure the Routing Information Protocol (RIP)
and enters routers RIP configuration mode.
Syntax
Description
This command has no arguments or keywords.
No Form
no router rip: Disables RIP.
Example
OS2400(config)# router rip
OS2400(config-rip-router)#
89
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
service {advanced-vty|password encryption}
Description
Enables you to set up various services.
Syntax
Description
advanced-vty: Indicates that advance mode VTY is enabled.
No Form
no service: Disables the specific service.
Command
show arp [res|nres] [hostname] [interface]
Description
Displays the entries in the ARP table.
Syntax
Description
res: Shows only resolved arps.
password-encryption: Indicates that encrypted passwords are
enabled.
nres: Shows only unresolved arps.
hostname: Specifies the group of ports in configuration.
interface: Specifies the interface in configuration.
Example
OS2400# show arp res
? (10.10.10.10) at 10:10:10:10:10:10 [ether] PERM on vif4093
OS2400#
Command
show dhcprelay configuration
Description
Displays DHCP Relay configuration.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400(config)# show dhcprelay configuration
Listening on interface vif1
Forward to server: 177.180.22.2
dhcprelay - not running
OS2400(config)#
Command
show fib [address and mask]
Description
Enables FIB configuration.
Syntax
Description
address: Specifies the destination host or network IP address.
Example
mask: Specifies the destination host or network subnet mask.
OS2400# sh fib
IP MASK PROT NEXT HOP IP
NEXT HOP MAC
PORT TAG
--------------------------------------------------------10.0.0.0 24 LOCAL 195.91.136.254 00:20:1A:1E:D6:9F 4.1
192.168.0.0 24 LOCAL 195.91.136.254 00:20:1A:1E:D6:9F 4.1
192.168.1.0 24 LOCAL 195.91.136.254 00:20:1A:1E:D6:9F 4.1
195.91.136.1 32 ARP
08:00:20:12:58:8D 4.1
195.91.136.3 32 ARP
08:00:20:1A:52:BF 4.1
195.91.136.7 32 ARP
00:00:3B:80:17:4F 4.1
End Of FIB Table
90
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
access-list name {deny|permit|remark line} {prefix|any}
Description
Allows the incoming call to be used by source hosts that match
the access list parameters, thereby filtering by the access list
name.
Syntax
Description
name: Specifies the access list name by which you are filtering.
deny: Indicates packets are to be rejected.
permit: Indicates packets are to be forwarded.
remark: Indicates an access list entry comment.
line: Specifies the access list remark.
prefix: Specifies the prefix to match.
any: Indicates that any prefix can match.
No Form
no access-list name: Cancels the access list function.
Example
OS2400(config)# access-list ntom deny 11.22.12.21/3
OS2400(config)#
91
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
show version
Description
Displays OptiSwitch-2400/L3 general information and components
versions.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400# show version
Optical Access OptiSwitch 2400/L3 version devel-1.4.10a
Based on:
Red Hat Linux release 6.2 (Zoot)
Linux OS2400 2.2.17-OSR_10DG #1 Tue Mar 13 17:39:34 IST 2001 i686
Zebra 0.91 (i686-pc-linux-gnu).
Firmware flash version is 7.80
Firmware Rom version is 7.80
Hardware version is 0
Valid ports are 3.1-4.8,8.1,25.1-25.2
slot #1: empty
slot #2: empty
slot #3: l3eth8Ports10or100TP
slot #4: l3eth8Ports10or100TP
slot #5: empty
slot #6: empty
slot #7: empty
slot #8: l3eth1Port1000FO
slot #9: empty
slot #10: empty
slot #11: empty
slot #12: empty
slot #13: empty
slot #14: empty
slot #15: empty
slot #16: empty
slot #17: empty
slot #18: empty
slot #19: empty
slot #20: empty
slot #21: empty
slot #22: empty
slot #23: empty
slot #24: empty
slot #25: l3eth8Ports10or100TP
up 55 days 20:30, 2 users
92
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
table table number
Description
Enables you to configure the target kernel routing table.
Syntax
Description
table number: Specifies the table integer.
Example
OS2400(config)# table 2
OS2400(config)#
93
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
RIP Commands
Command
default-information originate
Description
Generates a default route into Routing Information Protocol (RIP).
Syntax
Description
This command has no arguments or keywords.
No Form
no default-information originate: Cancels the default route.
Example
OS2400(config-rip-router)# default-information originate
OS2400(config-rip-router)#
Command
default-metric number
Description
Sets default metric values for Routing Information Protocol (RIP)redistributed routes.
Syntax
Description
number: Specifies the default metric value. The value is from 1 to
16.
No Form
no default-metric number: Returns to the default state.
Example
OS2400(config-rip-router)# default-metric 6
OS2400(config-rip-router)#
Command
distance value{ip-prefix}{ access-list name}
Description
Enables you to set the RIP distance to specified value globally or
when the route's source IP address matches the defined prefix
and defined access list name.
Syntax
Description
value: Indicates the RIP distance value. The RIP distance value
defines priority of RIP routes in Routing Information Base (RIB). The
value is from 1 to 255.
ip-prefix: Specifies the IP source prefix number in IP address
format.
access-list name: Specifies the access list name.
No Form
no distance value {ip-prefix and mask} {access-list name}: Returns
to the default values.
Example
OS2400(config-rip-router)# distance 200 188.177.65.3/23 green
94
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
distribute-list list-name in|out interface name
Description
Enables you to filter networks in routing updates using access lists.
Syntax
Description
list-name: Specifies a standard IP access list number or name. The
list defines which networks are to be received and which are to
be hidden in routing updates.
in: Indicates that the access list filter is applied to incoming
routing updates.
out: Indicates that the access list filter is applied to outgoing
routing updates.
interface name: Specifies the interface name on which the
access list filter is applied.
No Form
no distribute-list list-name in|out interface name: Disables the
filtering function.
Example
OS2400(config-router)# distribute-list pine in vif2
OS2400(config-router)#
Command
distribute-list prefix list-name in|out interface name
Description
Enables you to filter networks in routing updates and match
according to prefix lists.
Syntax
Description
prefix: Indicates the use of filter prefixes in routing updates.
list-name: Specifies a prefix list name. The list defines which
networks are to be received and which are to be hidden in
routing updates.
in: Indicates that the access list filter is applied to incoming
routing updates.
out: Indicates that the access list filter is applied to outgoing
routing updates.
interface name: Specifies the interface name on which the
access list filter is applied.
No Form
no distribute-list prefix list-name in|out interface name: Disables
the filtering function.
Example
OS2400(config-router)# distribute-list prefix pail out vif3
OS2400(config-router)#
95
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
neighbor ip address
Description
Enables you to use unicast RIP routing updates to the specified
neighbor instead of normal multicast updates.
Syntax
Description
ip address: Specifies the IP address of the neighbor router.
No Form
no neighbor ip address: Disables the RIP neighbor.
Example
OS2400(config-router)# neighbor 112.132.12.1
OS2400(config-router)#
Command
network IPV4_address
Description
Enables the RIP routing protocol on the specific network.
Syntax
Description
IPV4_address: Specifies IP prefix or interface name.
No Form
no network IPV4_address: Disables RIP.
Example
OS2400(config-rip-router)# network vif1
OS2400(config-rip-router)#
Command
offset-list list-name in|out value interface-name
Description
Enables you to add an offset to incoming and outgoing metrics
on routes updated through Routing Information Protocol (RIP).
Syntax
Description
list-name: Specifies a standard access list name to be applied.
in: Indicates that the access list filter is applied to incoming
metrics.
out: Indicates that the access list filter is applied to outgoing
metrics.
value: Specifies the metric value for redistributed routes. The
value can be from 0 to 16.
interface name: Specifies the interface name to which the list
should be matched.
no offset-list list-name in|out value interface name: Removes an
offset list.
Example
OS2400(config-rip-router)# offset-list myacl in 5 vif1
96
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
passive-interface interface-name
Description
Enables you to suppress outgoing routing updates on an
interface.
Syntax
Description
interface-name: Specifies the interface.
No Form
no passive-interface interface-name: Returns to default.
Example
OS2400(config-rip-router)# passive-interface vif2
OS2400(config-rip-router)#
Command
redistribute {kernel|connected|static|ospf|bgp} {metric value}
{route-map tag}
Description
Enables you to redistribute routing information from one routing
protocol to another.
Syntax
Description
kernel: Indicates kernel routes.
connected: Indicates that toutes should pass a route-map before
redistribution.
static: Indicates static routes.
ospf: Indicates OSPF routing protocol.
bgp: Indicates BGP routing protocol.
metric: Indicates the metric used for redistributed routes.
value: Specifies the actual value of the metric.
route-map: Indicates that routes should pass a route-map before
redistribution.
tag: Specifies the route map identifying tag.
No Form
no redistribute {kernel|connected|static|ospf|bgp}
{metric value} {route-map tag}: Cancels routing redistribution.
Example
OS2400(config-rip-router)# redistribute static metric 12
OS2400(config-rip-router)#
Command
route ip prefix
Description
Enables you to add a route to the local RIP protocol database.
Syntax
Description
ip prefix: Specifies the IP network and length.
No Form
no route ip prefix and mask
Example
OS2400(config-rip-router)# route 12.23.21.1/3
OS2400(config-rip-router)#
97
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
timers basic {update timer} {timeout timer} {garbage timer}
Description
Enables you to configure basic routing protocol update timers.
Syntax
Description
update timer: Specifies the routing table update timer value in
seconds. The value can be from 0 to 4294967295 with a default of
30 seconds.
timeout timer: Specifies the routing information timeout timer
value in seconds. The value can be from 0 to 4294967295 with a
default of 180.
garbage timer: Specifies the garbage collection timer value in
seconds. The value can be from 0 to 4294967295 with a default of
120.
No Form
no timers basic {update timer} {timeout timer} {garbage timer}:
Cancels the timers.
Example
OS2400(config-rip-router)# timers basic 35 200 160
OS2400(config-rip-router)#
Command
version 1|2
Description
Enables you to specify the version of RIP.
Syntax
Description
1: Indicates RIP version I.
2: Indicates RIP version II.
No Form
no version: Returns to the default version.
Example
OS2400(config)# router rip
OS2400(config-rip-router)# version
<1-2> version
OS2400(config-rip-router)# version 1
98
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
OSPF Commands
Command
area area id authentication {message-digest}
Description
Enables you to configure OSPF area parameters.
Syntax
Description
area id: Specifies the area ID in decimal or IP address format.
authentication: Indicates that authentication is enabled.
Message-digest: Indicates the use of message-digest
authentication on the area specified by the area ID.
No Form
no area area id: Removes a specific area from the configuration
or removes an area's authentication specification.
Example
OS2400(config-ospf-router)# area 122.121.133.21 authentication
message-digest
OS2400(config-ospf-router)#
Command
area area_id export-list list name
Description
Enables you to configure OSPF area parameters.
Syntax
Description
export-list: Indicates that the filter is set for networks announced
to other areas.
import-list: Indicates that the filter is set for networks from areas
announced to the specified area.
list-name: Specifies the access list name.
No Form
no area area id: Removes a specific area from the configuration
or removes an area's authentication specification.
Example
OS2400(config-ospf-router)# area 122.121.133.21 export list access
OS2400(config-ospf-router)#
Command
area area id default-cost cost
Description
Enables you to specify a cost for the default summary route sent
into a stub or NSSA area.
Syntax
Description
area id: Specifies the area ID in decimal or IP address format.
default-cost: Sets the summary default cost.
cost: Specifies the stub's advertised summary default cost. The
value can be from 0 to 16777215.
Example
OS2400(config-router)# area 122.121.133.21 default-cost 1445
The area is neither stub, nor NSSA
OS2400(config-router)#
99
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
area area id nssa
{default-information-originate|no-redistribution|no-summary|tra
nslate-always|translate-candidate|translate-never}
Description
Enables you to configure an area as a not-so-stubby-area (NSSA).
Syntax
Description
area id: Specifies the area ID in decimal or IP address format.
default-information-originate: Enables you to default information
to the NSSA area.
no-redistribution: Disables redistribution of external routes to the
NSSA area.
no-summary: Indicates that inter-area routes are not injected in
the NSSA area.
translate-always: Configures the NSSA ABR to always translate.
translate-candidate: Configures the NSSA ABR to translate
election. This is the default.
translate-never: Configures the NSSA ABR to never translate.
No Form
no area area id nssa: Cancels the NSSA assignment.
Example
OS2400(config-router)# area 144.133.221.1 nssa no-redistribution
no-summary defa
ult-information-originate
OS2400(config-router)#
Command
area area id range prefix {advertise} {substitute}
Description
Enables you to consolidate and summarize routes for an area
range.
Syntax
Description
address: Specifies the area ID in IP address format.
range: Indicates that route summarization is enabled for the area
range.
prefix: Specifies the area range prefix.
advertise – Specifies the range
no advertise – Does not specify the range
substitute – Provides substitute IP address.
Example
OS2400(config-router)# area 144.133.221.1 range 154.134.137.77/34
substitute 118.117.161.15/26
OS2400(config-router)#
100
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
area area id shortcut {default|enable|disable}
Description
Enables you to configure the OSPF area shortcutting mode.
Syntax
Description
area id: Specifies the area ID in decimal or IP address format.
shortcut: Indicates that the filter is set for networks announced to
other areas.
default: Sets the default shortcutting mode.
disable: Indicates that shortcutting is disabled in the area.
enable: Indicates that shortcutting is enabled in the area.
Example
OS2400(config-router)# area 122.133.144.54 shortcut disable
Shortcut area setting will take effect only when the router is
configured as Shortcut ABR
OS2400(config-router)#
Command
area area id stub {no-summary}
Description
Enables you to configure an OSPF area as a stub area.
Syntax
Description
area id: Specifies the area ID in decimal or IP address format.
stub: Defines the OSPF area as a stub.
no-summary: Indicates the prevention of sending summary link
advertisements into the stub area.
Example
OS2400(config-ospf-router)# area 1.1.1.1 stub
101
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
area area id virtual-link router id {hello-interval value}{ retransmit-interval
value transmit-delay value}{ dead-interval value message-digest-key
keyname}
Description
Enables you to configure an OSPF area as a virtual link, in case of a loss of
connection to the backbone.
Syntax
Description
area id: Specifies the area ID in decimal or IP address format.
virtual-link: Indicates virtual link configuration.
router ID: Specifies the ID number of the Area Border Router (ABR) in IP
address format.
hello-interval: Indicates the time in seconds between the hello packets
that the software sends on an interface. The value must be the same for
both routers of a virtual link
value: Specifies the hello interval timer. The value can be from 1 to 65535
seconds.
retransmit-interval: Indicates the time in seconds between lost link state
advertisement retransmissions The value must be greater than the
expected round-trip transmission delay.
value: Specifies the retransmit interval timer. The value can be from 3 to
65535 seconds.
dead-interval: Indicates the time in seconds that a software's hello packets
are not seen before the neighbors declare the router down. This value
must be the same for both routers of a virtual link.
value: Specifies the retransmit interval timer. The value can be from 1 to
65535 seconds.
message-digest-key: Indicates the key identifier and password used by
neighboring routers and this router for MD5 authentication.
keyname: Specifies the actual password key to be entered.
Example
OS2400(config-router)# area 177.167.144.35 virtual-link 56.45.34.23 hellointerv
al 588 transmit-delay 599
OS2400(config-router)#
102
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
auto-cost reference-bandwidth value
Description
Enables you to control how OSPF calculates default metrics for
the interface according to the bandwidth.
Syntax
Description
auto-cost: Enables auto cost configuration.
reference-bandwidth: Used to assign OSPF cost.
value: Specifies the reference bandwidth in terms of Mbits per
second.
No Form
no auto-cost reference-bandwidth: Enables you to determine
cost based only on interface type.
Example
OS2400(config)# router ospf
OS2400(config-ospf-router)# auto-cost
OS2400(config-ospf-router)# auto-cost reference-bandwidth 344
% OSPF: Reference bandwidth is changed.
Please ensure reference bandwidth is consistent across all
routers
OS2400(config-ospf-router)#
Command
default-information originate {always} {metric metric
value}{metric-type type number}{route-map map-name}
Description
Enables you to create a default external route into an OSPF
routing domain according to specific metric and route
parameters.
Syntax
Description
always: Indicates that the default route is always advertised.
metric: Indicates the metric used for creating the default route.
metric-type: Indicates a specific link type for default routes.
route-map: Indicates the route map reference that must be
accurate before generating a default route.
metric value: Specifies the actual metric value. The value can be
from 0 to 16777214.
type number: Specifies the metric link type route number. The
options are Type 1 and Type 2 external routes.
map-name: Specifies the specific route map name.
No Form
no default-information originate Enables you to disable the
default route feature.
103
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
default-metric number
Description
Enables you to define default metric values for the OSPF routing
protocol. When redistributed routes have metrics that are not
compatible, the default metric can be substituted and allow the
redistribution to continue.
Syntax
Description
number: Specifies the default metric value that is required for the
routing protocol.
No Form
no default-metric {number}: Returns to the default, meaning
automatic metric translations.
Example
OS2400(config-ospf-router)# default-metric 134
OS2400(config-ospf-router)#
Command
distance value
Description
Enables you to define route administrative distances.
Syntax
Description
value: Specifies the value of the administrative distance.
No Form
distance value: Returns to the default distance value.
Example
OS2400(config-ospf-router)# distance 177
OS2400(config-ospf-router)#
Command
distance ospf {external distance}{ inter-area distance}{ intra-area
distance}
Description
Enables you to define route administrative distances, allowing you
to set a distance for a particular group of routes that you prefer.
Syntax
Description
ospf: Enables you set a distance for a whole group of routes.
external: Defines the distance for external routes from other
routing domains.
distance: Specifies the distance value for each type of route. The
value can be from 1 to 255.
inter-area: Defines the distance for routes from one area to
another.
intra-area: Defines the distance for routes within a specific area.
No Form
no distance ospf : Returns to the default distance value.
Example
OS2400(config-ospf-router)# distance ospf external 222 inter-area
176 intra-area 199
OS2400(config-ospf-router)#
104
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
distribute-list list-name out {bgp|connected|kernel|rip|static}
Description
Enables you to filter networks in routing updates.
Syntax
Description
list-name: Specifies the access list name.
out: Indicates filtering of outgoing updates.
You can filter networks for the following routing protocol routes:
bgp, connected, kernel, rip and static
No Form
no distribute-list list-name out {bgp|connected|kernel|rip|static}:
Disables filtering function.
Example
OS2400(config-ospf-router)# distribute-list list1 out rip
OS2400(config-ospf-router)#
Command
network prefix area decimal value|address
Description
Enables you to control how OSPF calculates default metrics for
the interface according to the bandwidth.
Syntax
Description
prefix: Specifies the OSPF network prefix.
area: Sets the OSPF area ID.
decimal value: Specifies the area ID in decimal format.
address: Specifies the area ID in IP address format.
No Form
no network prefix area decimal value|address: Disables OSPF
routing for the configured interfaces.
Example
OS2400(config-ospf-router)# network 195.91.136.0/24 area 1.1.1.1
105
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
redistribute bgp{metric|connected|kernel|rip|static metric
value}{metric-type type number}{route-map map-name}
Description
Enables you to redistribute information from one protocol to
another.
Syntax
Description
metric: Indicates the metric used for redistributed routes.
metric-type: Indicates a specific link type for redistributed routes.
route-map: Indicates the route map reference that must be
accurate before redistributing.
metric value: Specifies the actual metric value. The value can be
from 0 to 16777214.
type number: Specifies the metric link type route number. The
options are Type 1 and Type 2 external routes.
map-name: Specifies the specific route map name.
No Form
no redistribute bgp|connected|kernel|rip|static {metric metric
value|metric-type type number|route-map map-name}: Disables
the redistribute function.
Example
OS2400(config-router)# redistribute bgp metric 12333 metric-type 1
OS2400(config-router)#
106
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Interface Commands
Command
bandwidth value
Description
Enables you to set the interface bandwidth parameter. These
parameters are used for routing protocol calculations (e.g. OSPF)
Syntax
Description
value: Specifies the bandwidth between 1 and 10000000 kilobits.
No Form
no bandwidth value: Returns to the default bandwidth value.
Example
OS2400(config-if)# bandwidth 120000
OS2400(config-if)#
Command
description
Description
Enables you to set a description to an interface in order to help
you remember the function of the interface.
Syntax
Description
string: Specifies a comment or a description to help you
remember what is attached to this interface.
No Form
no description string
Example
OS2400(config-if)# description we23
OS2400(config-if)#
Command
ip ospf authentication-key key-word
Description
Set a password to be set in OSPF protocol frames for
authentication used by neighbor routers that are using the OSPF
password authentication.
Syntax
Description
key-word: Specifies the OSPF password key.
No Form
no ip ospf authentication-key: Enables you to remove a previously
assigned OSPF password.
Example
OS2400(config-if)# ip ospf authentication yali
OS2400(config-if)#
107
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
ip ospf cost value
Description
Enables you specify the cost of sending a packet on an interface.
Syntax
Description
value: Specifies the path cost value. The value can be from 1 to
65535. The formula for calculating the value is
10(8) ÷ Bandwidth (B) or . 10(5) / Bw 1Kb
Using this formula, the following default path costs were
calculated. If these values are not relevant to your network, you
calculate path costs according to your own method.
T1 (1.544-Mbps serial link): Default cost is 64.
E1 (2.048-Mbps serial link): Default cost is 48.
Ethernet: Default cost is 10.
No Form
no ip ospf cost: Enables you to reset the cost to the default value.
Example
OS2400(config-if)# ip ospf cost 234
OS2400(config-if)#
Command
ip ospf dead-interval value
Description
Enables you to set the time frame for which hello packets are not
viewed, before neighbors declare the router down.
Syntax
Description
value: Specifies the interval in seconds from 1 to 65535.
No Form
no ip ospf dead-interval: Enables you to return to the default time
interval.
Example
OS2400(config-if)# interface ethernet vif1
OS2400(config-if)# ip ospf dead-interval 60
OS2400(config-if)
Command
ip ospf hello-interval value
Description
Enables you to set the time frame between hello packets that are
sent on an interface.
Syntax
Description
value: Specifies the interval in seconds from 1 to 65535.
No Form
no ip ospf hello-interval: Enables you to return to the default time
interval.
Example
OS2400(config-if)# interface ethernet vif1
OS2400(config-if)# ip ospf hello-interval 15
OS2400(config-if)
108
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
ip ospf message-digest-key key-id md5 key-word
Description
Enables OSPF MD5 authentication for incoming and outgoing
packets.
Syntax
Description
key-id: Specifies the message digest key identifier from 1 to 255.
No Form
no ip ospf message-digest-key key-id: Enables you to remove an
old MD5 key.
Example
OS2400(config-if)# ip ospf message-digest-key 200 md5 23ab
OS2400(config-if)
Command
ip ospf network {broadcast|non-broadcast|point-tomultipoint|point-to-point}
Description
Enables you to configure a specific OSPF network type as a
different network type.
Syntax
Description
broadcast: Specifies the network type as a broadcast network.
key-word: Specifies the OSPF password key.
non-broadcast: Specifies the network type as a non-broadcast
NMBA network.
point-to-multipoint: Specifies the network type as a
point-to-multipoint network.
point-to-point: Specifies the network type as a point-to-point
network.
No Form
no ip ospf network: Enables you to return to the default network
type.
Example
OS2400(config-if)# ip ospf network broadcast
OS2400(config-if)#
Command
ip ospf priority value
Description
Enables you to define router priority, which determines the
designated router for this network.
Syntax
Description
value: Specifies the priority value from 0 to 255.
No Form
no ip ospf priority: Enables you to return to the default value.
Example
OS2400(config-if)# ip ospf priority 200
OS2400(config-if)#
109
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
ip ospf retransmit-interval value
Description
Enables you to specify the time between link-state advertisement
(LSA) retransmissions until it receives acknowledgment.
Syntax
Description
value: Specifies the value in seconds between retransmissions
from 3 to 65535.
No Form
no ip ospf retransmit-interval: Enables you to return to the default
value.
Example
OS2400(config-if)# ip ospf retransmit-interval 488
OS2400(config-if)#
Command
ip ospf transmit-delay value
Description
Enables you to define the time that it takes to transmit a link state
update.
Syntax
Description
value: Specifies the value in seconds from 1 to 65535.
No Form
no ip ospf transmit-delay: Enables you to return to the default
value.
Example
OS2400(config-if)# ip ospf transmit-delay 388
OS2400(config-if)#
Command
ip rip authentication key-chain name
Description
Enables authentication for RIP Version 2 packets and enables you
to define the set of keys that can be used on an interface.
Syntax
Description
name: Specifies the group of keys that are valid to enable
authentication.
No Form
no ip rip authentication key-chain: Disables authentication.
Example
OS2400(config-if)# ip rip authentication key-chain blue
Command
ip rip authentication mode {md5|text}
Description
Enables you to define the type of authentication used in RIP
Version II packets.
Syntax
Description
md5: Indicates md5 authentication.
No Form
no ip rip authentication mode: Enables you to return to cleartext
authentication.
Example
OS2400(config-if)# ip rip authentication mode md5
text: Indicates simple text authentication.
110
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
ip rip authentication string string
Description
Enables you to define the authentication string.
Syntax
Description
string: Specifies the authentication string.
No Form
no ip rip authentication: Enables you to return to the default.
Example
OS2400(config-if)# ip rip authentication string 12zz
Command
ip rip receive version 1 2|2 1|1|2|1 2|2 1
Description
Enables you to specify a RIP version to receive a specific
interface. You can select both versions for a particular interface.
Syntax
Description
version: Specifies selection of RIP Version I or II.
No Form
no ip receive version: Enables you to follow the global version
rules.
Example
OS2400(config-if)# ip rip receive version 1
2
RIP version 2
OS2400(config-if)# ip rip receive version 1 2
Command
ip rip send version 1 2|2 1
Description
Enables you to specify a RIP version to send on a specific
interface.
Syntax
Description
version: Specifies selection of RIP Version I or II.
No Form
no ip send version: Enables you to follow the global version rules.
Example
OS2400(config-if)# ip rip send version 1
2
RIP version 2
<cr>
OS2400(config-if)# ip rip send version 1
OS2400(config-if)#
Command
ip split-horizon
Description
Enables the split-horizon mechanism.
Syntax
Description
This command has no arguments or keywords. Only used for RIP.
No Form
no ip split-horizon: Disables the split-horizon mechanism.
Example
OS2400(config-if)# ip split-horizon
OS2400(config-if)#
111
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
management {telnet | snmp} [IP address]
Description
Enables you to allow Telnet and SNMP management through this
interface either from any station or a specific station.
Syntax
Description
telnet: Species telnet management from the specific interface
selected.
snmp: Species snmp management from the specific interface
selected.
IP address: Specifies an IP address in the interface
No Form
no management: Enables you to return to the default time
interval.
Example
OSM400(config-if)# management telnet 194.90.137.89
OSM400(config-if)#
Command
multicast
Description
Enables you to configure the interface for multicast addressing.
Syntax
Description
This command has no arguments or keywords.
No Form
no multicast: Enables you to configure the router for broadcast
addressing.
Example
OS2400(config-if)# multicast
OS2400(config-if)#
Command
proxy-arp
Description
Allows you to enable Proxy ARP protocol on the interface.
Syntax
Description
This command has no arguments or keywords.
No Form
no proxy-arp: Disables Proxy-ARP on the interface.
Example
OS2400(config-if)# proxy-arp
Proxy ARP is enabled on the interface
OS2400(config-if)#
112
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
DHCP Commands
Command
enable|disable
Description
Enables and disables the DHCP server.
Syntax
Description
This command has no arguments or keywords.
Example
OS2400(config-dhcp)# enable
OS2400(config-dhcp)#
Command
default-lease-time value
Description
Enables you to configure the default lease time for a host IP
address.
Syntax
Description
value: The amount of time in seconds.
No Form
no default-lease-time: Enables you to delete the default lease
time.
Example
OS2400(config-dhcp)# default-lease-time 12
OS2400(config-dhcp)#
Command
dns IPV_4 address
Description
Defines the domain name server address for DHCP clients.
Syntax
Description
IPV_4 address: Specifies the IP address of the domain name
server.
No Form
no dns IPV_4 address: Enables you to delete the domain name
server address.
Example
OS2400(config-dhcp)# dns 188.178.76.2
OS2400(config-dhcp)#
Command
domain name
Description
Specifies the domain name for DHCP clients.
Syntax
Description
name: Specifies the domain name of the client.
No Form
no domain: Enables you to delete the domain name.
Example
OS2400(config-dhcp)# domain
NAME The domain name (e.g. opticalaccess.com)
OS2400(config-dhcp)# domain hello.com
113
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
max-lease-time value
Description
Enables you to configure the maximum lease time for a host IP
address.
Syntax
Description
value: The amount of time in seconds.
No Form
no max-lease-time: Enables you to delete the maximum lease
time.
Example
OS2400(config-dhcp)# max-lease-time 62
OS2400(config-dhcp)#
Command
netbios name-server address
Description
Enables you to set NetBIOS name servers for DHCP clients.
Syntax
Description
address: Specifies the IP address of the NetBIOS name server.
No Form
no netbios name-server : Enables you to delete the IP address of
the DNS.
Example
OS2400(config-dhcp)# netbios name-server 112.221.34.3
OS2400(config-dhcp)#
Command
netbios node-type type
Description
Enables you to set NetBIOS node type as B-node, P-node, M-node
or H-node.
Syntax
Description
type: Specifies the NetBIOS node type.
No Form
no netbios node-type: Enables you to delete NetBIOS node type.
Example
OS2400(config-dhcp)# netbios node-type 02
OS2400(config-dhcp)#
Command
entry address or interface name
Description
Enters a subnet / interface specific configuration mode.
Syntax
Description
address: Specifies the remote subnet IP address and mask.
interface name: Specifies subnet interface.
No Form
no entry: Enables you to delete a subnet entry from configuration.
Example
OS2400(config-dhcp)# entry vif5
114
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
Command
range lower range upper range
Description
Enables you to set the DHCP range of a subnet entry.
Syntax
Description
lower range: Specifies the lower range IP address.
No Form
no range: Enables you to delete a defined subnet ranges. It also
has the same parameters for the upper and lower range.
Example
OS2400(config-dhcp-subnet)#range
Command
router address
Description
Enables you to define subnet default router configuration for
DHCP clients.
Syntax
Description
address: Specifies the router IP address.
No Form
no router address: Enables you to delete a router of a specific
subnet.
Example
OS2400(config-dhcp-subnet)#router 195.91.139.18
Command
show entry
Description
Enables you to display the current DHCP subnet entry.
Syntax
Description
This command has no arguments or keywords.
No Form
no entry: Enables you to delete a subnet entry from configuration.
Example
OS2400(config-dhcp-subnet)# show entry
entry: vif2
range: 195.91.139.2 195.91.139.9
subnet-mask 255.255.255.240
router 195.91.139.1
Command
subnet-mask address
Description
Enables you to define the subnet mask for a DHCP subnet.
Syntax
Description
address: Specifies the lower range mask IP address.
No Form
no subnet-mask: Enables you to delete the subnet mask.
Example
OS2400(config-dhcp-subnet)# subnet-mask 155.144.33.2
upper range: Specifies the upper range IP address.
OS2400(config-dhcp-subnet)#
115
195.91.139.18 195.91.139.25
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
DHCP Relay Commands
Command
enable
Description
Enables the DHCP Relay Agent.
Syntax
Description
This command has no arguments or keywords.
Example
enable Enable the DHCP Relay Agent
OS2400(config-dhcprelay)# enable
Command
disable
Description
Enables the DHCP Relay Agent.
Syntax
Description
This command has no arguments or keywords.
Example
enable Enable the DHCP Relay Agent
OS2400(config-dhcprelay)# enable
Command
server address
Description
Enables you to add a server to which requests are forwarded.
Syntax
Description
address: Specifies the IP address of the server to be added.
No Form
no server: Enables you to remove the server you configured for
forwarded requests.
Example
OS2400(config-dhcprelay)# server 138.123.72.26
OS2400(config-dhcprelay)#
Command
entry interface name
Description
Enables you to add an interface on which to listen for requests.
Syntax
Description
Interface name specifies subnet interface
No Form
no entry
Example
OS2400(config-dhcprelay)# entry vif3
116
OptiSwitch 2400/L3
CLI Commands
CHAPTER 5
DNS Commands
Command
domain-name name
Description
Enables you to add a domain name.
Syntax
Description
name: Specifies the actual domain name.
No Form
no entry: Enables you to delete the domain name.
Example
OS2400(config-dns)# domain-name greentree.com
OS2400(config-dns)#
Command
nameserver address
Description
Enables you to add a domain name server.
Syntax
Description
address: Specifies the domain name server IP address.
No Form
no nameserver address: Enables you to delete a domain name
server.
Example
OS2400(config-dns)# nameserver 177.155.54.10
OS2400(config-dns)#
Command
enable
Description
Enables domain name server commands.
Syntax
Description
This command has no arguments or keywords.
No Form
Disable: Disables DNS lookup.
Example
OS2400(config-dns)# disable
117