You are not logged in.

#1 2018-09-12 11:43:46

OctaVive
Member
Registered: 2017-01-03
Posts: 26

[SOLVED ]ping 8.8.8.8 Network Unreachable

Hi guys,

Today I attempted to set a static IP in /etc/dhcpcd.conf. I got a static IP and it works. However, I cant ping anywhere. If I ping www.google.com I get "ping: google.com: Temporary failure in name resolution". How do I fix this?

dhcpcd.conf last 4 lines

interface ens33
static ip_address=192.168.249.253
static domain_name_servers=8.8.8.8 8.8.4.4
static routers=192.168.249.0

ip addr:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:bd:2e:0e brd ff:ff:ff:ff:ff:ff
    inet 192.168.249.253/24 brd 192.168.249.255 scope global noprefixroute ens33
       valid_lft forever preferred_lft forever
    inet6 fe80::fb5a:6daa:6a9f:df6d/64 scope link
       valid_lft forever preferred_lft forever


ip route:

192.168.249.0/24 dev ens33 proto dhcp scope link src 192.168.249.253 metric 202


SOLVED:

I had this config file:
interface ens33
static ip_address=192.168.249.253
static domain_name_servers=8.8.8.8 8.8.4.4
static routers=192.168.249.0

and when I booted up a Windows machine I realized that the default gateway is wrong. So I changed it to:

interface ens33
static ip_address=192.168.249.253
static domain_name_servers=8.8.8.8 8.8.4.4
static routers=192.168.249.2

Last edited by OctaVive (2018-09-12 12:05:15)

Offline

#2 2018-09-12 11:47:56

knopwob
Member
From: Hannover, Germany
Registered: 2010-01-30
Posts: 239
Website

Re: [SOLVED ]ping 8.8.8.8 Network Unreachable

Can you ping other hosts within your network? It looks like you're missing a default route.

Offline

#3 2018-09-12 11:55:57

OctaVive
Member
Registered: 2017-01-03
Posts: 26

Re: [SOLVED ]ping 8.8.8.8 Network Unreachable

knopwob wrote:

Can you ping other hosts within your network? It looks like you're missing a default route.

I can succesfully ping from a Windows machine to my Arch machine with no errors.

Last edited by OctaVive (2018-09-12 11:58:43)

Offline

#4 2018-09-12 12:04:17

OctaVive
Member
Registered: 2017-01-03
Posts: 26

Re: [SOLVED ]ping 8.8.8.8 Network Unreachable

SOLVED: I booted up a Windows machine to see whats its saying there, the default gateway is not 192.168.249.0, but it is 192.168.249.2. I changed this in dhcpcd.conf and it works!

Offline

Board footer

Powered by FluxBB