网络应用基础交换机(NETBASE第五课)(二)

简介: 网络应用基础交换机(NETBASE第五课)(二)
22 重启设备
<swith1>reboot
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]:y
Now saving the current configuration to the slot 0.
Save the configuration successfully.
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
Jul  8 2023 16:43:18-08:00 swith1 %%01CMD/4/REBOOT(l)[1]:The user chose Y when d
eciding whether to reboot the system. (Task=co0, Ip=**, User=**)
<swith1>
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/BOARD_DISABLE(l)[2]:Board 0 has be
en unavailable.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFPDT/4/IF_STATE(l)[3]:GigabitEthernet0/0/
1 has turned into DOWN state.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[4]:Interface Gigabit
Ethernet0/0/1 has been unavailable.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFPDT/4/IF_STATE(l)[5]:GigabitEthernet0/0/
2 has turned into DOWN state.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[6]:Interface Gigabit
Ethernet0/0/2 has been unavailable.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFPDT/4/IF_STATE(l)[7]:GigabitEthernet0/0/
3 has turned into DOWN state.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[8]:Interface Gigabit
Ethernet0/0/3 has been unavailable.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/IF_STATE(l)[9]:Interface Vlanif1 h
as turned into DOWN state.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFPDT/4/IF_STATE(l)[10]:GigabitEthernet0/0
/4 has turned into DOWN state.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[11]:Interface Gigabi
tEthernet0/0/4 has been unavailable.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[12]:Interface Gigabi
tEthernet0/0/5 has been unavailable.
Jul  8 2023 16:43:18-08:00 swith1 %%01IFNET/4/IF_DISABLE(l)[13]:Interfa

22 [SW1]user-interface console 0   //进入终端进行配置
[SW1-ui-console0]authentication-mode  password    //启用密码认证
[SW1-ui-console0]set authentication password cipher 123456  //设置终端密码为123456(密文)
**想要验证密码,在用户视图中直接敲入quit

[Huawei]dis 
[Huawei]display in  
[Huawei]display increment-command
Error: Please execute this command on the administrator switch.
[Huawei]dis 
[Huawei]display  
                ^
Error:Incomplete command found at '^' position.
[Huawei]
<Huawei>
<Huawei>dis 
<Huawei>display cuur  
<Huawei>display cur 
<Huawei>display current-configuration 
#
sysname Huawei
#
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
user-interface vty 0 4
#
return
<Huawei>

[s1-ui-console0]set au  
[s1-ui-console0]set authentication p  
[s1-ui-console0]set authentication password ci  
[s1-ui-console0]set authentication password cipher 123
[s1-ui-console0]
Jul  8 2023 17:24:59-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 7, the ch
ange loop count is 0, and the maximum number of records is 4095.
[s1-ui-console0]
[s1-ui-console0]quit  
[s1-ui-console0]quit 
[s1]
[s1]quit  
[s1]quit 
<s1>sys
Enter system view, return user view with Ctrl+Z.
[s1]
<s1>
<s1>QUIT User interface con0 is available

<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]in  
[Huawei]info-center
                    ^
Error:Incomplete command found at '^' position.
[Huawei]inter 
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]
Jul  8 2023 17:21:53-08:00 Huawei %%01PHY/1/PHY(l)[0]:    GigabitEthernet0/0/2: 
change status to down
Jul  8 2023 17:21:54-08:00 Huawei %%01PHY/1/PHY(l)[1]:    GigabitEthernet0/0/2: 
change status to up
[Huawei-GigabitEthernet0/0/1]dis  
[Huawei-GigabitEthernet0/0/1]display this
#
interface GigabitEthernet0/0/1
#
return
[Huawei-GigabitEthernet0/0/1]
<Huawei>dis ver 
<Huawei>dis 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, 9 minutes
<Huawei>sys

Enter system view, return user view with Ctrl+Z.
[Huawei]sysn  
[Huawei]sysname s1  
[Huawei]sysname s1
[s1]
Jul  8 2023 17:23:29-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]
[s1]user  
[s1]user-in 
[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 
[s1-ui-console0]
[s1-ui-console0]
Jul  8 2023 17:24:29-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]set au  
[s1-ui-console0]set authentication p  
[s1-ui-console0]set authentication password ci  
[s1-ui-console0]set authentication password cipher 123
[s1-ui-console0]
Jul  8 2023 17:24:59-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 7, the ch
ange loop count is 0, and the maximum number of records is 4095.
[s1-ui-console0]
[s1-ui-console0]quit  
[s1-ui-console0]quit 
[s1]
[s1]quit  
[s1]quit 
<s1>sys
Enter system view, return user view with Ctrl+Z.
[s1]
<s1>
<s1>QUIT User interface con0 is available

ENSP操作指令 总结性语句一

1  ipconfig  查看 pc机的IP地址

2  ping 连接的IP地址

3 system-view  进入系统视图

4 [Huawei]interface GigabitEthernet  0/0/1   进入接口视图 过0/0/1

5  quit 返回上一层视图

6   ctrl+Z 快速返回用户视图

7  [sy]sysname  tedu-ntd-lswl  进入系统视图改名字

8 shutdown 禁用

9 undo shutdown 启用

10  display current-configuration    查看当前配置

11 save   保存配置

12  [tedu-ntd-lsw1] user-interface  console  0                      //进终端配置

13 [tedu-ntd-lsw1-ui-console0] set authentication password cipher Taren1   //设置终端登录密码为 Taren1

14 [tedu-ntd-lsw1-ui-console0] authentication-mode password         //启用密码认证

15 [tedu-ntd-lsw1-ui-console0] idle-timeout 2880          //将闲置超时设为2880分钟

