Can ping dlink router but no internet

twentytwo

New Member
Jan 18, 2020
28
0
1
38
Australia
Hi,

I switched my ISP modem/router to D-Link Cobra modem/router and can connect to the internet from different devices but when I tried to ping google.com via server command failed to reach the site but can ping the router successfully. What info do I need to present to you guys to analyise and steps I need to do to get the server connect to the internet and receive update?

Extracted content from interfaces

auto lo
iface lo inet loopback

iface eno2 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.1.190
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports eno2
bridge_stp off
bridge_fd 0

iface enp6s0 inet manual
 
Do you have DNS setup correctly?
can you ping 8.8.8.8 ?
 
The server response to ping 8.8.8.8 and the result is here.

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=36.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=35.9 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=35.10 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=36.1 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=54 time=36.1 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=54 time=35.10 ms
^C
--- 8.8.8.8 ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 12ms
rtt min/avg/max/mdev = 35.939/36.019/36.130/0.171 ms

I am not sure which step to check DNS setup? Mind I ask how ?
 
usually on UNIX and Linux systems you write the DNS-servers in the file '/etc/resolv.conf'
e.g.

Code:
search proxmox.com
nameserver 8.8.8.8
 
I edited the resolv.conf file, saved and reboot the system. pinged response to google.com is working. Thank you.

The original file was

search thirtythree.io
nameserver 127.0.0.1

I assume that the original nameserver is for local setup ? I am confuse to why the original file does not work but the edited version does. Can you clarify the different between the two?
 
127.0.0.1 is the loopback-ip - i.e. one bound on your server.

Setting this as DNS-server has as prerequisite that you have a DNS-server running on the machine (e.g. unbound)

setting it to 8.8.8.8 makes you use the publicly available DNS provided by google.


I hope this explains it!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!