HCIA-Datacom 网络技术实验指南 第1章 华为VRP系统的基本操作

HCIA-Datacom 网络技术实验指南 第1章 华为VRP系统的基本操作_第1张图片

 

  1. 常用命令
  2. console配置
  3. 接口IP配置
  4. 认证模式、用户权限配置
  • system-view  sys   # 进入系统视图
  • quit   q  # 退出当前视图
  • return    # 返回用户视图
  • sysname  #重命名
  • display version  #查看当前配置
     

The device is running!

system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]q
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]quit
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]ospf 10
[Huawei-ospf-10]area 0
[Huawei-ospf-10-area-0.0.0.0]return
sysname AR1
        ^
Error: Unrecognized command found at '^' position.
sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]display int	
[AR1]display interface 
GigabitEthernet0/0/0 current state : UP
Line protocol current state : DOWN
Description:HUAWEI, AR Series, GigabitEthernet0/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc82-7ac7
Last physical up time   : 2022-09-17 20:06:56 UTC-08:00
Last physical down time : 2022-09-17 20:06:48 UTC-08:00
Current system time: 2022-09-17 20:11:38-08:00
Port Mode: FORCE COPPER
Speed : 1000,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi   : AUTO
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input peak rate 0 bits/sec,Record time: -
Output peak rate 0 bits/sec,Record time: -

Input:  0 packets, 0 bytes
  Unicast:                  0,  Multicast:                   0
  Broadcast:                0,  Jumbo:                       0
  Discard:                  0,  Total Error:                 0

  CRC:                      0,  Giants:                      0
  Jabbers:                  0,  Throttles:                   0
  Runts:                    0,  Symbols:                     0
  Ignoreds:                 0,  Frames:                      0

Output:  0 packets, 0 bytes
  Unicast:                  0,  Multicast:                   0
  Broadcast:                0,  Jumbo:                       0
  Discard:                  0,  Total Error:                 0

  Collisions:               0,  ExcessiveCollisions:         0
  Late Collisions:          0,  Deferreds:                   0

    Input bandwidth utilization threshold : 100.00%
    Output bandwidth utilization threshold: 100.00%
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%

GigabitEthernet0/0/1 current state : DOWN
Line protocol current state : DOWN
Description:HUAWEI, AR Series, GigabitEthernet0/0/1 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc82-7ac8
Last physical up time   : -
Last physical down time : 2022-09-17 20:06:48 UTC-08:00
Current system time: 2022-09-17 20:11:59-08:00
Port Mode: COMMON COPPER
Speed : 1000,  Loopback: NONE
Duplex: FULL,  Negotiation: ENABLE
Mdi   : AUTO
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input peak rate 0 bits/sec,Record time: -
Output peak rate 0 bits/sec,Record time: -

Input:  0 packets, 0 bytes
  Unicast:                  0,  Multicast:                   0
  Broadcast:                0,  Jumbo:                       0
  Discard:                  0,  Total Error:                 0

  CRC:                      0,  Giants:                      0
  Jabbers:                  0,  Throttles:                   0
  Runts:                    0,  Symbols:                     0
  Ignoreds:                 0,  Frames:                      0

Output:  0 packets, 0 bytes
  Unicast:                  0,  Multicast:                   0
  Broadcast:                0,  Jumbo:                       0
  Discard:                  0,  Total Error:                 0

  Collisions:               0,  ExcessiveCollisions:         0

[AR1]fidplsy history
     ^
Error: Unrecognized command found at '^' position.
[AR1]display history-co	
[AR1]display history-command 
  fidplsy history
  display interface
  sysname AR1
  sys
  return
  area 0
  ospf 10
  quit
  q
  system-view
