Friday, October 11, 2024

CentOS7 snmp 配置

1. 安装 snmp

yum install net-snmp

如果系统版本较老,可修改yum源为阿里云的镜像源(参考下面链接)


2. 备份 snmpd 配置文件

cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak

 

3. 修改 snmpd 配置文件

vi  /etc/snmp/snmpd.conf

以下为参考截图


 

4. 启动 snmpd 服务,并设置为开机启动

systemctl start snmpd

systemctl enable snmpd



firewalld 开放端口 161-162/udp

firewall-cmd --zone=public --add-port=161-162/udp --permanent

firewall-cmd --reload

firewall-cmd --list-all


snmpwalk 命令参考

snmpwalk -v 2c -c community字符串  ip地址   .1.3.6.1.4



参考:

https://www.alibabacloud.com/help/en/ecs/support/the-yum-command-fails-with-the-http-error-404-not-found-trying-other-mirror-prompt

https://blog.csdn.net/weixin_44112083/article/details/141128069 

https://www.cnblogs.com/lewisat/p/17939890

 


 

Friday, September 27, 2024

华为三层交换机作为DHCP服务器发现大量IP地址冲突问题

网络概况:

华为三层交换机作为无线系统核心交换机使用,无线系统部署的方式是AC旁挂+AP本地转发


现象:

1. 手机在跟着人走动的情况下,一般会触发漫游,IP地址不会变化。实际情况是手机IP地址频繁发生变化,都是在发生漫游之后

2. 使用命令 display ip pool 发现DHCP地址池存在大量IP地址冲突

 


解决方案:

可能是开启地址池ping探测功能,使用命令 dhcp server ping packet 0 关闭即可


参考:

https://support.huawei.com/enterprise/zh/knowledge/EKB1000071991


CentOS7 snmp 配置

1. 安装 snmp yum install net-snmp 如果系统版本较老,可修改yum源为阿里云的镜像源(参考下面链接) 2. 备份 snmpd 配置文件 cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak   3. 修改 s...