This procedure is only with cable, not for wifi
First check that your interface is up with the command “sudo ifconfig” :
You may not have an IP Adress automatically like in this screenshot. If it’s the case, simply type “sudo dhclient eth1” to get one with DHCP.
If it doesn’t work, try to directly ping an IP address like google’s dns server 188.8.131.52 with the command “ping 184.108.40.206“. If it works, you probably have a nameserver problem. Simply add the line “nameserver 220.127.116.11” in /etc/resolv.conf