Show you routing table, ip, check firewall
Code:
ifconfig -a
iptables -L
route -n
It should show something like that
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Can you ping router and external IP?
Code:
ping 192.168.1.1
ping 217.30.152.149
If yes, then problem will be DNS.
Check that your DNS is working, for example
Code:
nmap -PN -p 53 127.0.0.1
nmap -PN -p 53 192.168.1.1
or
dig @127.0.0.1 google.com
dig @192.168.123.1 google.com