ENSP路由器的基本命令操作(第十六课)

news2024/12/24 2:33:37

ENSP路由器的基本命令操作(第十六课)

1-1 代码重点回顾

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>                                             //重启完毕后,已恢复出厂设置
17 <Huawei>u t m                                    //关闭日志提醒


18 <Huawei>sys                                    //进入系统视图

19 [Huawei]sys lsw1                                //设置交换机名字lsw1


20 [lsw1]inter  vlan  1                             //进虚接口vlan1配置


21 [lsw1-Vlanif1]ip  addr  192.168.1.251 24         //设置IP地址


22 [lsw1-Vlanif1]dis cu                            //验证操作

23 <lsw2 > telnet 192.168.1.251                  //连接指定地址的交换机

1-2上面的代码实操回顾

1.2.1  操作命令 ipconfig

elcome to use PC Simulator!

PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fe0e:3bb
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.20.1
Subnet mask.......................: 255.255.255.0
Gateway...........................: 0.0.0.0
Physical address..................: 54-89-98-0E-03-BB
DNS server........................:

PC>ipconfig /all

Usage: ipconfig [?] [/renew] [/release] [/renew6] [/release6]

Options: 
?              Display this help message
/renew         Renew the IPv4 address
/release       Release the IPv4 address
/renew6        Renew the IPv6 address
/release6      Release the IPv6 address

PC>

1.2.2 操作命令二 使用交换机 将之前的命令写上一遍


<Huawei> sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/1	
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]quit	
[Huawei-GigabitEthernet0/0/1]quit 
[Huawei]quit
<Huawei>sysn	
<Huawei>sysn
        ^
Error: Unrecognized command found at '^' position.
<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sysn	
[Huawei]sysname look-lswsa
[look-lswsa]
Jul 16 2023 22:18:30-08:00 look-lswsa DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.20
11.5.25.191.3.1 configurations have been changed. The current change number is 4
, the change loop count is 0, and the maximum number of records is 4095.
[look-lswsa] dis	
[look-lswsa]display  cu	
[look-lswsa]display  current-configuration  
#
sysname look-lswsa
#
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
#
user-interface con 0
user-interface vty 0 4
#
return

[look-lswsa]
[look-lswsa]save	
[look-lswsa]save
            ^
Error: Unrecognized command found at '^' position.
[look-lswsa]
<look-lswsa>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Jul 16 2023 22:19:35-08:00 look-lswsa %%01CFM/4/SAVE(l)[0]:The user chose Y when
 deciding whether to save the configuration to the device.
Now saving the current configuration to the slot 0.
Save the configuration successfully.
<look-lswsa>
<look-lswsa>u t m
Info: Current terminal monitor is off.
<look-lswsa>

1-3 路由器的学习 路由器的ENSP基本命令操作 (重点 难点 直连路由)

1-3.1 路由器的定义

路由器是一种网络设备,用于将网络数据包从一个网络接口路由到另一个网络接口。它能够连接多个设备,为它们提供网络连接和管理网络流量。路由器通常用于家庭、办公室和企业环境中,用于连接多个计算机、智能手机、平板电脑、网络打印机等设备,并将它们连接到互联网上。路由器通过连接到互联网的调制解调器,将网络设备中的数据包传输到互联网上,并从互联网上路由数据包到正确的目标设备,使网络设备可以互相通信。

1-3.2 路由器的相关的知识

  1. 11路由:数据从一个网络到另外一个网络之间转发数据包的过程称为路由

  2. 2) 路由器:连接不同网络,实现不同网段之间的通信

  3. 3)路由表:路由器选择数据的传输路径的依据

  4.  路由器的工作原理 如下

  5. 1 路由器接收数据包 检查数据包中的目标I

  6. 2 在路由表中查找与目标IP相匹配的路由条目

  7. 3 路由表中找到与目标IP相匹配的路由条目后,按照此条目所指的方向将数据转发出去

1-3.3远程管理交换机

 交换机A

