H3C Basic Router Commands
H3C Basic Router Commands
H3C Basic Router Commands
Authentication Modes
None: the prompt appears immediately after connecting Password: prompts for a common password Scheme (with local or remote authentication): requires the use of User Name and Password
o for local authentication a Local User must be created o for Radius authentication, the radius configuration must be completed
Contexts
LoginUserSystem* User interface aux 0 User-interface vty 0-3
Local-user name Interface Ethernet slot/port Rip, ospf Acl Vlan Etc.
# Set a password for console access [R]user-interface console 0 [R-ui-con0]authentication-mode password [R-ui-con0] set authentication password cipher secret23
# Set a password for auxiliary port [R]user-interface aux0 [R-ui-con0]authentication-mode password [R-ui-con0] set authentication password cipher secret34
# Set username, associated password and allowed access [R]local-user admin1 service-type telnet password cipher 3com
# Set user/password authenticated access for telnet [R]user-interface vty0 4 [R-ui-vty0-4] authentication-mode scheme [R-ui-vty0-4] protocol inbound telnet
# User with right user/password will access with level 3 privilege [R-ui-vty0-4] user privilege level 3
# Generate public key for ssh [R] public-key local create dsa [R] public-key local create rsa
# Set username, associated password and allowed access [R] local-user admin1 service-type ssh password cipher 3com
# User with right user/password will access with level 3 privilege user privilege level 3
Description Set the startup configuration file. Clear the startup configuration file. Display the VRBD number.
Upgrade Methods
USB Flash Drive TFTP/FTP Boot Menu XModem
Boot Menu File Control The BootROM menu is displayed. ==========<EXTEND-BOOTROM MENU>======= | <1> Boot From CF Card | <2> Enter Serial SubMenu | <3> Enter Ethernet SubMenu | <4> File Control | <5> Modify Bootrom Password | <6> Ignore System Configuration | <7> Boot Rom Operation Menu | <8> Clear Super Password | <9> Device Operation | <a> Reboot | | | | | | | | | |
Once the download is complete, make sure to specify the startup version: <Router>boot-loader file CF:/****.bin main <Router>Reboot Start to check configuration with next startup configuration file, please wait... This command will reboot the device. Current configuration may be lost in next startup if you continue. Continue? [Y/N]: Y
Once the system reboots, use the following command below to verify the upgrade: <Router>display version
File control submenu: =======================<File CONTROL>================== |Note: the operating device is CF Card | <1> Display All File | <2> Set Application File type | <3> Set Configuration File type | <4> Delete File | <5> Exit To Main Menu | | | | | |
Specify the startup file, with the file name including the absolute path.
Please set application file type in cf: M=MAIN B=BACKUP S=SECURE N=NOTYPE **************************************************** NO. Size(B) Time Type Name 0 14323376 Mar-23-2006 11:47 M cf:/main.bin 1 14144592 Mar-17-2006 19:39 B cf:/d13.bin 2 14323456 Mar-25-2006 10:38 S cf:/secure.bin **************************************************** Enter File Name: cf:/main.bin
Enter cf:/main.bin.
The file attribute operation submenu is displayed after step 4. Enter File Name:cf:/main.bin Modify this file Attribute: 1. +Main 2. -Main 3. +Backup 4. -Backup 5. Exit Enter your choice(1-5): 1 Enter your choice(1-5): 5
==========<EXTEND-BOOTROM MENU>======= | <1> Boot From CF Card | <2> Enter Serial SubMenu | <3> Enter Ethernet SubMenu | <4> File Control | <5> Modify Bootrom Password | <6> Ignore System Configuration | <7> Boot Rom Operation Menu | <8> Clear Super Password | <9> Device Operation | <a> Reboot | | | | | | | | | |
Set the current date and time [Router]clock datetime HH:MM:SS {YYYY/MM/DD | MM/DD/YYYY }
Set the time zone [Router]clock timezone zone-name { add | minus } HH:MM:SS
Reference Command display reboot-type Backup (user view) restore (user view) startup saved user view) reset saved(user view) display version display diagnostic-info reboot configure-user count remove display display display slot users startup boot-loader
Description Display the current startup. Backup startup to a TFTP server. Restore startup from TFTP server. Set the startup configuration file. Clear the startup config file. Display the VRBD number. Display the diagnostic info. Reboot the system/board. Set number of concurrent cfg users. (system view) Plug and unplug a board. Display the end user. Display startup config file. Display info of the startup file.
H3C
and
Cisco
CLI
Equivalents
H3C/3Com Cisco display show undo no local-user user return end quit exit save write delete erase save write sysname hostname rip router rip ospf router ospf bgp router bgp ip route-static ip route acl access-list user-interface vty0 4 Line vty0 4 screen-length disable Terminal length 0 Terminal monitor Terminal monitor Terminal logging Terminal debugging Logging console level display current-configuration show run display save-configuration Show start display diagnostic-information show tech-support display brief interfaces show interfaces status display ip int brief show ip int brief display ip routing-table show ip route display info-center show logging display version show version save write memory reset saved(user view) erase startup-config display version show version