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