You are not logged in.

#1 2018-11-17 09:34:44

techiehere
Member
Registered: 2018-11-17
Posts: 10

Network is unreachable

I am Installing Arch linux in my pc via ethernet , ping command is not working ,it say "network is unreachable" and it says temporary failure in name resolution whrn i ping www.google.com . Earlier i have installed Arch linux in virtual box it worked very fine.

Offline

#2 2018-11-17 10:14:39

Haller
Member
Registered: 2018-04-08
Posts: 45

Re: Network is unreachable

Post the output of "ip a".
How do you connect to the internet (ethernet or wlan)?

Offline

#3 2018-11-17 10:31:36

techiehere
Member
Registered: 2018-11-17
Posts: 10

Re: Network is unreachable

I am using Ethernet

below is the link of a photo which contains output of "ip a"
https://drive.google.com/file/d/16U_-2A … sp=sharing

Offline

#4 2018-11-17 11:08:39

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Network is unreachable

So the interface is detected properly you just don't have an IP address yet.

Try...

dhcpcd enp2s0

Did you connect the cable after you'd booted the install media?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2018-11-17 11:13:02

techiehere
Member
Registered: 2018-11-17
Posts: 10

Re: Network is unreachable

No. It was connect before i booted the usb.
When i run the command "dhcpcd enp2s0"
it say
sending commands to master dhcpcd process.

Offline

#6 2018-11-17 14:30:19

Haller
Member
Registered: 2018-04-08
Posts: 45

Re: Network is unreachable

Is another network service running? Show the output of "systemctl --type=service".

Offline

#7 2018-11-17 14:41:18

techiehere
Member
Registered: 2018-11-17
Posts: 10

Re: Network is unreachable

Offline

#8 2018-11-17 17:00:51

Haller
Member
Registered: 2018-04-08
Posts: 45

Re: Network is unreachable

disable the service dhcpcd@enp2s0, reboot, start dhcpcd like Slithery said and post the output.

Offline

#9 2018-11-17 17:15:28

techiehere
Member
Registered: 2018-11-17
Posts: 10

Re: Network is unreachable

I have disabled the dhcpcd then rebooted then started dhcpcd as Slthery said and here is the output.
https://drive.google.com/file/d/1S7tsPn … sp=sharing

Offline

#10 2018-11-17 17:16:16

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Network is unreachable

Disabling a service on an immutable live disk doesn't do anything.

Offline

#11 2018-11-17 17:43:09

techiehere
Member
Registered: 2018-11-17
Posts: 10

Re: Network is unreachable

What should I do next? Please help me.

Offline

#12 2018-11-17 21:23:08

Haller
Member
Registered: 2018-04-08
Posts: 45

Re: Network is unreachable

Scimmia wrote:

Disabling a service on an immutable live disk doesn't do anything.

I didn't realize that it is the live disk. Sorry. ^^

What does journalctl -u dhcpcd@enp2s0 say?

Offline

#13 2018-11-18 01:21:46

petruknisme
Member
Registered: 2015-11-24
Posts: 12

Re: Network is unreachable

Hi,

Is your network support for dhcp? If not, you can set static ip instead of dhcp. Also check for resolv.conf

https://wiki.archlinux.org/index.php/Ne … IP_address

Offline

#14 2018-11-19 06:48:01

sincomil
Member
Registered: 2018-02-13
Posts: 106

Re: Network is unreachable

It seems that you have no DHCP-server on your network, so set your IP-aaddress manually and then try to ping your router IP-address, also you have to set dns-server in /etc/resolv.conf, at least to:

nameserver 8.8.8.8

Offline

#15 2018-11-19 08:19:41

Haller
Member
Registered: 2018-04-08
Posts: 45

Re: Network is unreachable

sincomil wrote:

It seems that you have no DHCP-server on your network, so set your IP-aaddress manually and then try to ping your router IP-address, also you have to set dns-server in /etc/resolv.conf, at least to:

nameserver 8.8.8.8

According to #3, he doesn't have an IP address...

Offline

#16 2018-11-19 10:31:59

sincomil
Member
Registered: 2018-02-13
Posts: 106

Re: Network is unreachable

Haller, FYI DHCP-server (if it present on the local network) is that "tricky thing" that performs network configuration of other devices on the network: giving an IP-address lease, setting a gateway for LAN,  auto-configuring a proxy for browser, notifying about ntp-servers and many many more settings. If your network have no DHCP-server (it can be simply disabled feature on the wi-fi router) so you have to configure all of that things with your own hands. That's what I'm saying

Offline

Board footer

Powered by FluxBB