LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Manjaro (https://www.linuxquestions.org/questions/manjaro-119/)
-   -   I can't connect to internet (via ethernet) from Manjaro NET Install ISO (https://www.linuxquestions.org/questions/manjaro-119/i-cant-connect-to-internet-via-ethernet-from-manjaro-net-install-iso-4175597529/)

Juan Lucas 01-15-2017 05:02 PM

I can't connect to internet (via ethernet) from Manjaro NET Install ISO
 
Hi there :)

I got a new computer and want to install manjaro net edition on it, but I can't connect to internet from it.
I know the NIC and cables are working fine because I can connect to internet from a Debian installation on the same computer (On Debian I had to edit a little bit /etc/network/interfaces file to get it working)
My dhcpcd.conf file looks like this: https://hastebin.com/raw/warocaqeda

I tried running dhcpcd and dhclient -4 -v but they return

Code:

dev: loaded udev
DUID 00:01:00:01:20:0e:92:da:40:8d:5c:18:90:27
enp5s0: IAID 5c:18:90:27
enp5s0: soliciting an IPv6 router
enp5s0: soliciting a DHCP lease
enp5s0: using IPv4LL address 169.254.180.236
enp5s0: adding route to 169.254.0.0/16
forked to background, child pid 1730`

and

Code:

Internet Systems Consortium DHCP Client 4.3.4
Copyright 2004-2016 Internet Systems Consortium.
All rigts reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp5s0/40:8d:5c:18:90:27
Sending on  LPF/enp5s0/40:8d:5c:18:90:27
Sending on  Socket/fallback
DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on enp5s0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

respectively, and, after that, ping 8.8.8.8 returns Destination Host Unreachable

This is my ifconfig output:
https://hastebin.com/raw/mofiyisiqe

ethtool enp5s0 output:
https://hastebin.com/raw/efimakadag

lpsci -v output:
https://hastebin.com/raw/tepotujosi

dmesg | grep r8169 output:
https://hastebin.com/raw/vivehewova

ip link output:
https://hastebin.com/raw/ewadutugod

Could you help me to get connected?

Thanks in advance :)

TheEzekielProject 01-15-2017 05:09 PM

If you are trying to run both dhcpcd and dhclient they are likely conflicting.
Code:

dev: loaded udev
DUID 00:01:00:01:20:0e:92:da:40:8d:5c:18:90:27
enp5s0: IAID 5c:18:90:27
enp5s0: soliciting an IPv6 router
enp5s0: soliciting a DHCP lease
enp5s0: using IPv4LL address 169.254.180.236
enp5s0: adding route to 169.254.0.0/16
forked to background, child pid 1730

is expected output for dhcpcd

Juan Lucas 01-15-2017 07:19 PM

But after running dhcpcd, I run ping 8.8.8.8 and get

Code:

From 169.254.180.236 icmp_seq=1 Destination Host Unreachable
From 169.254.180.236 icmp_seq=2 Destination Host Unreachable
From 169.254.180.236 icmp_seq=3 Destination Host Unreachable
From 169.254.180.236 icmp_seq=4 Destination Host Unreachable
From 169.254.180.236 icmp_seq=5 Destination Host Unreachable
From 169.254.180.236 icmp_seq=6 Destination Host Unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
.
.
.

D:

Shouldn't I get a message of 'leased <some address> for 86400 seconds' or something like that?

TheEzekielProject 01-15-2017 08:05 PM

In your first post you said the output of dhcpcd returned what I quoted in my initial response, which seems to indicate that it received a lease from your router. What is the output of
Code:

ip a

Juan Lucas 01-15-2017 08:56 PM

That Is the output of dhcpd, but, it never says that it received a lease :O , it just says that is using IPv4LL address 169.254.180.236 (which is useless :P).
'ip a' output is
Code:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    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: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 40:8d:5c:18:90:27 brd ff:ff:ff:ff:ff:ff
    inet 164.254.180.236/16 brd 169.254.255.255 scope global enp5s0
      valid_lft forever preferred_lft forever
    inet6 fe80::48f9:5417:28cb:8d63/64 scope link
      valid_lft forever preferred_lft forever


TheEzekielProject 01-15-2017 09:11 PM

Code:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    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: enp5s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 40:8d:5c:18:90:27 brd ff:ff:ff:ff:ff:ff
    inet 164.254.180.236/16 brd 169.254.255.255 scope global enp5s0
      valid_lft forever preferred_lft forever
    inet6 fe80::48f9:5417:28cb:8d63/64 scope link
      valid_lft forever preferred_lft forever

Indicates that you have one.
These lines
Code:

enp5s0: soliciting a DHCP lease
enp5s0: using IPv4LL address 169.254.180.236
enp5s0: adding route to 169.254.0.0/16

show it was successful as well

Try
Code:

ping -c 2 www.google.com

Juan Lucas 01-15-2017 09:58 PM

IP addresses within the block 169.254.0.0/16 are link-local addresses. Link-local addresses are assigned to interfaces by host-internal, i.e. stateless, address autoconfiguration when other means of address assignment are not available.

As I said, the output of 'ping 8.8.8.8' is:

Code:

From 169.254.180.236 icmp_seq=1 Destination Host Unreachable
From 169.254.180.236 icmp_seq=2 Destination Host Unreachable
From 169.254.180.236 icmp_seq=3 Destination Host Unreachable
From 169.254.180.236 icmp_seq=4 Destination Host Unreachable
From 169.254.180.236 icmp_seq=5 Destination Host Unreachable
From 169.254.180.236 icmp_seq=6 Destination Host Unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
.
.
.


TheEzekielProject 01-15-2017 10:15 PM

Sorry, I missed that that was a link local address. Try with the option
Code:

--noipv4ll
Meaning the dhcpcd command

Juan Lucas 01-16-2017 05:07 PM

Tried adding --noipv4ll parameter, but no luck; I still get the same output :(

TheEzekielProject 01-16-2017 05:35 PM

That's strange. Is it still assigning a link local address even with that option? You might try putting it in your dhcp.conf and see if that makes a difference. If it's still assigning it a link local address, it seems for some reason must not be reading dhcp.conf

Jjanel 01-17-2017 01:43 AM

Hmmm... need to 'dig out' the 'hidden clue' here (but I don't have definitive way, sorry)

Manjaro is usually 'pretty good' (I VBox'ed manjaro-net-16.06.1-i686.iso per early LQ recomendation)

To clarify, what is running (&your output posted from) is the .iso (not a 'modified' install), I assume.

What [exact] "edit a little bit" was needed to make Debian work? Any ISP details relevant?
(when my 'unfriendly' wifi ISP refuses to 'lease' me a 192.168.6.x, I get [random?] 169.254..)

Can you run [either] dhcpClient with more/max verbose debugging? Extreme: tcpdump?


All times are GMT -5. The time now is 12:34 PM.