[AR1]interface Gi	
[AR1]interface GigabitEthernet 0/0/0
[AR1-GigabitEthernet0/0/0]ip address 10.1.1.1 255.255.255.0
Sep 17 2022 20:14:15-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR1-GigabitEthernet0/0/0]dis th
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 10.1.1.1 255.255.255.0 
#
return
[AR1-GigabitEthernet0/0/0]q
[AR1]user-interface console 0
[AR1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):admin
[AR1-ui-console0]user privilege level 15
[AR1-ui-console0]q
[AR1]aaa
[AR1-aaa]local-user admin password cipher admin
[AR1-aaa]local-user admin privilege level 15
[AR1-aaa]local-user admin service-type telnet
[AR1-aaa]q
[AR1]telnet server enable
 Error: TELNET server has been enabled
[AR1]display telnet server status
 TELNET IPV4 server                      :Enable
 TELNET IPV6 server                      :Enable
 TELNET server port                      :23
[AR1]user-interface vty 0 4
[AR1-ui-vty0-4]protocol inbound telnet
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]user privilege level 15
[AR1-ui-vty0-4]return
sys
Enter system view, return user view with Ctrl+Z.
[AR1]user-interface console 0
[AR1-ui-console0]idle-timeout 0 0
[AR1-ui-console0]q
[AR1]display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (AR2200 V200R003C00)
Copyright (C) 2011-2012 HUAWEI TECH CO., LTD
Huawei AR2220 Router uptime is 0 week, 0 day, 0 hour, 31 minutes
BKP 0 version information: 
1. PCB      Version  : AR01BAK2A VER.NC
2. If Supporting PoE : No
3. Board    Type     : AR2220
4. MPU Slot Quantity : 1
5. LPU Slot Quantity : 6

MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 31 minutes
MPU version information : 
1. PCB      Version  : AR01SRU2A VER.A
2. MAB      Version  : 0
3. Board    Type     : AR2220
4. BootROM  Version  : 0

The device is running!

sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]user-interface console 0
[AR2-ui-console0]idle-timeout 0 0
[AR2-ui-console0]q
[AR2]interface G	
[AR2]interface GigabitEthernet 0/0/0
[AR2-GigabitEthernet0/0/0]ip addr 10.1.1.2 24
Sep 17 2022 20:23:39-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR2-GigabitEthernet0/0/0]dis th
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 10.1.1.2 255.255.255.0 
#
return
[AR2-GigabitEthernet0/0/0]dis cu
[V200R003C00]
#
 sysname AR2
#
 snmp-agent local-engineid 800007DB03000000000000
 snmp-agent 
#
 clock timezone China-Standard-Time minus 08:00:00
#
portal local-server load portalpage.zip
#
 drop illegal-mac alarm
#
 set cpu-usage threshold 80 restore 75
#
aaa 
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default 
 domain default_admin 
 local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$
 local-user admin service-type http
#

[AR2-GigabitEthernet0/0/0]q
[AR2]display telnet server status
 TELNET IPV4 server                      :Enable
 TELNET IPV6 server                      :Enable
 TELNET server port                      :23
[AR2]telnet 10.1.1.1
            ^
Error: Unrecognized command found at '^' position.
[AR2]ping 10.1.1.1
  PING 10.1.1.1: 56  data bytes, press CTRL_C to break
    Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 time=90 ms
    Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 10.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms
    Reply from 10.1.1.1: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 10.1.1.1: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 10.1.1.1 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/36/90 ms

[AR2]telnet 10.1.1.1
            ^
Error: Unrecognized command found at '^' position.
[AR2]q
telnet 10.1.1.1
  Press CTRL_] to quit telnet mode
  Trying 10.1.1.1 ...
  Connected to 10.1.1.1 ...

Login authentication


Username:admin
Password:
sys
Enter system view, return user view with Ctrl+Z.
[AR1]display users
  User-Intf    Delay    Type   Network Address     AuthenStatus    AuthorcmdFlag
  0   CON 0   00:04:38                                   pass                   
  Username : Unspecified

+ 129 VTY 0   00:00:00  TEL    10.1.1.2                  pass                   
  Username : admin               


[AR1]

你可能感兴趣的:(HCIA-Datacom,网络,华为)