Knowledgebase

Portal Home > Knowledgebase > Articles Database > No connection to internet: Centos 7


No connection to internet: Centos 7




Posted by 3FRSB, 01-18-2016, 11:59 PM
Hi, I'm using centos 7 on my cloudstack host. This is minimal installation. I can ping gateway and other host in same segment. I have put dns ip in /etc/resolv.conf and restart network. I also put in ifcfg-ifcfg-enp13s0f0. But still cannot ping to outside. Any idea where i need to search out? Thanks.

Posted by sanlinux, 01-19-2016, 01:23 AM
This can be due to multiple reasons.. could you paste the content of file enp13s0f0 here.. and also run this command 'ifconfig -a' and paste the output..

Posted by net, 01-19-2016, 01:31 AM
You might need to check your gateway too.

Posted by 3FRSB, 01-19-2016, 02:29 AM
Actually this is cause of bridge. Single NIC cannot share multiple IP. If share then network won't goes up. If up, cannot ping gateway also. Seems it became crazy.

Posted by RobertJP, 01-19-2016, 03:19 AM
Hello, you shoud be able to use multiple IP's on the same NIC without problems. If you PM me i can prolly help you out ( noticed from your other post that you're trying to build a firewall ).

Posted by Srv24x7, 01-19-2016, 04:26 AM
Can you please check I have a doubt "ifcfg-ifcfg-enp13s0f0" there should only ifcfg-enp13s0f0. Please confirm. To be able to ping to the outside public, you go to have a public IP assigned to your NIC. If you want both public and private IP, you can assign multiple IPs to same physical network: ifcfg-enp13s0f0 Add something like below: IPADDR0="" IPADDR1="" Restart the network after this change and use the below command to check the IP status to the network interface. ip addr

Posted by teeps, 01-19-2016, 08:00 AM
Can you paste your ifcfg-* interfaces configuration? and output of ip a and ip r commands with it?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
backup twice in a day (Views: 592)


Language:

Contact us