第一天作业

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r1     
[r1]user-interface console 0  
[r1-ui-console0]idle-timeout 0 0
[r1-ui-console0]quit       
[r1]user-interface console 0
[r1-ui-console0]authentication-mode password 
Please configure the login password (maximum length 16):jincheng
[r1-ui-console0]quit 
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1-GigabitEthernet0/0/0]ping 192.168.1.2
  PING 192.168.1.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=60 ms
    Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=10 ms
    Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 192.168.1.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 10/28/60 ms

[r1-GigabitEthernet0/0/0]quit 
[r1]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.1/24       up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
NULL0                             unassigned           up         up(s)     
[r1]quit
<r1>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

  
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r2 
[r2]user-interface console 0 
[r2-ui-console0]idle-timeout 0 0
[r2-ui-console0]quit
[r2]aaa
[r2-aaa]local-user jincheng privilege level 15 password cipher xueyuan
Info: Add a new user.
[r2-aaa]local-user jincheng service-type terminal   
[r2-aaa]local-user xuesheng privilege level 0 password cipher 123
Info: Add a new user.
[r2-aaa]quit
[r2]user-interface console 0
[r2-ui-console0]authentication-mode aaa
[r2-ui-console0]quit
[r2]quit
<r2>quit

  Configuration console exit, please press any key to log on


Login authentication


Username:xuesheng
Password:
<r2>?
User view commands:
  display        Display information
  hwtacacs-user  HWTACACS user
  local-user     Add/Delete/Set user(s)
  ping           Ping function
  quit           Exit from current mode and enter prior mode
  save           Save file
  super          Modify super password parameters
  telnet         Open a telnet connection
  tracert        <Group> tracert command group
<r2>quit

  Configuration console exit, please press any key to log on


Login authentication

Username:jincheng
Password:
<r2>?
User view commands:
  arp-ping               ARP-ping
  autosave               <Group> autosave command group
  backup                 Backup  information
  cd                     Change current directory 
  clear                  <Group> clear command group
  clock                  Specify the system clock
  cls                    Clear screen
  compare                Compare configuration file
  copy                   Copy from one file to another 
  debugging              <Group> debugging command group
  delete                 Delete a file 
  dialer                 Dialer
  dir                    List files on a filesystem 
  display                Display information
  factory-configuration  Factory configuration
  fixdisk                Try to restory disk 
  format                 Format file system
  free                   Release a user terminal interface
  ftp                    Establish an FTP connection
  help                   Description of the interactive help system
  hwtacacs-user          HWTACACS user
  license                <Group> license command group
  lldp                   Link Layer Discovery Protocol
  local-user             Add/Delete/Set user(s)
  lock                   Lock the current user terminal interface
  mkdir                  Create a new directory 
  more                   Display the contents of a file 
  move                   Move from one file to another 
  mpls                   MPLS parameters
  mtrace                 Trace route to multicast source
  pad                    Establish one PAD connection 
  patch                  Patch operation
  ping                   <Group> ping command group
  power                  Power on or off operate
  pwd                    Display current working directory 
  quit                   Exit from current mode and enter prior mode
  reboot                 Reboot system
  refresh                Do soft reset
  rename                 Rename a file or directory
  reset                  <Group> reset command group
  resource               System resources(mem,message,cpu)
  return                 Enter the privileged mode
  rmdir                  Remove an existing directory 
  rollback               Active/standby mainboard rollback command
  save                   <Group> save command group
  schedule               Schedule system task
  screen-length          Set the number of lines displayed on a screen
  send                   Send information to other user terminal interfaces
  set                    <Group> set command group
  sslvpn                 Sslvpn
  startup                Config parameter for system to startup
  super                  Modify super password parameters
  system-view            SystemView from terminal
  telnet                 Open a telnet connection
  terminal               Set the terminal line characteristics
  test-aaa               Accounts test
  tftp                   Establish a TFTP connection
  tracert                <Group> tracert command group
  undelete               Restore deleted files or directory 
  undo                   Negate a command or set its defaults
  unzip                  Unzip files or directory 
  upgrade                Upgrade
  xdsl                   Display board temperature
  zip                    Zip files or directory 
<r2>system-view 
Enter system view, return user view with Ctrl+Z.
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.1.2 24
Nov  2 2022 14:19:55-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]quit
[r2]quit
<r2>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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值