RSR如何IP+MAC绑定
功能介绍
功能介绍
当分析出网络中某台机器中毒时而有不知道它的具体位置,我们可以通过获取其MAC地址然后在交换机上禁止其MAC来达到隔离它的效果。
通过ARP表查询IP地址对应的MAC地址,再将该MAC地址加入黑名单过滤。
全局配置模式下
configure terminal
创建用户,配置用户名为test用户,密码为test,权限为15级
username test privilege 15 password 0 test
打开本地认证方式
authentication line vty login local
配置特权密码testpassword
enable password level 15 testpassword
配置示例:
dxdiag
systeminfo
wmic bios
wmic cpu
wmic cpu list brief
wmic memorychip
wmic memorychip list brief
wmic memcache list brief
wmic diskdrive
wmic logicaldisk
fsutil volume diskfree 盘符号 (例 c:)
wmic nic list brief
>Enable
进入特权模式#Exit
返回上一级操作模式#End
返回到特权模式#write memory
或copy running-config startup-config
保存配置文件#del flash:config.text
删除配置文件(交换机及1700系列路由器)#erase startup-config
删除配置文件(2500系列路由器)#del flash:vlan.dat
删除Vlan配置信息(交换机)#Configure terminal
进入全局配置模式(config)# hostname switchA
配置设备名称为switchA(config)#banner motd &
配置每日提示信息 &为终止符(config)#enable secret level 1 0 star
配置远程登陆密码为star(config)#enable secret level 15 0 star
配置特权密码为star(config)#enable services web-server
开启交换机WEB管理功能show running-config
查看当前生效的配置信息show interface fastethernet 0/3
查看F0/3端口信息show interface serial 1/2
查看S1/2端口信息show interface
查看所有端口信息show ip interface brief
以简洁方式汇总查看所有端口信息show ip interface
查看所有端口信息show version
查看版本信息show mac-address-table
查看交换机当前MAC地址表信息show running-config
查看当前生效的配置信息show vlan
查看所有VLAN信息show vlan id 10
查看某一VLAN (如VLAN10)的信息show interface fastethernet 0/1 switchport
查看某一端口模式(如F 0/1)show aggregateport 1 summary
查看聚合端口AG1的信息show spanning-tree
查看生成树配置信息show spanning-tree interface fastethernet 0/1
查看该端口的生成树状态show port-security
查看交换机的端口安全配置信息show port-security address
查看地址安全绑定配置信息show ip access-lists listname
查看名为listname的列表的配置信息show access-lists
(config)#Interface fastethernet 0/3 进入F0/3的端口配置模式
(config)#interface range fa 0/1-2,0/5,0/7-9 进入F0/1、F0/2、F0/5、F0/7、F0/8、F0/9的端口配置模式
(config-if)#speed 10 配置端口速率为10M,可选10,100,auto
(config-if)#duplex full 配置端口为全双工模式,可选full(全双工),half(半双式),auto(自适应)
(config-if)#no shutdown 开启该端口
(config-if)#switchport access vlan 10 将该端口划入VLAN10中,用于VLAN
(config-if)#switchport mode trunk 将该端口设为trunk模式,用于Tag vlan,可选模式为access , trunk
(config-if)#port-group 1 将该端口划入聚合端口AG1中,用于聚合端口
Windows10系统中自带了windows defender杀毒软件,也就是Windows安全中心。
步骤一:准备工作
1.使用certutil
Router(config)#no logging console //如果你通过console连接,使用第一条
Router(config)#no logging monitor //如果通过telnet,ssh之类连接就用第二条
rack01r1(config)#no logging buffered //这个是关闭缓存