The device is running!
    //交换机一 

<Huawei> u t m
Info: Current terminal monitor is off.
<Huawei> sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sys	
[Huawei]sysname  lws6
[lws6]
[lws6]in	
[lws6]int	
[lws6]interface  vlan 1
[lws6-Vlanif1]
[lws6-Vlanif1]ip address 192.168.1.251 24
[lws6-Vlanif1]dis cu	
[lws6-Vlanif1]dis current-configuration 
#
sysname lws6
#
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
 ip address 192.168.1.251 255.255.255.0
#
interface MEth0/0/1
#
interface GigabitEthernet0/0/1
。。。。。。。。。。。。。
#
interface GigabitEthernet0/0/24
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

[lws6-Vlanif1]
<lws6>sys	
<lws6>system-view 
Enter system view, return user view with Ctrl+Z.
[lws6]user	
[lws6]user-in	
[lws6]user-interface  vty 0 4
[lws6-ui-vty0-4] set authentication  password  cipher 123456
[lws6-ui-vty0-4]user  privilege  level  3
[lws6-ui-vty0-4]

交换机A 重点代码操作

<Huawei>u t m                                    //关闭日志提醒

<Huawei>system-view                        //进入系统视图

[Huawei]sysname  lws6                     // 进入系统视图改名字

[lws6]interface  vlan 1                        //进入虚拟接口

[lws6-Vlanif1]ip address 192.168.1.251 24     // //设置IP地址

[lws6-Vlanif1]dis current-configuration             // 查看当前配置

[lws6]user-interface  vty 0 4                             //进远程登录配置视图

[lws6-ui-vty0-4] set authentication  password  cipher 123456   //启用密码认证

[lws6-ui-vty0-4]user  privilege  level  3          //设置权限级别

交换机B


<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys	
[Huawei]sysname  lsw7
[lsw7]int	
[lsw7]interface  vlsn 1
                 ^
Error: Wrong parameter found at '^' position.
[lsw7]int	
[lsw7]interface  vlan 1
[lsw7-Vlanif1]ip addr	
[lsw7-Vlanif1]ip address 
                         ^
Error:Incomplete command found at '^' position.
[lsw7-Vlanif1]ip add	
[lsw7-Vlanif1]ip address  192.168.1.252 24
[lsw7-Vlanif1]dis cu	
[lsw7-Vlanif1]dis current-configuration 
#
sysname lsw7
#
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
 ip address 192.168.1.252 255.255.255.0
#
interface MEth0/0/1
。。。。。。。。。
interface GigabitEthernet0/0/24
#
interface NULL0
#
user-interface con 0
user-interface vty 0 4
#
return

[lsw7-Vlanif1]
[lsw7-Vlanif1]
<lsw7> te	
<lsw7>terminal 192.168.1.251
               ^
Error: Unrecognized command found at '^' position.
<lsw7>tel	
<lsw7>telnet 192.168.1.251
Trying 192.168.1.251 ...
Press CTRL+K to abort
Connected to 192.168.1.251 ...


Login authentication


Password:
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
      The current login time is 2023-07-16 16:03:02.
<lws6>

交换机B 重点代码操作

<Huawei>u t m                                    //关闭日志提醒


<Huawei>system-view                        //进入系统视图


[Huawei]sysname  lws6                     // 进入系统视图改名字


[lws6]interface  vlan 1                        //进入虚拟接口


[lws6-Vlanif1]ip address 192.168.1.251 24     // //设置IP地址


[lws6-Vlanif1]dis current-configuration             // 查看当前配置


[lws6]user-interface  vty 0 4                            //进远程登录配置视图


[lws6-ui-vty0-4] set authentication  password  cipher 123456   //启用密码认证


[lws6-ui-vty0-4]user  privilege  level  3         //设置权限级别


<lsw2 > telnet 192.168.1.251                 //连接指定地址的交换机
Password: Taren1                             //输入正确密码,实际不显示
Info: The max number of VTY users is 5, and the number
      of current VTY users on line is 1.
<lsw1>                                      //成功连接
<lsw1>sys
Enter system view, return user view with Ctrl+Z.

1-3-4 路由器连多个网段   实现多网段互通

 

 

 

 

 

 

Welcome to use PC Simulator!

PC>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fe0c:1bf6
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.1.1
Subnet mask.......................: 255.255.255.0
Gateway...........................: 0.0.0.0
Physical address..................: 54-89-98-0C-1B-F6
DNS server........................:


 在路由器上操在 配置 路由的两个网关地址

The device is running!

<Huawei>u t m	
<Huawei>u t m
Info: Current terminal monitor is off.
<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]sys	
[Huawei]sysname  ar1

[ar1]interface  g0/0/1
[ar1-GigabitEthernet0/0/1]
[ar1-GigabitEthernet0/0/1]ip addr	
[ar1-GigabitEthernet0/0/1]ip address  192.168.1.254 24     
[ar1-GigabitEthernet0/0/1]quit	

[ar1]interface  g0/0/2
[ar1-GigabitEthernet0/0/2] ip addr	
[ar1-GigabitEthernet0/0/2]ip address 192.168.2.254 24
[ar1-GigabitEthernet0/0/2]quit

[ar1]display  ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 10       Routes : 10       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
    192.168.1.0/24  Direct  0    0           D   192.168.1.254   GigabitEthernet
0/0/1
  192.168.1.254/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
  192.168.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
    192.168.2.0/24  Direct  0    0           D   192.168.2.254   GigabitEthernet
