After I restart the network, I can not ping the IP now.

asked 2017-12-14 05:52:11 -0500

liaodalin19903 gravatar image

I have a CentOS7.2 server, on it I have 103.35.202.1 -> 103.35.202.5, five public IPs.

And I deploy openstack on the server, I set the provider sub network to this:

image description

Please pay attention now I have set the allocation_pools start to 103.35.202.2, before is 103.35.202.1, so you can ignore the after snapshot. you just think its start=103.35.202.1 .

use the ip a shows the ips:

image description

You can see, there the enp2s0f0 and brq1ba4f98d-64 all have 103.35.202.1 -> 103.35.202.5.

So, there comes the trouble, in the /etc/sysconfig/network-scripts/enp2s0f0, I commented out the 103.35.202.2 -> 103.35.202.5's IPADDR* and PREFIX*, then restart the network:

systemctl restart network

Now, it restart success, but I can not ping the 103.35.202.1 now in my local PC.

I then remove the comments, then restart the network, still can not ping it.

image description

edit retag flag offensive close merge delete

Comments

My thinking: You used to have a setting that allowed you to access the OpenStack server from your PC. By restarting the network, you overwrote this setting.

Perhaps the routing table. Or enp2s0f0 must be a member of that bridge, and lost that membership. Now two interfaces have the same addresses.

Bernd Bausch gravatar imageBernd Bausch ( 2017-12-15 00:01:11 -0500 )edit