⑴ 查看交换机最新日志命令是:show log ,怎么一下就能看到最新的日志,命令是什么
如果log日志过多的话可以使用管道符筛选,比如log显示格式 为Aug 24 11:21:05.355:这种正常日期格式,那么你可以使用show log | in Aug 这样看到的就是8月份的log,自己匹配就行了
⑵ 博科300光纤交换机支持syslog日志输出吗
笔记本键盘出现了按键失灵情况,这种情况多是由于软件原因或键盘串键、短路或其他硬件故障等原因造成的,导致其他按键失灵,建议您可以做如下检查确认故障进行尝试: 1.开机出现SAMSUNG 图标时按F2键进入BIOS设置,按F9键将BIOS恢复为出厂模式,按F10保存并重启。 2.用U盘或光盘启动进入PE或Dos模式中确认是否可用。 3.开机出现系统图标前快速按F8键进入安全模式后进行尝试,确认是否为系统或软件故障引起。 4.查看按键下是否有异物,如有异物建议您将机器倒置或摇晃,也可请使用毛刷,、镊子、气吹等工具进行简单的清除(注意不要损坏按键下支架,不建议非专业人员尝试,以避免更严重的损坏)。若情况严重建议您送至售后服务中心由专业工程师进行清洁维修。 5.确认键盘是否曾有浸液史、确认失灵按键按下后是否可正常弹起,若发生过浸液或不能正常弹起则需要到售后服务中心,由工程师帮助您进一步检查与维修。 6.重新安装操作系统尝试(提示您先备份重要数据与资料)。 7.若您需临时使用,也可连接USB键盘使用。
⑶ IBM光纤交换机如何输入命令
HP B24光纤交换机配置Zone
系统要求:使用WEB方式连接,配置机器需要安装有JAVA
光纤交换机默认的IP地址:10.77.77.77
默认的子网掩码:255.255.255.0
给配置机器配置一个和光纤交换机相同网段的IP地址.
例如:10.77.77.50/24
把网线一端插入光前交换机的网络配置口,
备注:光纤交换机上有2个管理口,1个是用串口方式,这里使用的是IP管理口.
使用IE,直接键入:10.77.77.77
输入用户名和密码.
默认用户名:admin
默认密码:password
下图为初试界面
点击界面左侧的 Zone Admin
6.下图为Zone Admin的界面
7先点击红线标出的Zone,然后点击绿线标出New Zone,会出现输入Zone Name 的对话框.
8. 先选择Zone名称,然后把交换机的端口添加进Zone内.
9. 然后创建Zone Congfig组
10. 选择congfig名称,然后把配置好的Zone添加进congfig中
11. 然后Save Config ,然后Enable Config
⑷ 关于思科交换机的日志输出问题
你还要在交换机上设置snmptrap,说白了就是当交换机的某些状态变化时自动发一条消息给syslog服务器。
在我的3750上面默认有如下的trap
sw01(config)#snmp-serverenabletraps?
clusterEnableClustertraps
configEnableSNMPconfigtraps
-configEnableSNMPconfig-traps
entityEnableSNMPentitytraps
fru-
hsrpEnableSNMPHSRPtraps
mac-
port-
snmpEnableSNMPtraps
stpxEnableSNMPSTPXMIBtraps
syslogEnableSNMPsyslogtraps
vlan-
vtpEnableSNMPVTPtraps
<cr>
如果开启的话,上面的配置每发生一次变化就会发送一条消息出去。IOS版本不一样,支持的trap有多有少。
在配置模式下输入snmp-serverenabletraps就开启了。但是还得加点条件。
比如说接收trap的服务器地址:snmp-serverhost192.168.x.xtrapsxxxxx
把命令帖完格式全变了,给你帖个图上来吧。
⑸ 求交换机、路由器命令大全!
锐捷网络 配置命令 和CISCO 基本一样 自己总结的
交换机
密码
1234(config)#enable secret level 1 0 100
1234(config)#enable secret level 15 0 100
远程登入密码
1234(config)#line vty 0 4
1234(config-line)#password 100
1234(config-line)#end
交换机管理IP
1234(config)#interface vlan 1
1234(config-if)#ip address 192.168.1.10 255.255.255.0
1234(config-if)#no shutdown
修改交换机老化时间
1234(config)#mac-address-table aging-time 20
1234(config)#end
添删vlan
1234(config)#vlan 888
1234(config-vlan)#name a888
1234(config)#no vlan 888
添加access口
1234(config)#interface gigabitEthernet 0/10
1234(config-if)#switchport mode access
1234(config-if)#switchport access vlan 10
切换assess trunk
1234(config-if)#switchport mode access
1234(config-if)#switchport mode trunk
指定特定一个native vlan
1234(config-if)#switchport trunk native vlan 10
配置trunk口的许可vlan列表
1234(config-if)#switchport trunk allowed vlan ?
add Add VLANs to the current list
all All VLANs
except All VLANs except the following
remove Remove VLANs from the current list
速成树协议
1234(config)#spanning-tree
1234(config)#spanning-tree mode rstp/stp
配置网关:
switch(config)#ip default-gateway 192.168.1.254
交换机基本配置-常见查看命令
查看CPU利用率
show cpu
查看交换机时钟
show clock
查看交换机日志
show logging
查看交换机动态学习到的MAC地址表
show mac-address-table dynamic
查看当前交换机运行的配置文件
show running-config
查看交换机硬件、软件信息
show version
查看交换机的arp表
show arp
显示接口详细信息的命令
show interfaces gigabitEthernet 4/1 counters
接口配置
Switch(config)#interface gigabitethernet 0/1
把接口工作模式改为光口。
Switch(config-if)#medium-type fiber
把接口工作模式改为电口。
Switch(config-if)#medium-type copper
速度/双工配置
进入接口配置模式。
Switch(config)#interface interface-id
设置接口的速率参数,或者设置为auto。
Switch(config-if)#speed {10 | 100 | 1000 | auto }
设置接口的双工模式。
Switch(config-if)#plex {auto | full | half}
例子
Switch(config)#interface gigabitethernet 0/1
Switch(config-if)#speed 1000
Switch(config-if)#plex full
光口不能修改速度和双工配置,只能auto。
在故障处理的时候,如果遇到规律性的时断时续或掉包,在排除其他原因后,可以考虑是否和对端设备的速率和双工模式不匹配,尤其是两端设备为不同厂商的时候。
VLAN
建立VLAN 100
Switch (config)#vlan 100
该VLAN名称为ruijie
Switch (config)#name ruijie
将交换机接口划入VLAN 中:
range表示选取了系列端口1-48,这个对多个端口进行相同配置时非常有用。
Switch (config)#interface range f 0/1-48
将接口划到VLAN 100中。
Switch (config-if-range)#switchport access vlan 100
将接口划回到默认VLAN 1中,即端口初始配置。
Switch (config-if-range)#no switchport access vlan
Switch(config)#interface fastEthernet 0/1
该端口工作在access模式下
Switch(config-if)#switchport mode access
该端口工作在trunk模式下
Switch(config-if)#switchport mode trunk
Switch(config)#interface fastEthernet 0/2
设定VLAN要修剪的VLAN。
Switch(config-if)#switchport trunk allowed vlan remove 2-9,11-19,21-4094
取消端口下的VLAN修剪。
Switch(config-if)#no switchport trunk allowed vlan
生成树
开启生成树协议。
Switch(config)#spanning-tree
禁止生成树协议。
Switch(config)#no spanning-tree
配置生成树优先级:
配置设备优先级为4096。
Switch(config)#spanning-tree priority 4096
数值越低,优先级别越高。
端口镜像
配置G0/2为镜像端口。
Switch (config)# monitor session 1 destination interface G 0/2
配置G0/1为被镜像端口,且出入双向数据均被镜像。
Switch (config)# monitor session 1 source interface G 0/1 both
去掉镜像1。
Switch (config)# no monitor session 1
端口聚合
Switch(config)#interface fastEthernet 0/1
把端口f0/1加入到聚合组1中。
Switch (config-if)#port-group 1
把端口f0/1从聚合组1中去掉
Switch (config-if)#no port-group 1
建立ACL:
建立ACL访问控制列表名为ruijie,extend表示建立的是扩展访
Switch(config)# Ip access-list exten ruijie
问控制列表。
添加ACL的规则:
禁止PING IP地址为192.168.1.1的设备。
Switch (config-ext-nacl)#deny icmp any 192.168.1.1 255.255.255.0
禁止端口号为135的应用。
Switch (config-ext-nacl)# deny tcp any any eq 135
禁止协议为www的应用。
Switch (config-ext-nacl)#deny udp any any eq www
允许所有行为。
Switch(config-ext-nacl)# permit ip any any
将ACL应用到具体的接口上:
Switch (config)#interface range f 0/1
把名为ruijie的ACL应用到端口f 0/1上。
Switch (config-if)#ip access-group ruijie in
从接口去除ACL。
Switch (config-if)#no ip access-group ruijie in
删除ACL:
删除名为ruijie的ACL。
Switch(config)#no Ip access-list exten ruijie
增加ACE项后,是增加到ACL最后,不可以中间插入,如果要调整ACE的顺序,必须整个删除ACL后再重新配置。
端口安全
Switch (config)#interface range f 0/1
开启端口安全。
Switch(config-if)# switchport port-security
关闭端口安全。
Switch(config-if)# no switchport port-security
设置端口能包含的最大安全地址数为8。
Switch(config-if)# switchport port-security maximum 8
在接口fastethernet0/1配置一个安全地址00d0.f800.073c,并为其绑定一个IP地址192.168.1.1
Switch(config-if)# switchport port-security mac-address 00d0.f800.073c ip-address 192.168.1.1
删除接口上配置的安全地址。
Switch(config-if)#no switchport port-security mac-address 00d0.f800.073c ip-address 192.168.1.1
防ARP攻击
IP和MAC地址的绑定
Switch(config)#arp ip-address hardware-address [type] interface-id
Switch(config)#arp 192.168.12.111 00d0.f800.073c arpa g 0/1
绑定网关
进入指定端口进行配置。
Switch(config)#Interface interface-id
配置防止ip-address的ARP欺骗。
Switch(config-if)#Anti-ARP-Spoofing ip ip-address
防STP攻击
进入端口Fa0/1。
Switch(config)# inter fastEthernet 0/1
打开该端口的的BPDU guard功能。
Switch(config-if)# spanning-tree bpguard enable
关闭该端口的的BPDU guard功能。
Switch(config-if)# spanning-tree bpguard diaable
端口关闭后只能shutdown然后再no shutdown
或者重新启动交换机才能恢复!
防DOS/DDOS攻击
进入端口Fa0/1。
Switch(config)# inter fastEthernet 0/1
预防伪造源IP的DOS攻击的入口过滤功能。
Switch(config-if)#ip deny spoofing-source
关闭入口过滤功能只能在三层接口上配置。
Switch(config-if)#no ip deny spoofing-source
和ACL不能同时存在。
端口关闭后只能shutdown然后再no shutdown
或者重新启动交换机才能恢复!
防IP扫描攻击配置:
打开系统保护。
Switch(config)#system-guard enable
关闭系统保护功能。
Switch(config)#no system-guard
DHCP配置
打开DHCP Relay Agent:
Switch(config)#service dhcp
配置DHCP Server的IP地址:
Switch(config)#ip helper-address address
VRRP配置
Switch(config)#Interface interface-id
Switch(config-if)#Standby [group-number] ip ip-address
设置虚拟机的优先级。
standby [group-number] priority priority
三层交换机配置
SVI:
把VLAN 10配置成SVI。
switch (config)#interface vlan 10
给该SVI接口配置一个IP地址
switch (config-if)#ip address 192.168.1.1 255.255.255.0
Routed Port:
switch (config)#interface fa 0/1
把f 0/1变成路由口。
switch (config-if)#no switch
路由配置:
添加一条路由。
switch (config)#ip route 目的地址 掩码 下一跳
switch (config)#ip route 210.10.10.0 255.255.255.0 218.8.8.8
WEB登录口令(特权模式口令)
enable password 1234
telnet登录口令
line vty 0 4
password 1234
重启
reload
恢复出厂配置
del config.text
reload
端口监控
mirror master lan 2 slave lan 0 all
DHCP配置
ip dhcp pool ruijie
network 192.168.1.0 255.255.255.0
dns-sever 202.101.98.55
default-router 192.168.1.1
exit
exit
虚拟服务器
ip nat in sou sta tcp 192.168.0.254 80 61.154.28.207 80 per
DNS中继
ip nat ap so list 99 de udp 192.168.1.1 53 de 202.96.64.68 53
SNTP配置
sntp enable
sntp interval 600
sntp server 128.9.176.30
DNS配置
ip domain-lookup
ip name-server 202.101.98.55
线路检测配置
int f1/0
keepalive dns 202.101.98.55
int f1/1
keepalive ping 61.154.28.193
VPN类型
PPTP
L2TP
IPSec
路由设置
一 电信网通双线
ip route 0.0.0.0 0.0.0.0 61.154.28.193
ip route 58.16.0.0 255.255.0.0 61.134.96.1 网通路由表
二 双线 内部划分
access-list 3100 permit ip 192.168.1.2 192.168.1.15 any
access-list 3101 permit ip 192.168.1.16 192.168.1.254 any 定义类型
ip default-route list 3100 out-interface f1/0
ip default-route list 3101 out-interface f1/1 指定出口
vlan划分
int fa0/0.1
encapsulation dot1q 1
ip address 192.168.10.1 255.255.255.0
vlan part 0
exit
int fa0/0.2
encapsulation dot1q 2
ip address 192.168.20.1 255.255.255.0
vlan port 1
日志功能开启
service timestamps log datetime
service sequence-numbers
防攻击
security anti-wan-attack level high
security anti-lan-attack
限制NAT会话数
ip nat translation per-user 0.0.0.0 200
IP限速
ip nat translation rate-limit ip 0.0.0.0 in 500 out 1000
MAC/IP地址绑定
arp 192.168.0.254 00d0.f800.0001 arpa
arp scan 192.68.1.2 192.168.1.254 int f0/0
arp convert int f0/0
定时发送免费ARP
int f0/0
arp gratuious-send interval 1 10
exit
int f1/0
arp gratuious-send interval 1 10
智能防ARP欺骗功能
security anti-arp-spoof
txt格式下载地址:http://bbs.51cto.com/thread-180504-1.html
⑹ 笔记本电脑如何查看交换机的日志
1、首先你要开启交换机的日志功能,logging on
2、然后用命令查看show logging buffer 查看最近的日志,
3、如果你要所有日志就只有建立日志服务器,
4、如果你网内有linux或者unix服务器就方便了,只需启动一个服务,修改几个参数,
⑺ 如何导入导出交换机配置
用TFTP、FTP或者用web管理页面导入导出。实在不行还可以在命令行使用dis cur命令导出。
⑻ 如何查看交换机日志文件
1、首先双击打开robotframework的操作界面,选择打开tools选项中的run tests设置。
⑼ 我用超级终端调试交换机,结束后想把我使用过的命令输出到一个文本中,应该怎么操作
有2个方法:
1、用securcRT这个软件,可以设置为把结果输出到文件。
2、将超级终端的缓冲设置大点,然后把结果全选、复制就行了
⑽ 光纤存储交换机查看日志命令
Brocade SAN交换机常用命令
使用电脑连接管理网口,默认IP地址为:192.168.0.1,掩码:255.255.255.0
默认用户名:admin,默认密码password
1. switchStatusShow
查看交换机的总体健康状态
switch:admin> switchstatusshow
Switch Health Report
Switch Name: SWFCR
IP address: 10.33.54.176
SwitchState: MARGINAL
Duration: 863:23
Power supplies monitor MARGINAL
Temperatures monitor HEALTHY
Fans monitor HEALTHY
WWN servers monitor HEALTHY
Standby CP monitor HEALTHY
Blades monitor HEALTHY
Flash monitor HEALTHY
Marginal ports monitor HEALTHY
Faulty ports monitor HEALTHY
Missing SFPs monitor HEALTHY
All ports are healthy
switch:admin>
2. switchShow
查看交换机基本配置信息
Enter the switchShow command, which displays the following information for a switch:
- switchname - The switch name.
- switchtype - The switch model and firmware version numbers.
- switchstate - The switch state: Online, Offline, Testing, or Faulty.
- switchrole - Displays the switch role: Principal, Subordinate, or Disabled.
- switchdomain - Displays the switch Domain ID.