0/0/2
  192.168.2.254/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
  192.168.2.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[ar1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

PC>ping 192.168.2.1

Ping 192.168.2.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.2.1: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.2.1: bytes=32 seq=3 ttl=127 time=78 ms
From 192.168.2.1: bytes=32 seq=4 ttl=127 time=63 ms
From 192.168.2.1: bytes=32 seq=5 ttl=127 time=62 ms

--- 192.168.2.1 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/62/78 ms

PC>ping 192.168.2.2

Ping 192.168.2.2: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.2.2: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.2.2: bytes=32 seq=3 ttl=127 time=62 ms
From 192.168.2.2: bytes=32 seq=4 ttl=127 time=78 ms
From 192.168.2.2: bytes=32 seq=5 ttl=127 time=78 ms

--- 192.168.2.2 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/66/78 ms

PC>ping 192.168.1.2

Ping 192.168.1.2: 32 data bytes, Press Ctrl_C to break
From 192.168.1.2: bytes=32 seq=1 ttl=128 time=31 ms
From 192.168.1.2: bytes=32 seq=2 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=3 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=4 ttl=128 time=31 ms
From 192.168.1.2: bytes=32 seq=5 ttl=128 time=47 ms

--- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/40/47 ms

难度升级 原理同样

操作的流程图操作

C>ping 192.168.2.1

Ping 192.168.2.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.2.1: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.2.1: bytes=32 seq=3 ttl=127 time=78 ms
From 192.168.2.1: bytes=32 seq=4 ttl=127 time=63 ms
From 192.168.2.1: bytes=32 seq=5 ttl=127 time=62 ms

--- 192.168.2.1 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/62/78 ms

PC>ping 192.168.2.2

Ping 192.168.2.2: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.2.2: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.2.2: bytes=32 seq=3 ttl=127 time=62 ms
From 192.168.2.2: bytes=32 seq=4 ttl=127 time=78 ms
From 192.168.2.2: bytes=32 seq=5 ttl=127 time=78 ms

--- 192.168.2.2 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/66/78 ms

PC>ping 192.168.1.2

Ping 192.168.1.2: 32 data bytes, Press Ctrl_C to break
From 192.168.1.2: bytes=32 seq=1 ttl=128 time=31 ms
From 192.168.1.2: bytes=32 seq=2 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=3 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=4 ttl=128 time=31 ms
From 192.168.1.2: bytes=32 seq=5 ttl=128 time=47 ms

--- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/40/47 ms

 

<ar1>sys	
<ar1>system-view 
Enter system view, return user view with Ctrl+Z.
[ar1] int	
[ar1]interface go/0/3	
[ar1]interface go/0/3
               ^
Error: Wrong parameter found at '^' position.
[ar1]int	
[ar1]interface  g0/0/3	
[ar1]interface  g0/0/3
                ^
Error: Wrong parameter found at '^' position.
[ar1]in	
[ar1]int	
[ar1]interface  g0/0/0	
[ar1]interface  g0/0/0
[ar1-GigabitEthernet0/0/0] ip 	
[ar1-GigabitEthernet0/0/0]ip add	
[ar1-GigabitEthernet0/0/0]ip address  192.168.3.254 24
Jul 16 2023 14:58:40-08:00 ar1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[ar1-GigabitEthernet0/0/0]
[ar1-GigabitEthernet0/0/0] dis	
[ar1-GigabitEthernet0/0/0]disp	
[ar1-GigabitEthernet0/0/0]display  ip	
[ar1-GigabitEthernet0/0/0]display  ip r	
[ar1-GigabitEthernet0/0/0]display  ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
         Destinations : 13       Routes : 13       

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

      127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
      127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0
    192.168.1.0/24  Direct  0    0           D   192.168.1.254   GigabitEthernet
0/0/1
  192.168.1.254/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
  192.168.1.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/1
    192.168.2.0/24  Direct  0    0           D   192.168.2.254   GigabitEthernet
0/0/2
  192.168.2.254/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
  192.168.2.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/2
    192.168.3.0/24  Direct  0    0           D   192.168.3.254   GigabitEthernet
0/0/0
  192.168.3.254/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
  192.168.3.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

[ar1-GigabitEthernet0/0/0]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on
PC> ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fe0c:1bf6
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 192.168.1.1
Subnet mask.......................: 255.255.255.0
Gateway...........................: 192.168.1.254
Physical address..................: 54-89-98-0C-1B-F6
DNS server........................:

PC>ping 192.168.1.2

Ping 192.168.1.2: 32 data bytes, Press Ctrl_C to break
From 192.168.1.2: bytes=32 seq=1 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=2 ttl=128 time=31 ms
From 192.168.1.2: bytes=32 seq=3 ttl=128 time=32 ms
From 192.168.1.2: bytes=32 seq=4 ttl=128 time=47 ms
From 192.168.1.2: bytes=32 seq=5 ttl=128 time=46 ms

--- 192.168.1.2 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/40/47 ms

PC>ping 192.168.2.1

Ping 192.168.2.1: 32 data bytes, Press Ctrl_C to break
From 192.168.2.1: bytes=32 seq=1 ttl=127 time=63 ms
From 192.168.2.1: bytes=32 seq=2 ttl=127 time=47 ms
From 192.168.2.1: bytes=32 seq=3 ttl=127 time=62 ms
From 192.168.2.1: bytes=32 seq=4 ttl=127 time=94 ms
From 192.168.2.1: bytes=32 seq=5 ttl=127 time=78 ms

--- 192.168.2.1 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 47/68/94 ms

PC>ping192.168.3.2
Invalid command!

PC>ping 192.168.3.2

Ping 192.168.3.2: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.3.2: bytes=32 seq=2 ttl=127 time=63 ms
From 192.168.3.2: bytes=32 seq=3 ttl=127 time=62 ms
From 192.168.3.2: bytes=32 seq=4 ttl=127 time=94 ms
From 192.168.3.2: bytes=32 seq=5 ttl=127 time=47 ms

--- 192.168.3.2 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/66/94 ms

PC>

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/761265.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【V8】【2. 内联函数、Slot】

什么是内联函数 在 V8 执行函数的过程中&#xff0c;会观察函数中一些调用点 (CallSite) 上的关键的中间数据&#xff0c;然后将这些数据缓存起来&#xff0c;当下次再次执行该函数的时候&#xff0c;V8 就可以直接利用这些中间数据&#xff0c;节省了再次获取这些数据的过程&…

PS图层混合模式超详细解答-图层混合模式的原理(Part2)

对比度组 叠加Overlay 此模式是正片叠底和滤色的组合&#xff0c;组合依据是底图的中性灰平面&#xff0c;如果在 [ 0 , 128 ] [0,128] [0,128]则使用正片叠底&#xff0c;若是在 ( 128 , 255 ] (128,255] (128,255]之间&#xff0c;则是实用滤色。 公式 r O v e r L a y (…

专项练习29

目录 一、选择题 1、如果修改obj里面的name属性时会发生什么&#xff1f; 2、以下代码执行后&#xff0c;a.x 和 b.x 的结果分别为&#xff08;&#xff09; 3、在ECMAScript6 中,Promise的状态有&#xff08;&#xff09; 4、下面哪些方式在同一个窗口下能够检测一个js对象是…

解决:eclipse无法查看源代码

eclipse的jdk没有配置对应的src&#xff0c;需要手动去添加jdk的源代码附件。 步骤如下&#xff1a; 1、找到以下路径&#xff1a;windows(窗口)–>Preferences(首选项)–>Java–>Installed JRES(已安装的JRE)&#xff0c;出现如下图所示的图片后&#xff0c;选中点…

15 - 信号处理设计模式

---- 整理自狄泰软件唐佐林老师课程 查看所有文章链接&#xff1a;&#xff08;更新中&#xff09;Linux系统编程训练营 - 目录 文章目录 1. Linux应用程序安全性讨论1.1 问题1.2 不同场景1.2.1 场景一&#xff1a;不需要处理信号1.2.2 场景二&#xff1a;需要处理信号 2. 场景…

SQLmap使用指南(包含使用SQLmap获取shell)

文章标题 一&#xff1a;SQLmap基础知识二&#xff1a;SQLmap各大模块中的常用命令&#xff08;一&#xff09; 基础命令&#xff08;二&#xff09; target模块&#xff08;三&#xff09; Emuneration模块&#xff08;四&#xff09;其他命令 三&#xff1a;SQLmap应用示例&a…

数据结构_进阶(2):二叉树的OJ练习题

目录 1. 二叉树创建字符串。OJ链接 2. 二叉树的分层遍历1。OJ链接 3. 二叉树的分层遍历2。OJ链接 4. 给定一个二叉树, 找到该树中两个指定节点的最近公共祖先 。OJ链接 5. 二叉树搜索树转换成排序双向链表。OJ链接 6. 根据一棵树的前序遍历与中序遍历构造二叉树。 OJ链接…

2023年NOC决赛-加码未来编程赛项决赛模拟题-Python模拟题--卷4

第一题、计算 1+2+3+⋯+(n−1)+n 的值,其中正整数 n 不大于 100。由于你没有高斯聪明,所以你不被允许使用等差数列求和公式直接求出答案。 输入格式 输入一个正整数 n。 输出格式 输出一个正整数,表示最后求和的答案。 输入输出样例 输入 #1 100 输出 #1 5050 第二…

手撕自定义类型:结构体,枚举,联合——【C语言】

在开始学习之前我们先来欣赏一下五岳之一华山的风景&#xff0c;来营造一个好心情&#xff0c;只有一个好心情我们才能更好的学习 目录 结构体 1 结构体的声明 1.1 结构的基础知识 1.2 结构的声明 1.3 特殊的声明 1.4 结构的自引用 1.5 结构体变量的定义和初始化 1.6 …

Go语言之重要数组类型切片(slice)make,append函数

切片是一个动态数组&#xff0c;因为数组的长度是固定的&#xff0c;所以操作起来很不方便&#xff0c;比如一个names数组&#xff0c;我想增加一个学生姓名都没有办法&#xff0c;十分不灵活。所以在开发中数组并不常用&#xff0c;切片类型才是大量使用的。 切片基本操作 切片…

Linux系统文件编程及文件读、写操作

Linux 系统编程Day01 文章目录 Linux 系统编程Day011.文件编程概述1.1 文件的打开及创建1.1.1 参数说明1.1.2 文件写入操作示例1.1.3 文件的权限 2.文件操作2.1 写入文件2.2 文件读取操作2.3 文件的光标移动操作 3.文件操作原理简述3.1文件描述符3.2 Linux文件操作流程 1.文件编…

【数据结构】二叉树的前中后序遍历(C语言)

文章目录 什么是二叉树树相关的概念树的表示形式特殊的二叉树如何创造出一棵二叉树二叉树的遍历先序遍历(前序遍历)中序遍历后序遍历 总结 什么是二叉树 [二叉树] 顾名思义就是有两个分支节点的树&#xff0c;不仅如此&#xff0c;除了叶子外的所有节点都具有两个分支节点&…

单个电源模块给多个负载使用,并且电源后还经过了磁珠-二级电源直流压降仿真

单个电源模块给多个负载使用,并且电源后还经过了磁珠-二级电源直流压降仿真 下面介绍单个电源模块给多个负载使用,并且电源后还经过了磁珠-二级电源直流压降仿真,常见于二级压降仿真,以下图为例

备战秋招 | 笔试强训5

目录 一、选择题 二、编程题 三、选择题题解 四、编程题题解 一、选择题 1、在上下文和头文件均正常情况下&#xff0c;以下程序的输出结果是&#xff08;&#xff09; int x 1; do {printf("%2d\n",x); }while(x--); A. 1 B. 无任何输出 C. 2 D. 陷入死循环 …

三种智能算法优化PID参数软件,MATLABAPP开发

今天的主题是&#xff1a;三种智能算法优化常见传递函数的PID参数&#xff0c;采用MATLAB APP Designer 开发。提供代码源程序&#xff0c;可以自行修改源代码&#xff08;不是封装软件&#xff09; 这个软件基本涵盖了所有的传递函数类型&#xff0c;传递函数的参数简单易改。…

【Java反射机制详解】—— 每天一点小知识

&#x1f4a7; J a v a 反射机制详解 \color{#FF1493}{Java反射机制详解} Java反射机制详解&#x1f4a7; &#x1f337; 仰望天空&#xff0c;妳我亦是行人.✨ &#x1f984; 个人主页——微风撞见云的博客&#x1f390; &#x1f433; 《数据结构与算法》专栏的文章…

pytest 参数化进阶

目录 前言&#xff1a; 语法 参数化误区 实践 简要回顾 前言&#xff1a; pytest是一个功能强大的Python测试框架&#xff0c;它提供了参数化功能&#xff0c;可以帮助简化测试用例的编写和管理。 语法 本文就赶紧聊一聊 pytest 的参数化是怎么玩的。 pytest.mark.par…

week27

这周是磨难的一周不知道NT装了多少次系统&#xff0c;删除了多少数据好消息是把BIOS和ubuntu安装地很熟练了&#xff0c;而且经过爱上了心仪的Ubuntu23.04&#xff0c;就是她了坏消息是一个学期做的笔记全都没了&#xff0c;以后不好回忆了&#xff0c;好消息是不用考试了&…

总结929

今日做了一篇阅读题&#xff0c;差点全军覆没&#xff0c;通过这篇阅读&#xff0c;主要说明了两大问题&#xff0c;一个是单词&#xff0c;背的还不够牢固&#xff0c;其二&#xff0c;语法功底还不够扎实。但说实话&#xff0c;在语法方面&#xff0c;还是下了一番功夫&#…

linux 内网批量快速传输大文件 nc

使用nc工具 传输内网宽带拉满先运行接收端 开始监听使用 ansible 拷贝脚本到其它接收端服务器批量运行接收端脚本查看nc是否运行运行发送端运行发送端脚本开始传输文件 传输内网宽带拉满 先运行接收端 开始监听 接收端脚本 re.sh #!/bin/bash #Revision: 1.0 #Author:…