LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-12-2017, 04:38 AM   #1
Linuxlova
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Rep: Reputation: Disabled
Hi, I am facing problem with my ethernet interface. Help Me!


ifconfig
enp3s0 Link encap:Ethernet HWaddr b8:ae:ed:78:37:a3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:5968 errors:0 dropped:0 overruns:0 frame:0
TX packets:5968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:654449 (654.4 KB) TX bytes:654449 (654.4 KB)
 
Old 10-12-2017, 04:41 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
What problem?

$ sudo dhclient -4 -v enp3s0
 
Old 10-12-2017, 04:48 AM   #3
Linuxlova
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
I cant connect using an ethernet connection.
Please tell me where to look
The output of command that you posted is:
sudo dhclient -4 -v enp3s0
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/enp3s0/b8:ae:ed:78:37:a3
Sending on LPF/enp3s0/b8:ae:ed:78:37:a3
Sending on Socket/fallback
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 3 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 5 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 6 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 11 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 11 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 19 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 9 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 15 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 19 (xid=0x6175a66b)
DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 15 (xid=0x6175a66b)

The output goes on like this
 
Old 10-12-2017, 05:52 AM   #4
Linuxlova
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Let me know if anything is required
 
Old 10-12-2017, 05:57 AM   #5
Linuxlova
LQ Newbie
 
Registered: Aug 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
dmesg | grep -e eth -e r8169
[ 1.909946] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 1.909963] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 1.916985] r8169 0000:03:00.0 eth0: RTL8168h/8111h at 0xffffc900003e4000, b8:ae:ed:78:37:a3, XID 14100800 IRQ 310
[ 1.916990] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 2.018144] r8169 0000:03:00.0 enp3s0: renamed from eth0
[ 13.010611] r8169 0000:03:00.0 enp3s0: link down
[ 13.010628] r8169 0000:03:00.0 enp3s0: link down
 
Old 10-12-2017, 06:00 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,592

Rep: Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163Reputation: 4163
What linux distribution/version are you running?

How is the computer connected to your network?
 
Old 10-12-2017, 03:11 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,961

Rep: Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402Reputation: 3402
Is it plugged in? Any lights on nic?
 
Old 10-12-2017, 04:56 PM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,893

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Quote:
Originally Posted by Linuxlova View Post
dmesg | grep -e eth -e r8169
[ 1.909946] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 1.909963] r8169 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 1.916985] r8169 0000:03:00.0 eth0: RTL8168h/8111h at 0xffffc900003e4000, b8:ae:ed:78:37:a3, XID 14100800 IRQ 310
[ 1.916990] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[ 2.018144] r8169 0000:03:00.0 enp3s0: renamed from eth0
[ 13.010611] r8169 0000:03:00.0 enp3s0: link down
[ 13.010628] r8169 0000:03:00.0 enp3s0: link down
I have something similar - but different (no name changing going on)
Code:
dmesg | grep -e eth -e r8169
[    1.363834] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    1.363845] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    1.364095] r8169 0000:02:00.0: irq 72 for MSI/MSI-X
[    1.364272] r8169 0000:02:00.0 eth0: RTL8168f/8111f at 0xffffc90000c70000, 2c:4d:54:4f:a1:06, XID 08000800 IRQ 72
[    1.364275] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[   18.445915] r8169 0000:02:00.0: firmware: direct-loading firmware rtl_nic/rtl8168f-1.fw
[   18.539604] r8169 0000:02:00.0 eth0: link down
[   18.539620] r8169 0000:02:00.0 eth0: link down
[   18.539701] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   21.033989] r8169 0000:02:00.0 eth0: link up
[   21.034002] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Depending on your version of Linux, you may just need some firmware for the ethernet connection.
 
1 members found this post helpful.
Old 10-12-2017, 07:59 PM   #9
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,498
Blog Entries: 28

Rep: Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434
Please provide some additional detail. For example:

Are you trying to connect via ethernet cable or wireless? DHCP or static ip?

If ethernet, have you checked that the cable is properly seated at both ends? If so, try substituting a known-good cable.

If wireless, it would appear that the wireless chipset is not detected (there is no WLAN0). Running the command lspci in a terminal should show which wireless chipset is installed.

The more information you provide, the easier it is for others to help you.
 
Old 10-13-2017, 03:36 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
# mii-tool enp3s0

You might be missing firmware as previously suggested.

$ dmesg | grep -i firmware

Otherwise you have bad hardware. Missing or bad ethernet cable? The machine on the other end of the cable doesn't have it's interface configured, or any number of potentials.

# arp -vn -i enp3s0

Might help you see what's on the other side of the cable in case you need to static IP your configuration.
 
Old 10-13-2017, 02:25 PM   #11
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
+1 didn't say what linux

the ifconfig line proves linux "likes" the nebulous network attachment

> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

proves no traffic on the interface

run dhclient, yes

$ routed # may help you out

plug in your cable, check if lights light up on both sides and blink (damn i hate chinese cards without the traffic light!)

are you CAT5 cable attaching, usb, wifi?

lan cables are mass produced and often fail. you might have, say, two bad cables not just one bad cable

i assumed you tried pinging your in-home router to the internet (do so when checking your lights, and RX/TX will increment if any packets are sent/received successfully)

Last edited by X-LFS-2010; 10-13-2017 at 02:27 PM.
 
Old 10-14-2017, 05:08 PM   #12
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,435

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by Linuxlova View Post
ifconfig
enp3s0 Link encap:Ethernet HWaddr b8:ae:ed:78:37:a3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
An observation: enp3s0 appears to have no IP address [inet addr:] configured...
 
Old 10-15-2017, 12:31 AM   #13
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Yes, that is the problem. The interface has no IP. Is it attached to a DHCP server, like a router or ISP? Are you using network-manager?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help me !!! ethernet 1 interface problem... blueapexkr Linux - Newbie 1 12-09-2008 03:33 AM
Problem in bring ethernet interface up sanjibgupta Linux - Networking 1 01-08-2008 02:06 AM
Problem detecting the ethernet interface indu.a Linux - Kernel 6 11-22-2006 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration