Sunteți pe pagina 1din 8

Technical Marketing Engineering Routing and Switching Technology

Routing and Switching

Comware versus Cisco IOS Command Guide


Technical Marketing Brief

Revision v5 March 23, 2009 http://www.3com.com


3Com Corporation, 350 Campus Drive, Marlborough MA 01752-3064
Copyright 2009, 3Com Corporation. All rights reserved. No part of this documentation may be reproduced in any form or by any means or used to make any derivative work (such as translation, transformation, or adaptation) without written permission from 3Com Corporation. 3Com Corporation reserves the right to revise this documentation and to make changes in content from time to time without obligation on the part of 3Com Corporation to provide notification of such revision or change. 3Com Corporation provides this documentation without warranty, term, or condition of any kind, either implied or expressed, including, but not limited to, the implied warranties, terms, or conditions of merchantability, satisfactory quality, and fitness for a particular purpose. 3Com may make improvements or changes in the product(s) and/or the program(s) described in this documentation at any time. 3Com and the 3Com logo are registered trademarks of 3Com Corporation. VCX is a registered trademark of 3Com Corporation. All other company and product names may be trademarks of the respective companies with which they are associated.

<Technology Area> Technology

Title

Contents
Comware versus Cisco IOS Commands ................................................................... 4 Command Line Description ......................................................................................... 4 Displaying Command Parameters ............................................................................... 5 Displaying Parent Menus ......................................................................................... 5 Displaying the User View Menu ................................................................................ 5 Obtaining Help ......................................................................................................... 5 Configuring Remote Login to the Router/Switch .......................................................... 6 Telnet ....................................................................................................................... 6 Command Matrix ......................................................................................................... 7 Command Alias ........................................................................................................... 8

3Com Technical Marketing Engineering

Page 3

<Technology Area> Technology

Title

Comware versus Cisco IOS Commands


This Technical Marketing Brief (TMB) provides a brief list of 3Com Comware commands and their Cisco equivalent for those familiar with the Cisco IOS command set and wish to migrate to 3Coms Comware. This document is intended for 3Com System Engineers and 3Com voice certified partner technical sales engineers.

Command Line Description


In general there many similarities between the structure and command set of 3Coms Comware and Ciscos IOS. This was done intentionally to ease the migration from Cisco products to 3Com/H3C products and reduce the total cost of ownership. You will find that after a little time in front of the Comware console, you quickly become very familiar with how to perform the tasks needed to maintain your network. This guide has been written to ease and facilitate that effort. To use and navigate the command line interface of your unit, please refer to the following points for assistance: When initially accessing the command line interface, press Enter when prompted. The User View for the unit displays. This is indicated by the chevron brackets around the name of the unit at the prompt, for example, <sw4800g-xx>. The system-view command enters into System View. When in System View, square brackets appear around the name of the unit at the prompt, for example, [sw4800g-xx]. You must be in the System View to access the configurable CLI commands. Some commands can be entered directly at any prompt from anywhere in the interface such as display, write or ping If you enter part of a command followed by a ? (with no space in between), the CLI will show you all the commands that begin in that way. The term view may be used interchangeably with the term menu. The undo command is placed before the command you wish to undo, for example, undo shutdown <CTRL-A> places the cursor back to the start of the command line.

3Com Technical Marketing Engineering

Page 4

<Technology Area> Technology

Title

Enter the first few characters of a command and press TAB to enter the full command without having to input the entire command (where there is only one command that starts with the entered characters). Use the Up Arrow key at the prompt to repeat the previous command string. Use the Delete key to delete the character after the cursor; the Backspace key deletes the character before the cursor.

Displaying Command Parameters


At the prompt, enter the name of the command followed by a space and ?. For example: <sw4800g-xx>boot ? The following parameters are displayed: attribute-switch Exchange the file main-attribute and backup-attribute. boot-loader Select a file to boot at the next time bootrom Update Bootrom web-package Set web resource package To specify boot loader, enter the command as follows: <sw4800g-xx>boot boot-loader ? You only need to enter ? if parameters exist for the command.

Displaying Parent Menus


At the prompt, enter quit.

Displaying the User View Menu


Press <CTRL-Z>.

Obtaining Help
At the prompt, enter ?.

3Com Technical Marketing Engineering

Page 5

<Technology Area> Technology

Title

Configuring Remote Login to the Router/Switch


To perform remote login, you must perform local configuration through the Console port when you first configure the router.

Telnet
Perform the following configuration on the router: # Enter system view. Press ENTER to get started. <Router>system-view # Enable Telnet server. [Router]telnet server enable % Start Telnet server # Configure the IP address of the interface that connects to the Internet. You can change this IP address to what is in use. [Router]interface ethernet0/0 [Router-ethernet0/0]ip address 192.168.0.1 24 # Enter vty interface view. [Router]user-interface vty 0 # Set login password to 123456 and privilege level 2 (User View). [Router-ui-vty0]set authentication password cipher 123456 [Router-ui-vty0]user privilege level 2

3Com Technical Marketing Engineering

Page 6

<Technology Area> Technology

Title

Command Matrix
ComWare Command system-view quit <ctrl-z> display dis ver dis curr dis save dis diag save curr delete reset saved sysname undo un shut rip ospf bgp acl link-protocol info-center simple cipher tftp x.x.x.x get tftp x.x.x.x put ftp x.x.x.x IOS Command config t exit <ctrl-z> show sh ver sh run sh startup-config sh tech write mem erase write erase hostname no no shut router rip router ospf router bgp access-list encapsulation logging 0 7 copy tftp: flash: copy flash: tftp: copy ftp: flash: Description Enters into System View menu/view Returns to parent menu/view Returns to top menu/view Displays information Displays Comware version Displays current configuration Displays saved configuration Display or save diagnostic information Saves current configuration to flash Deletes a file from flash Resets configuration for next boot Sets the system name of the device Negates a command Brings up an interface Enters RIP configuration on the device Enters OSPF configuration Enters BGP configuration Configures an Access Control List Sets the protocol on a link Sets logging level Clears password encryption Sets password encryption Copies file from TFTP Server to Flash Copies file from Flash to TFTP Server Starts FTP Client Connection

3Com Technical Marketing Engineering

Page 7

<Technology Area> Technology

Title

Command Alias
For the routers only, a useful way to modify the Comware CLI to emulate Cisco CLI is to use the alias command. This assists CCNA/CCIE trained IT to setup/configure 3Com routers without retraining or previous 3Com experience. Here are some examples: command-alias command-alias command-alias command-alias command-alias command-alias command-alias command-alias command-alias command-alias enable mapping mapping mapping mapping mapping mapping mapping mapping mapping show display no undo end return exit quit hostname sysname access-list acl write save erase delete logging info-center

3Com Technical Marketing Engineering

Page 8

S-ar putea să vă placă și