技术标签: ensp实验分类
====================================
2台路由器为AR1220
两台S3700交换机
2台pc机
================================================================================================
pc1 192.168.1.2/24
pc2: 192.168.3.2/24
================================================================================================
<Huawei>system-view //进系统视图
[Huawei]sysname AR-1 //修改主机名为AR-1
[AR-1]interface GigabitEthernet 0/0/0 //进g0/0/0接口
[AR-1-GigabitEthernet0/0/0]ip address 192.168.1.1 24 //配置IP地址和子网掩码
[AR-1-GigabitEthernet0/0/0]int g0/0/1 //从g0/0/0切换到g0/0/1
[AR-1-GigabitEthernet0/0/1]ip address 192.168.2.1 24 //配置ip地址和子网掩码
================================================================================================
[AR-1]dis ip int bri //查看IP地址
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 0Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.1/24 up up 查看重点
GigabitEthernet0/0/1 192.168.2.1/24 up up 查看重点
NULL0 unassigned up up(s)
[AR-1]ip route-static 192.168.3.0 24 192.168.2.2 //配置静态路由
=====================================================================================
<Huawei>system-view //进系统视图
[Huawei]sysname AR-2 //修改主机名为AR-2
[AR-2]interface GigabitEthernet 0/0/0 //进g0/0/0接口
[AR-2-GigabitEthernet0/0/0]ip address 192.168.3.1 24 //配置IP地址和子网掩码
[AR-2-GigabitEthernet0/0/0]int g0/0/1 //从g0/0/0切换g0/0/1
[AR-2-GigabitEthernet0/0/1]ip address 192.168.2.2 24 //配置IP地址和子网掩码
==========================================================================================
[AR-2]dis ip int brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 0Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.3.1/24 up up 重点查看
GigabitEthernet0/0/1 192.168.2.2/24 up up 重点查看
NULL0 unassigned up up(s)
[AR-2]ip route-static 192.168.1.0 24 192.168.2.1 //配置静态路由
=========================================================================================
[AR-1]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 11 Routes : 11Destination/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.1 GigabitEthernet
0/0/0
192.168.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/0
192.168.2.0/24 Direct 0 0 D 192.168.2.1 GigabitEthernet
0/0/1
192.168.2.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.2.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.3.0/24 Static 60 0 RD 192.168.2.2 GigabitEthernet 这是查看的核心
0/0/1
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
=========================================================================================
用pc1去pingpc2 是ping不通的
PC>ping 192.168.3.1Ping 192.168.3.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
Request timeout!
Request timeout!
Request timeout!
Request timeout!--- 192.168.3.1 ping statistics ---
5 packet(s) transmitted
0 packet(s) received
100.00% packet loss
================================================================================================
AR-1:
[AR-1]ip route-static 192.168.3.0 24 192.168.2.2
AR-2:
[AR-2]ip route-static 192.168.1.0 24 192.168.2.1
================================================================================================
[AR-2]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 11 Routes : 11Destination/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 Static 60 0 RD 192.168.2.1 GigabitEthernet 这是查看的核心
0/0/1
192.168.2.0/24 Direct 0 0 D 192.168.2.2 GigabitEthernet
0/0/1
192.168.2.2/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.2.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet
0/0/1
192.168.3.0/24 Direct 0 0 D 192.168.3.1 GigabitEthernet
0/0/0
192.168.3.1/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
================================================================================================
PC>ping 192.168.3.1
Ping 192.168.3.1: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.3.1: bytes=32 seq=2 ttl=254 time=110 ms
From 192.168.3.1: bytes=32 seq=3 ttl=254 time=62 ms
From 192.168.3.1: bytes=32 seq=4 ttl=254 time=31 ms
From 192.168.3.1: bytes=32 seq=5 ttl=254 time=32 ms--- 192.168.3.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 0/58/110 ms
此项目是上古项目,代码基本很难维护,现在发布出来仅供参考思路,感兴趣的可以根据原理重构一版,实现一个更完备的可视化编辑友情提醒:不建议在团队内投入大量精力做类似的事情(企图一步到位改变开发现状),与行业里用 AI 切页面类似,尽量作为玩具把玩一下即可。Github 地址:github.com/xinyu198736…线上实例xinyu198736.github.io/antd-vi...
这是在我研究相对布局和绝对布局的时候顺带发现的。我们都知道,普通的Android界面如图所示,从上到下依次是statusbar,actionbar,内容,虚拟按键。要获取状态栏高度,一种比较常规的做法是: private int getStatusBarHeight(Context context) { int result = 0;
cdmkdir.pipcd.pipcat>pip.conf<<EOF[global]index-url=http://mirrors.aliyun.com/pypi/simple/[install]trusted-host=mirrors.aliyun.comEOFconda源国内只有清华有,修改源只需输入如下两行命令:...
《Android 基础教程(第3版)》Ed BurnetteAndroid在其android.graphics包中提供了完整的本机二维图形库:ColorAndroid中的颜色用4个数字表示(Alpha, Red, Green, Blue)1. int color = Color.BLUE;2. color = Color.argb(127, 255, 0, 255);3. xml资源文件中定义: //...#7fff00ff //...PaintPanit类是Android本机图形库中最重要的类
查找图片中隐藏的flag执行代码import requestsimport threadingimport timea=[]q=time.time()def ctf(i,se): se.acquire() res=requests.get("http://localhost/111/image/{}.jpg".format(str(i))) b=res.content # if i==272: # print(b) if b'flag'
etree.HTML():构造了一个XPath解析对象并对HTML文本进行自动修正。etree.HTML模块可以自动修正HTML文本etree.tostring():输出修正后的结果,类型是bytestostring()方法即可输出修正后的HTML代码,但是结果是bytes类型。这里利用decode()方法将其转成str类型代码如下content = html.xpath(...
一、下载MysqlMysql下载地址:https://dev.mysql.com/downloads/mysql/二、卸载Linux自带的mariadb 安装Mysql之前需要卸载mariadb的安装包rpm -qa | grep mariadb 查看是否存在rpm -e mariadb-libs-5.5.56-2.el7.x86_64 --nodeps 卸...
CONCAT(str1,str2,…) 返回结果为连接参数产生的字符串。如有任何一个参数为NULL ,则返回值为 NULL。注意:如果所有参数均为非二进制字符串,则结果为非二进制字符串。 如果自变量中含有任一二进制字符串,则结果为一个二进制字符串。一个数字参数被转化为与之相等的二进制字符串格式;若要避免这种情况,可使用显式类型 cast, 例如:SELECT CO
这篇博客记录我第一次使用python完成图像识别作业时遇到的各种问题。新手向一.各种project包版本问题问题描述:在我们完成自己程序的时候,往往需要学习前辈们的代码。一般来讲,新的Python包可以兼容旧版本。但因为Python的迭代更新速度过快,也有例外发生,原有的代码很可能在新的python环境(Interpreter)中无法运行,而在python上使用pip下载的时候,旧有的包很可能已经不再提供下载地址。解决方案:方法一:手动下载安装说明中requireme...
在数学和信号处理中,希尔伯特变换(Hilbert transform)是一个对函数产生定义域相同的函数的线性算子。在inter ipp 库中有实现该算法,示例如下:IppStatus hilbert(Ipp32f* pInputDat, Ipp32fc* pOutDat,int iLen){ int n; IppStatus status; IppsHilbertSp...
1. 卷积概念卷积的过程:如下图所示,用一个3*3的卷积核在5*5的图像上做卷积的过程。卷积核如下,大小3*3,在原图上滑动的步长为1。(求解过程是:对应位置相成,然后相加) 我们再看一个在三通道图像上的卷积过程,如下:计算步骤解释如下,原图大小为7*7,通道数为3:,卷积核大小为3*3,Input Volume中的蓝色方框和Filter W0中红色方框的对应...