16     <tedu-ntd-lsw1> 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       //提示是否恢复选Y
    <tedu-ntd-lsw1> reboot
    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
    .. ..
    <Huawei>                                             //重启完毕后,已恢复出厂设置

    1  ipconfig  查看 pc机的IP地址
    2  ping 连接的IP地址
    3 system-view  进入系统视图
    4 [Huawei]interface GigabitEthernet  0/0/1   进入接口视图 过0/0/1
    5  quit 返回上一层视图
    6   ctrl+Z 快速返回用户视图
    7  [sy]sysname  tedu-ntd-lswl  进入系统视图改名字
    8 shutdown 禁用
    9 undo shutdown 启用
    10  display current-configuration    查看当前配置
    11 save   保存配置
    12  [tedu-ntd-lsw1] user-interface  console  0                      //进终端配置
    13 [tedu-ntd-lsw1-ui-console0] set authentication password cipher Taren1   //设置终端登录密码为 Taren1
    14 [tedu-ntd-lsw1-ui-console0] authentication-mode password         //启用密码认证
    15 [tedu-ntd-lsw1-ui-console0] idle-timeout 2880          //将闲置超时设为2880分钟

    <Huawei>u t m                                 //关闭日志提示
    <Huawei>la c                                     //改变语言模式为中文
    Change language mode, confirm? [Y/N] y
    <Huawei>dis ver
    <Huawei>sys
    [Huawei]sy tedu-ntd-lsw1
    [tedu-ntd-lsw1]int g0/0/10
    [tedu-ntd-lsw1-GigabitEthernet0/0/10]sh
    [tedu-ntd-lsw1-GigabitEthernet0/0/10]undo sh
    [tedu-ntd-lsw1-GigabitEthernet0/0/10]quit
    [tedu-ntd-lsw1]dis cur
    [tedu-ntd-lsw1]user-i co 0
    [tedu-ntd-lsw1-ui-console0]auth p
    [tedu-ntd-lsw1-ui-console0]set a p c Taren1
    [tedu-ntd-lsw1-ui-console0]ret
    <tedu-ntd-lsw1>save
    是否继续?[Y/N]y
    <tedu-ntd-lsw1>quit
    Please Press ENTER.
    Login authentication
    Password:            //输入密码Taren1
    <tedu-ntd-lsw1>u t m 
    <tedu-ntd-lsw1>sy
    [tedu-ntd-lsw1]user-i co 0                     
    [tedu-ntd-lsw1-ui-console0]i 1440
    [tedu-ntd-lsw1-ui-console0]return 
    <tedu-ntd-lsw1>res sa
    The configuration will be erased to reconfigure. Continue? [Y/N]:y
    <tedu-ntd-lsw1>reboot 
    ext startup:, Continue?[Y/N]:n
    System will reboot! Continue?[Y/N]:y

相关文章
|
24天前
|
Java 数据挖掘 开发者
Java网络编程进阶:Socket通信的高级特性与应用
【6月更文挑战第21天】Java Socket通信是分布式应用的基础,涉及高级特性如多路复用(Selector)和零拷贝,提升效率与响应速度。结合NIO和AIO,适用于高并发场景如游戏服务器和实时数据分析。示例展示了基于NIO的多路复用服务器实现。随着技术发展,WebSockets、HTTP/2、QUIC等新协议正变革网络通信,掌握Socket高级特性为应对未来挑战准备。
|
15天前
|
消息中间件 Java RocketMQ
消息队列 MQ产品使用合集之当SpringBoot应用因网络不通而启动失败时,该如何解决
消息队列(MQ)是一种用于异步通信和解耦的应用程序间消息传递的服务,广泛应用于分布式系统中。针对不同的MQ产品,如阿里云的RocketMQ、RabbitMQ等,它们在实现上述场景时可能会有不同的特性和优势,比如RocketMQ强调高吞吐量、低延迟和高可用性,适合大规模分布式系统;而RabbitMQ则以其灵活的路由规则和丰富的协议支持受到青睐。下面是一些常见的消息队列MQ产品的使用场景合集,这些场景涵盖了多种行业和业务需求。
|
2天前
|
边缘计算 运维 5G
|
1天前
|
机器学习/深度学习 人工智能 算法
|
2天前
|
SQL 安全 网络安全
数字堡垒的裂缝与防御:网络安全漏洞解析与加密技术应用
【7月更文挑战第13天】在数字化浪潮中,网络安全漏洞如同潜藏的陷阱,威胁着信息资产的安全。本文将深入剖析常见的网络攻击手段和安全漏洞,揭示它们背后的原因和影响。同时,探讨加密技术如何成为守护数据安全的利剑,以及提升个人与企业的安全意识在防范网络风险中的关键作用。通过案例分析和策略建议,旨在为读者提供一套实用的网络安全知识框架,强化数字世界的防护壁垒。
|
7天前
|
前端开发 Java 数据处理
使用Netty构建高性能的网络应用
使用Netty构建高性能的网络应用
|
6天前
|
监控 安全 网络安全
|
12天前
|
存储 网络协议 网络虚拟化
计算机网络知识之交换机、路由器、网关、MAC地址
计算机网络知识之交换机、路由器、网关、MAC地址
|
13天前
|
XML JSON 安全
Base64编码原理与在网络传输中的应用
Base64编码原理与在网络传输中的应用
|
20天前
|
前端开发 Java API
网络防抖动在Springboot中有哪些应用?
【6月更文挑战第25天】在 Spring Boot 中,网络防抖动(Debounce)技术可以应用于多种场景,以避免短时间内重复处理相同的请求,提高系统性能和用户体验。
40 8

热门文章

最新文章