CentOS8 in Private Clouds use static ip cannot ping external host

Issues related to configuring your network
Post Reply
User avatar
ejzhang
Posts: 3
Joined: 2019/11/02 04:07:32

CentOS8 in Private Clouds use static ip cannot ping external host

Post by ejzhang » 2020/01/14 01:02:48

I installed a CentOS8 cloud host on a private cloud server, The IP address automatically assigned to the cloud host by DHCP service of the private cloud server can ping the external host, but when i setting a static address different from the automatically assigned IP address will ping external hosts.
What is happend, thank you!

User avatar
jlehtone
Posts: 2878
Joined: 2007/12/11 08:17:33
Location: Finland

Re: CentOS8 in Private Clouds use static ip cannot ping external host

Post by jlehtone » 2020/01/14 07:29:09

What makes you think that you could change/add addresses?

User avatar
ejzhang
Posts: 3
Joined: 2019/11/02 04:07:32

Re: CentOS8 in Private Clouds use static ip cannot ping external host

Post by ejzhang » 2020/01/15 00:36:34

Yes, i add a public address to host, then it's ok. thank you very much!

lightman47
Posts: 1154
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: CentOS8 in Private Clouds use static ip cannot ping external host

Post by lightman47 » 2020/01/15 22:27:51

... don't think it works quite that way ...
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

tunk
Posts: 722
Joined: 2017/02/22 15:08:17

Re: CentOS8 in Private Clouds use static ip cannot ping external host

Post by tunk » 2020/01/16 11:31:58

When pinging, do you use IP address or DNS name?
If the latter and you haven't done it, you have to specify DNS server(s).

Post Reply

Return to “CentOS 8 - Networking Support”