当前位置:网站首页>Handling process of the problem that the virtual machine's intranet communication Ping fails
Handling process of the problem that the virtual machine's intranet communication Ping fails
2022-07-26 02:17:00 【Qiang Junen】
One 、 Problem description
During a business cutover , It is found that part of the virtual machine Intranet can ping through , part ping No access to the scene , Especially like partition or isolation in network virtualization , And a host appears ping Gateway and 127.0.0.1 The echo unknown host The situation of , But it's normal ping localhost, Nothing else ping, But the host is not disabled ping, And telnet The port of the new address of the same network segment , Communication is normal , Prove that network communication should be normal . See below for details .
Two 、 process analysis
1、 Check whether it is forbidden ping
cat /proc/sys/net/ipv4/icmp_echo_ignore_all //1 For prohibition ping

2、ping Local address test :
ping gw // no , There is a problem with the gateway ,ip Address conflict or mac Address conflict
ping 127.0.0.1 // Show unknown host, Maybe the network card driver is not working properly , namely tcp/ip Agreement question , Or firewall problems
3、 see network service , Although the service is normal , But there is an error : The problem of network inaccessibility


Report errors :
SIOCADDRT: Network is unreachable
RTNETLINK answers: File exists
The above error is usually the default gateway problem , Cause inaccessibility .ping Take a look at the gateway , however ping The connection of does not mean that the next hop of the route can be made .
4、 View network card information :
lspci|grep -i eth
// Confirm whether the network card is connected
mii-tool eh0 // Normal display link ok
// Check the network card work mos
ethtool eth0

5、 Configure temporary ip Address
ifconfig eth0 172.16.18.2 netmask 255.255.255.0
# For network card sub interface , It can be executed as follows
ifconfig eth0:1 172.16.18.2 netmask 255.255.255.0
6、 After restarting the network card, multiple gateway addresses are always displayed , Including manual configuration of static network card , The last few checks were issued /etc/sysconfig/static-routes, The old gateway address is written in , That is, the priority of the configuration file is higher than the static network card configuration , Restart after modification network After service , The gateway address is normal .
7、 After testing, the virtual machine intranet ping Still not , Check the security team , increase icmp Normal after the admission rules .
8、 About involving ping The echo unknown host That virtual machine , It is also found that execution yum Report errors :
/usr/lib64/python2.7/site-packages/rpm/_rpm.so: undefined symbol: rpmpkgVerifySigs
Reference resources : attach 1、 attach 2 Handle , This has not been verified in this case , Please leave a message if you have verified , Feedback related effects .
边栏推荐
- I.MX6UL核心模块使用连载-USB接口测试 (六)
- 我来图书馆小程序一键签到和一键抢位置工具
- 2022.7.25-----leetcode.919
- [C language brush leetcode] 1462. curriculum IV (m)
- Programming basic environment variable setting of in-house SOC
- Advantages of composition API
- [2019] [paper notes] tunable THz broadband absorption based on metamaterials——
- What is JSX?
- Be careful about bitmap, the "memory Assassin"~
- How to choose cloud note tool? What can I do with cloud notes?
猜你喜欢

Implementation of Ti am335x industrial control module network and file system nfs

I.MX6UL核心模块使用连载-触摸屏校准 (九)

1. Mx6ul core module serial -iot-6ulx core module brief introduction (I)

Design and driver transplantation of matrix keyboard circuit of Ti am335x industrial control module

1. Mx6ul core module serial WiFi test (VIII)

1. Mx6ul core module use serial -rs485 test (x)
![[xxl-job] xxl-job learning](/img/2c/d3872983e4228a3ef52a9d1bef836e.png)
[xxl-job] xxl-job learning

Postman reported JSON serialization error

c# 单元测试
![[cloud native] 4.1 Devops foundation and Practice](/img/09/5423540d0a4a11bc7162c5ab343a4d.png)
[cloud native] 4.1 Devops foundation and Practice
随机推荐
18.删除链表的倒数第n个节点
TI AM335x工控模块网络跟文件系统NFS的实现
How to choose cloud note tool? What can I do with cloud notes?
转:高效做正确的事
1. Mx6ul core module uses serial EMMC read / write test (IV)
1. Mx6ul core module use serialization - view system information (II)
租户问题。
I.MX6UL核心模块使用连载-RTC测试 (十二)
Implementation of C iterator
19_请求表单与文件
obsidian移动端PC段同步
Arm assembly foundation of SOC
I.MX6UL核心模块使用连载-以太网测试 (七)
Sword finger offer 28. symmetric binary tree
【LeetCode】32、 最长有效括号
19_ Request forms and documents
1. Mx6ul core module uses serial can and buzzer test (XI)
C unit test
本地仓库导致的报错
MySQL(4)