当前位置: 首页 > news >正文

今天我们学习zabbix网络设备监控的配置

拓扑图

这里我们需需要要运用到GNS3这款软件作为辅助,安装完GNS3后需要添加上一个三层交换机。

开始配置

先远程连接R1机,选择Telnet模式主机为127.0.0.1,端口为2001

先进入全局模式

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

启用ip路由

R1(config)#ip routing

配置端口ip并打开

R1(config)#int f0/0
R1(config-if)#no swit
R1(config-if)#no switchport 
R1(config-if)#
R1(config-if)#ip add
R1(config-if)#ip address 192.168.1.254 255.255.255.0
R1(config-if)#no shutdown
R1(config)#int f0/1
R1(config-if)#
R1(config-if)#
R1(config-if)#no swi
R1(config-if)#no switchport 
R1(config-if)#
R1(config-if)#
R1(config-if)#ip ad
R1(config-if)#ip add
R1(config-if)#ip address 10.0.0.1 255.255.255.252
R1(config-if)#
R1(config-if)#no shu
R1(config-if)#no shutdown 

配置静态ip路由,这条命令告诉 R1: 要到达 192.168.2.0/24 这个网络,需要将数据包发送给 10.0.0.2 这个地址。

R1(config)#ip route 192.168.2.0 255.255.255.0 10.0.0.2

查看 R1 的路由表

R1(config)#do show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set10.0.0.0/30 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, FastEthernet0/1
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S    192.168.2.0/24 [1/0] via 10.0.0.2

综上R2的配置同理

R2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#
R2(config)#ip routi
R2(config)#ip routing 
R2(config)#
R2(config)#
R2(config)#
R2(config)#int f0/0
R2(config-if)#
R2(config-if)#no swi
R2(config-if)#no switchport 
R2(config-if)#
R2(config-if)#
R2(config-if)#ip add
R2(config-if)#ip address 192.168.2.254 255.255.255.0
R2(config-if)#
R2(config-if)#
R2(config-if)#no shu
R2(config-if)#no shutdown 
R2(config-if)#
*Mar  1 00:40:55.807: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
R2(config-if)#exit
R2(config)#
R2(config)#int f0/1
R2(config-if)#
R2(config-if)#no swi
R2(config-if)#no switchport 
R2(config-if)#
R2(config-if)#
R2(config-if)#ip add
R2(config-if)#ip address 10.0.0.2 255.255.255.252
R2(config-if)#
R2(config-if)#no shu
R2(config-if)#no shutdown 
R2(config-if)#
*Mar  1 00:41:35.123: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
R2(config-if)#exit
R2(config)#
R2(config)#
R2(config)#ip route
% Incomplete command.R2(config)#ip route 192.168.1.0 255.255.255.0 10.0.0.1
R2(config)#
R2(config)#do show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set10.0.0.0/30 is subnetted, 1 subnets
C       10.0.0.0 is directly connected, FastEthernet0/1
S    192.168.1.0/24 [1/0] via 10.0.0.1
C    192.168.2.0/24 is directly connected, FastEthernet0/0

测试用虚拟机ping内部的每个端口ip,如果都能ping通则无误

虚拟机

加个主机(作为监控,可监控其他主机,这台主机要安装zabbix。安装流程见上一课)

网页访问:192.168.1.2:8080 (出现zabbix网页)

到这里应用zabbix连接上192.168.1.2就可以实现监控了

http://www.dtcms.com/a/598445.html

相关文章:

  • NRBO-XGBoost+SHAP分析+新数据预测!机器学习可解释分析不在发愁!提供9种混沌映射方法(tent、chebyshev、singer等)
  • 两学一做教育网站家政服务app软件开发
  • 网站建设必学课程企业文化包括哪些内容
  • Poco: 一个功能丰富、易于使用的跨平台C++开发框架(FTP上传下载、断点续传等)
  • 网站建设学什么专业网络营销的发展前景
  • 做公众号首图网站wordpress禁止访问模版页面
  • 如何更新Dev-C++到最新版本?
  • 传统文化信息|文化管理|基于java的传统文化信息管理系统设计与实现(源码+数据库+文档)
  • 【题解】[GESP样题 七级] 迷宫统计
  • 丰台广州网站建设tomcat 建网站
  • 基于 GEE 利用 WorldPop 数据集批量导出 100 米分辨率人口影像数据与时序分析
  • 《实施意见》推动新场景应用:乡村政务场景如何借AI破局
  • 哪有专做飞织鞋面的网站做网站内容需要自己填的
  • 文山州住房和城乡建设局网站建筑工程网格化
  • 用Canvas画出你的第一个网页小游戏
  • ProfiNet转ModbusTCP工业级数据采集网关保障增压站无人值守
  • 网站最上面标题怎么改成都市四方建设工程监理有限公司网站
  • 重庆本地网站有哪些公司邮箱怎么查询
  • xtuoj 素数
  • 静态路由综合实验【实验报告】
  • 电影网站这么做关键词电子产品展示网站
  • 新加坡网站建设公司涡阳在北京做网站的名人
  • JavaScript面试手写题(持续更新)
  • 网站首页的head标签内wordpress标题太长
  • SpringMVC整理
  • 网站会员发展计划ip安装wordpress
  • 【计算思维】蓝桥杯STEMA 科技素养考试真题及解析 5
  • 网站创建软件画质优化app下载
  • 什么做网站成都微信网站制作
  • 如何本地搭建网站新浪微博登录网页版