第七点 用户使用的交换机 PC机的页面设置中的选项
路由器的设置
交换机的设置
PC机的内容
实操
代码命令一
domain default_admin local-user admin password simple admin local-user admin service-type http # interface Vlanif1 # interface MEth0/0/1 # interface GigabitEthernet0/0/1 # interface GigabitEthernet0/0/2 # interface GigabitEthernet0/0/3 # interface GigabitEthernet0/0/4 # interface GigabitEthernet0/0/5 # interface GigabitEthernet0/0/6 # interface GigabitEthernet0/0/7 # interface GigabitEthernet0/0/8 # interface GigabitEthernet0/0/9 # interface GigabitEthernet0/0/10 # interface GigabitEthernet0/0/11 # interface GigabitEthernet0/0/12 # interface GigabitEthernet0/0/13 # interface GigabitEthernet0/0/14 # interface GigabitEthernet0/0/15 # interface GigabitEthernet0/0/16 # interface GigabitEthernet0/0/17 # interface GigabitEthernet0/0/18 # interface GigabitEthernet0/0/19 # interface GigabitEthernet0/0/20 # interface GigabitEthernet0/0/21 # interface GigabitEthernet0/0/22 # interface GigabitEthernet0/0/23 # interface GigabitEthernet0/0/24 # interface NULL0 # ospf 1 # user-interface con 0 user-interface vty 0 4 # return <Huawei> <Huawei> <Huawei> Jul 9 2023 11:16:07-08:00 Huawei %%01PHY/1/PHY(l)[0]: GigabitEthernet0/0/1: change status to down Jul 9 2023 11:16:08-08:00 Huawei %%01PHY/1/PHY(l)[1]: GigabitEthernet0/0/1: change status to up <Huawei>dis <Huawei>display this <Huawei>display this # return <Huawei> <Huawei>dis <Huawei>display ver <Huawei>display version Huawei Versatile Routing Platform Software VRP (R) software, Version 5.110 (S5700 V200R001C00) Copyright (c) 2000-2011 HUAWEI TECH CO., LTD Quidway S5700-28C-HI Routing Switch uptime is 0 week, 0 day, 0 hour, 8 minutes <Huawei> <Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]sys [Huawei]sysname s1 [Huawei]sysname s1 [s1] Jul 9 2023 11:17:54-08:00 s1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25. 191.3.1 configurations have been changed. The current change number is 5, the ch ange loop count is 0, and the maximum number of records is 4095. [s1] [s1]use [s1]user-i [s1]user-interface co [s1]user-interface console 0 [s1]user-interface console 0 [s1-ui-console0] aus [s1-ui-console0] aut [s1-ui-console0]authentication-mode pa [s1-ui-console0]authentication-mode password 123 ^ Error:Too many parameters found at '^' position. [s1-ui-console0]aut [s1-ui-console0]authentication-mode pa [s1-ui-console0]authentication-mode password 123456 ^ Error:Too many parameters found at '^' position. [s1-ui-console0]set aut [s1-ui-console0]set authentication p [s1-ui-console0]set authentication password 123456 ^ Error: Unrecognized command found at '^' position. [s1-ui-console0] [s1-ui-console0]set [s1-ui-console0]set aut [s1-ui-console0]set authentication p [s1-ui-console0]set authentication password c [s1-ui-console0]set authentication password cipher 123 [s1-ui-console0] Jul 9 2023 11:21:54-08:00 s1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25. 191.3.1 configurations have been changed. The current change number is 6, the ch ange loop count is 0, and the maximum number of records is 4095. [s1-ui-console0] [s1-ui-console0] [s1-ui-console0] <s1> <s1>dis <s1>display curr <s1>display current-configuration # sysname s1 # cluster enable ntdp enable ndp enable # drop illegal-mac alarm # diffserv domain default # drop-profile default # aaa authentication-scheme default authorization-scheme default accounting-scheme default domain default domain default_admin local-user admin password simple admin local-user admin service-type http # interface Vlanif1 # interface MEth0/0/1 # interface GigabitEthernet0/0/1 # interface GigabitEthernet0/0/2 # interface GigabitEthernet0/0/3 # interface GigabitEthernet0/0/4 # interface GigabitEthernet0/0/5 # interface GigabitEthernet0/0/6 # interface GigabitEthernet0/0/7 # interface GigabitEthernet0/0/8 # interface GigabitEthernet0/0/9 # interface GigabitEthernet0/0/10 # interface GigabitEthernet0/0/11 # interface GigabitEthernet0/0/12 # interface GigabitEthernet0/0/13 # interface GigabitEthernet0/0/14 # interface GigabitEthernet0/0/15 # interface GigabitEthernet0/0/16 # interface GigabitEthernet0/0/17 # interface GigabitEthernet0/0/18 # interface GigabitEthernet0/0/19 # interface GigabitEthernet0/0/20 # interface GigabitEthernet0/0/21 # interface GigabitEthernet0/0/22 # interface GigabitEthernet0/0/23 # interface GigabitEthernet0/0/24 # interface NULL0 # ospf 1 # user-interface con 0 set authentication password cipher k6ls=miVdW`S/0Rb{DzNE&d# user-interface vty 0 4 # return <s1> <s1> Jul 9 2023 11:22:43-08:00 s1 %%01PHY/1/PHY(l)[2]: GigabitEthernet0/0/2: chan ge status to down Jul 9 2023 11:22:44-08:00 s1 %%01PHY/1/PHY(l)[3]: GigabitEthernet0/0/2: chan ge status to up
代码命令二
he device is running! ########################################################################## <Huawei> <Huawei> <Huawei> Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on <Huawei> <Huawei>lbyuo ^ Error: Unrecognized command found at '^' position. <Huawei>luyou ^ Error: Unrecognized command found at '^' position. <Huawei> <Huawei> <Huawei> <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]user [Huawei]user [Huawei]user-i [Huawei]user-interface co [Huawei]user-interface console 0 [Huawei]user-interface console 0 [Huawei-ui-console0]au [Huawei-ui-console0]authentication-mode p [Huawei-ui-console0]authentication-mode password Please configure the login password (maximum length 16): Please configure the login password (maximum length 16):123456 [Huawei-ui-console0] [Huawei-ui-console0]quit [Huawei-ui-console0]quit [Huawei] <Huawei>quit Configuration console exit, please press any key to log on Login authentication Password: Password: Password: Configuration console exit, please press any key to log on Login authentication Password: Password: <Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei]use [Huawei]user-i [Huawei]user-interface co [Huawei]user-interface console 0 [Huawei-ui-console0]aut [Huawei-ui-console0]authentication-mode p Please configure the login password (maximum length 16): Please configure the login password (maximum length 16): Please configure the login password (maximum length 16): Error: Failed to set user interface authentication mode because of invalid passw ord. [Huawei-ui-console0]un [Huawei-ui-console0]undo au [Huawei-ui-console0]undo authentication-mode p [Huawei-ui-console0]undo authentication-mode pa [Huawei-ui-console0]undo authentication-mode password [Huawei-ui-console0]undo authentication-mode password ^ Error:Too many parameters found at '^' position. [Huawei-ui-console0] [Huawei-ui-console0] [Huawei-ui-console0]un [Huawei-ui-console0]undo au [Huawei-ui-console0]undo authentication-mode [Huawei-ui-console0] <Huawei>quit <Huawei>quit Configuration console exit, please press any key to log on <Huawei>sys <Huawei>system-view Enter system view, return user view with Ctrl+Z. [Huawei] [Huawei] [Huawei] Please check whether system data has been changed, and save data in time Configuration console time out, please press any key to log on <Huawei> <Huawei> <Huawei>sys Enter system view, return user view with Ctrl+Z. [Huawei]us [Huawei]user-i [Huawei]user-interface c [Huawei]user-interface console 0 [Huawei]user-interface console 0 [Huawei-ui-console0]au [Huawei-ui-console0]aut [Huawei-ui-console0]authentication-mode pa [Huawei-ui-console0]authentication-mode password Please configure the login password (maximum length 16):123456 [Huawei-ui-console0]dis [Huawei-ui-console0]display this [Huawei-ui-console0]display this [V200R003C00] # user-interface con 0 authentication-mode password set authentication password cipher %$%$)8fK/mpepPtyli;*4h,N,%&{kaB`';!EJS$t7hGK /)5/%&!,%$%$ user-interface vty 0 4 user-interface vty 16 20 # return [Huawei-ui-console0] [Huawei-ui-console0]set au [Huawei-ui-console0]set authentication p [Huawei-ui-console0]set authentication password ci [Huawei-ui-console0]set authentication password cipher abc [Huawei-ui-console0]dis [Huawei-ui-console0]display this [Huawei-ui-console0]display this [V200R003C00] # user-interface con 0 authentication-mode password set authentication password cipher %$%$v\{;~(jl>:9KK,@r*9!&,%6gy+_<RJL&R5u-/sX: e%$.%6j,%$%$ user-interface vty 0 4 user-interface vty 16 20 # return [Huawei-ui-console0] <Huawei> <Huawei>quit <Huawei>quit Configuration console exit, please press any key to log on Login authentication Password: Password: Password: Configuration console exit, please press any key to log on Login authentication Password: <Huawei>
代码命令三
Huawei> <Huawei>sys // 一 主视图进入到系统视图sys+tab键 Enter system view, return user view with Ctrl+Z. [Huawei]sysname swith1 //二 修改系统视图的名字为swith1 [swith1] //三 按住ctrl键+键返回上一步 <swith1>save //四 The current configuration will be written to the device. Are you sure to continue?[Y/N] Jul 9 2023 16:26:44-08:00 swith1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5 .25.191.3.1 configurations have been changed. The current change number is 4, th e change loop count is 0, and the maximum number of records is 4095. Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]: Jul 9 2023 16:26:54-08:00 swith1 %%01CFM/4/SAVE(l)[54]:The user chose Y when de ciding whether to save the configuration to the device. flash:/vrpcfg.zip exists, overwrite?[Y/N]:y Now saving the current configuration to the slot 0. Jul 9 2023 16:26:59-08:00 swith1 %%01CFM/4/OVERWRITE_FILE(l)[55]:When deciding whether to overwrite the configuration file vrpcfg.zip, the user chose Y. Save the configuration successfully. <swith1> <swith1>reset saved-configuration //倒数第四步 是否恢复出厂设置 Warning: The action will delete the saved configuration in the device. The configuration will be erased to reconfigure. Continue? [Y/N]:y Warning: Now clearing the configuration in the device. Jul 9 2023 16:27:16-08:00 swith1 %%01CFM/4/RST_CFG(l)[56]:The user chose Y when deciding whether to reset the saved configuration. Info: Succeeded in clearing the configuration in the device. <swith1>reboot //倒数 第三步 重启终端设备名字为SWith1 Info: The system is now comparing the configuration, please wait. Warning: All the configuration will be saved to the configuration file for the n ext startup:, Continue?[Y/N]:n //倒数第二步 输入N 不保存操作 Info: If want to reboot with saving diagnostic information, input 'N' and then e xecute 'reboot save diagnostic-information'. System will reboot! Continue?[Y/N]:y //最后一步 输入 Y 重启 Jul 9 2023 16:27:35-08:00 swith1 %%01CMD/4/REBOOT(l)[57]:The user chose Y when deciding whether to reboot the system. (Task=co0, Ip=**, User=**) <swith1> Jul 9 2023 16:27:35-08:00 swith1 %%01IFNET/4/BOARD_DISABLE(l)[58]:Board 0 has b een unavailable. Jul 9 2023 16:27:35-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[59]:Interface Gigabi tEthernet0/0/1 has been unavailable. Jul 9 2023 16:27:35-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[60]:Interface Gigabi tEthernet0/0/2 has been unavailable. Jul 9 2023 16:27:35-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[61]:Interface Gigabi tEthernet0/0/3 has been unavailable. Jul 9 2023 16:27:35-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[62]:Interface Gigabi tEthernet0/0/4 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[63]:Interface Gigabi tEthernet0/0/5 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[64]:Interface Gigabi tEthernet0/0/6 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[65]:Interface Gigabi tEthernet0/0/7 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[66]:Interface Gigabi tEthernet0/0/8 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[67]:Interface Gigabi tEthernet0/0/9 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[68]:Interface Gigabi tEthernet0/0/10 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[69]:Interface Gigabi tEthernet0/0/11 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[70]:Interface Gigabi tEthernet0/0/12 has been unavailable. Jul 9 2023 16:27:36-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[71]:Interface Gigabi tEthernet0/0/13 has been unavailable.################## <Huawei>