AR2220基础配置

查看系统信息

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, 9 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, 9 minutes
MPU version information : 
1. PCB      Version  : AR01SRU2A VER.A
2. MAB      Version  : 0
3. Board    Type     : AR2220
4. BootROM  Version  : 0

设置时间

在用户视图下能对时间进行操作,查看时间

display clock 
2018-10-30 11:30:05
Tuesday
Time Zone(local) : UTC+08:00

修改时区

clock timezone local add 08:00:00

修改时间

clock datetime 11:30:00 2018-10-30

修改设备名称

修改设备名称要在系统视图下操作,配置接口、协议等也需要进入系统视图

sys 
system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]

配置登录提示信息

配置在用户登录前显示的标题信息,在系统视图下

[R1]header login information "welcome R1"

配置在用户登录后显示的标题信息,在系统视图下

[R1]header shell information "don't reboot the device"

配置consle口参数

设置consle口登录方式为password方式(只输入密码)

[R1]user-interface console 0
[R1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):123456
[R1-ui-console0]set authentication password cipher 123456

设置consle口登录超时时间

[R1-ui-console0]idle-timeout 20 0

配置接口ip

[ar1]interface GigabitEthernet 0/0/1
[ar1-GigabitEthernet0/0/1]ip address 192.168.100.1 24   
[ar1-GigabitEthernet0/0/1]description ?
  TEXT<"...">  Interface description (no more than 242 characters)
[ar1-GigabitEthernet0/0/1]description THIS INTERFACE IS TEST
[ar1-GigabitEthernet0/0/1]display this 
[V200R003C00]
#
interface GigabitEthernet0/0/1
 description THIS INTERFACE IS TEST
 ip address 192.168.100.1 255.255.255.0 
#
return

查看接口信息

[ar1-GigabitEthernet0/0/1]display interface GigabitEthernet 0/0/1
GigabitEthernet0/0/1 current state : DOWN
Line protocol current state : DOWN
Description:THIS INTERFACE IS TEST
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 192.168.100.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fca1-68bb
Last physical up time   : -
Last physical down time : 2018-10-31 10:47:12 UTC-08:00
Current system time: 2018-10-31 11:13: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
  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%

dir命令

在用户视图下执行dir命令,查看当前目录下的文件列表

dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName 
    0  drw-              -  Oct 31 2018 03:03:57   dhcp
    1  -rw-        121,802  May 26 2014 09:20:58   portalpage.zip
    2  -rw-          2,263  Oct 31 2018 03:03:52   statemach.efs
    3  -rw-        828,482  May 26 2014 09:20:58   sslvpn.zip
    4  -rw-            249  Oct 31 2018 03:25:24   private-data.txt
    5  -rw-            609  Oct 31 2018 03:25:23   vrpcfg.zip

1,090,732 KB total (784,456 KB free)

管理配置文件

执行display saved-configuration命令查看保存的配置文件

display saved-configuration 
  There is no correct configuration file in FLASH

由于当前还没有保存过配置文件,使用save保存当前配置并查看

save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
dis    
display sav    
display saved-configuration 
[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
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
 ip address 192.168.100.2 255.255.255.0 
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
 authentication-mode password
 set authentication password cipher %$%$pt6"(.Rl4>-%RB6Jc;c7,#MvW%Xm%`N109"Y($':
,KiX#My,%$%$
 idle-timeout 20 0
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

执行display current-configuration命令查看当前配置信息

display current-configuration 
[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
#

display current-configuration
[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
#
firewall zone Local
 priority 15
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
 ip address 192.168.100.2 255.255.255.0 
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
user-interface con 0
 authentication-mode password
 set authentication password cipher %$%$Jk5Q2gA#/4KWq`'m_:;B,#l%`#U`NoG7E@/3Pz(C
Yos/#l(,%$%$
 idle-timeout 20 0
user-interface vty 0 4
user-interface vty 16 20
#
wlan ac
#
return

一台路由器可以存储多个配置文件。执行display startup命令查看下次启动时使用的配置文件。

display startup 
MainBoard: 
  Startup system software:                   null
  Next startup system software:              null
  Backup system software for next startup:   null
  Startup saved-configuration file:          flash:/vrpcfg.zip
  Next startup saved-configuration file:     flash:/vrpcfg.zip
  Startup license file:                      null
  Next startup license file:                 null
  Startup patch package:                     null
  Next startup patch package:                null
  Startup voice-files:                       null
  Next startup voice-files:                  null

删除闪存中的配置文件

reset saved-configuration 
This will delete the configuration in the flash memory.

The device configuratio
ns will be erased to reconfigure.

Are you sure? (y/n)[n]:y
 Clear the configuration in the device successfully.
dir
Directory of flash:/

  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName 
    0  drw-              -  Oct 31 2018 03:03:57   dhcp
    1  -rw-        121,802  May 26 2014 09:20:58   portalpage.zip
    2  -rw-          2,263  Oct 31 2018 03:34:54   statemach.efs
    3  -rw-        828,482  May 26 2014 09:20:58   sslvpn.zip
    4  -rw-            249  Oct 31 2018 03:25:24   private-data.txt
    5  -rw-            120  Oct 31 2018 03:34:54   vrpcfg.zip

1,090,732 KB total (784,444 KB free)
dis    
display star   
display startup 
MainBoard: 
  Startup system software:                   null
  Next startup system software:              null
  Backup system software for next startup:   null
  Startup saved-configuration file:          null
  Next startup saved-configuration file:     null
  Startup license file:                      null
  Next startup license file:                 null
  Startup patch package:                     null
  Next startup patch package:                null
  Startup voice-files:                       null
  Next startup voice-files:                  null

重启设备

reboot
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration. 
Continue ? [y/n]:y
  It will take several minutes to save configuration file, please wait......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
System will reboot! Continue ? [y/n]:y
Info: system is rebooting ,please wait...

你可能感兴趣的:(AR2220基础配置)