Choose style:

Author Topic: Ethernet Problems  (Read 3831 times)

0 Members and 1 Guest are viewing this topic.

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Ethernet Problems
« on: February 08, 2017, 10:54:29 am »
The other day I bought a Cat5 lead & over the last day or so I have been trying to connect my laptop to the internet via the router. This is the first time I have tried this. I have connected via my phone both by tethered USB & mobile Wi-Fi hotspot & also via Wi-Fi to the broadband router - all with Network Manager - no real problems - Ethernet & Wi-Fi cards configured out the box when I installed Pepp 7  :)

Connected the laptop to the router with the Cat5 cable & set up & configured a new NM profile for eth0 interface - very basic settings:
 Connection Name: Router, Device:eth0(xx:xx:xx:xx:xx:xx),IPv4: Automatic (DHCP), IPv6:Ignore
Cant remember if I rebooted or not but was connected . Also the Default Profile was also there, pretty much the same settings as for the "Router" profile above & I was also able to connect with that one too. I'm not sure but here why the start of my problems lie because I thought, not unreasonably, I don't need 2 identical profiles - so I deleted the "Wired Ethernet 1" (Default) one, when I next booted the laptop - no eth0 connection.  ???

As far as can see if is down & I don't know to get it up:

Spoiler (click here to view / hide)
Code: [Select]
mick@mick-Inspiron-1501 ~ $ ip a
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: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether yy:yy:yy:yy:yy:yy brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.2/24 brd 192.168.0.255 scope global dynamic wlan0
       valid_lft 81598sec preferred_lft 81598sec
    inet6 xxxx:xxxx:xxxx:x:xxxx:xxxx:xxxx:xxxx/xx scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 yyyy:yyyy:yyyy:y:yyyy:yyyy:yyyy:yyyy/yy scope global noprefixroute dynamic
       valid_lft 6747sec preferred_lft 3147sec
    inet6 zzzz::zzzz:zzzz:zzzz:zzzz/zz scope link
       valid_lft forever preferred_lft forever
Code: [Select]
mick@mick-Inspiron-1501 ~ $ nmcli dev status
DEVICE  TYPE      STATE        CONNECTION
wlan0   wifi      connected    xxxxxxxxxx   
eth0    ethernet  unavailable  --         
lo      loopback  unmanaged    --

Code: [Select]

mick@mick-Inspiron-1501 ~ $ sudo lshw -C network
[sudo] password for mick:
  *-network               
       description: Network controller
       product: BCM4311 802.11b/g WLAN
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:05:00.0
       version: 01
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=b43-pci-bridge latency=0
       resources: irq:18 memory:c0200000-c0203fff
  *-network
       description: Ethernet interface
       product: BCM4401-B0 100Base-TX
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:08:00.0
       logical name: eth0
       version: 02
       serial: xx:xx:xx:xx:xx:xx
       size: 10Mbit/s
       capacity: 100Mbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=b44 driverversion=2.0 duplex=half latency=64 link=no multicast=yes port=twisted pair speed=10Mbit/s
       resources: irq:21 memory:c0300000-c0301fff
  *-network
       description: Wireless interface
       physical id: 2
       logical name: wlan0
       serial: yy:yy:yy:yy:yy:yy
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=b43 driverversion=4.4.0-62-generic firmware=666.2 ip=192.168.0.2 link=yes multicast=yes wireless=IEEE 802.11bg
[close]

 -I've read up & tried a few thing to try to get it working, reinstate a "Wired Ethernet 1"(Default) profile in NM & also change my "Router" profile name to "Wired Ethernet 1", manual configuration of IPs in NM & on the router (re-booting both after)

Done:
Code: [Select]
mick@mick-Inspiron-1501 ~ $ nmcli connection up "Wired Ethernet 1"
Error: Connection activation failed: No suitable device found for this connection.

Also done:
Code: [Select]
sudo modprobe b44

and then rebooted

And:

Code: [Select]
sudo cp /var/lib/NetworkManager/NetworkManager.state /var/lib/NetworkManager/NetworkManager.state.bak
sudo systemctl stop NetworkManager.service
rm /var/lib/NetworkManager/NetworkManager.state
sudo systemctl start NetworkManager.service

So I am where I should of come in the first place - just thought I may be able to work it out for myself - anyone help me out?
Cheers  :)
« Last Edit: February 09, 2017, 06:22:32 pm by Bigouef »

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3814
  • Karma: 299
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Ethernet Problems
« Reply #1 on: February 08, 2017, 11:25:13 am »
Hi Bigouef,

It's strange you say this, I had problem connecting to the Ethernet this morning.  My solution was to turn off my modem and my computer, wait a minute, and then turn my modem and computer back on again.  Bigouef, have you tried turning your modem off and then turning it back on again?

perknh
We're all Peppermint users and that's what matters  ;).  -- AndyInMokum

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Ethernet Problems
« Reply #2 on: February 08, 2017, 12:40:18 pm »
I'm kind of surprised your system doesn't appear to be using "predictable network interface names" and is still using "eth0" and "wlan0" .. have do done something to force this ?

Anyway, what's the output from:
Code: [Select]
ls -a /etc/NetworkManager/system-connections
and
Code: [Select]
ifconfig
and
Code: [Select]
lspci -vnn | grep -i net
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: Ethernet Problems
« Reply #3 on: February 08, 2017, 02:53:25 pm »
Evening Perknh
Thanks for your response - No I haven't done that - I have only rebooted both will do it after I have responded to Mark  ;)

And evening to you to  Mark - Cheers for piping up  :)

Quote
I'm kind of surprised your system doesn't appear to be using "predictable network interface names" and is still using "eth0" and "wlan0" .. have do done something to force this ?

Not that I am aware of - what would I have done to do this? Is it a problem? both interfaces appear to clearly & accurately identified?

Here's the info you asked for:

Code: [Select]
mick@mick-Inspiron-1501 ~ $ ls -a /etc/NetworkManager/system-connections
.  ..  517835  Moto G Tethered  PAJOIARO  Wired Ethernet 1

Code: [Select]
mick@mick-Inspiron-1501 ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx 
          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)
          Interrupt:21

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:907 errors:0 dropped:0 overruns:0 frame:0
          TX packets:907 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:78562 (78.5 KB)  TX bytes:78562 (78.5 KB)

wlan0     Link encap:Ethernet  HWaddr yy:yy:yy:yy:yy:yy 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:18362 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17353 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:17211010 (17.2 MB)  TX bytes:2130136 (2.1 MB)

Code: [Select]
mick@mick-Inspiron-1501 ~ $ lspci -vnn | grep -i net
05:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11b/g WLAN [14e4:4311] (rev 01)
08:00.0 Ethernet controller [0200]: Broadcom Corporation BCM4401-B0 100Base-TX [14e4:170c] (rev 02)

The Ethernet card is recognised in Network Manager:

http://imgur.com/a/byEs5

And I don't know if this is of any use but this is my /etc/network/interfaces file:

Code: [Select]
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

In my trawling through forums I have seen eth0 listed here too  :-\

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Ethernet Problems
« Reply #4 on: February 08, 2017, 03:12:03 pm »
Okay I take it YOU modified the reply here:-

Quote
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          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)
          Interrupt:21

?

If you run:
Code: [Select]
sudo pluma "/etc/NetworkManager/system-connections/Wired Ethernet 1"
does it contain a line
mac-address=xx:xx:xx:xx:xx:xx
with the same address as the one reported by ifconfig ?



Quick question - Roughly how long is this ethernet cable ?
« Last Edit: February 08, 2017, 03:14:55 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: Ethernet Problems
« Reply #5 on: February 08, 2017, 03:54:20 pm »
Quote
Okay I take it YOU modified the reply here:-

Indeed I did Mark - I didn't think you were supposed to publicise your Mac addresses?

Yes the mac address  is the same - only difference is the letters are capitalised in the file:

Code: [Select]
[connection]
id=Wired Ethernet 1
uuid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
type=ethernet
interface-name=eth0
permissions=
secondaries=

[ethernet]
duplex=full
mac-address=xx:xx:xx:xx:xx:xx
mac-address-blacklist=

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ip6-privacy=0
method=auto

Cable is 10m

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: Ethernet Problems
« Reply #6 on: February 08, 2017, 03:59:40 pm »
Hello Perknh
Just to let you know I tried what you said - infact I left the laptop & the router switched off for about 10/15 mins but no joy I'm afraid  :-\

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3814
  • Karma: 299
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Ethernet Problems
« Reply #7 on: February 08, 2017, 04:15:26 pm »
Hello Perknh
Just to let you know I tried what you said - infact I left the laptop & the router switched off for about 10/15 mins but no joy I'm afraid  :-\

That's too bad, Bigouef.  That would have been such a simple solution.  It's just a coincidence that we both lost connectivity around the same time.  PCNetSpec, I'm sure, will figure this mystery out. ;)

I thought it might have had something to do with a wayward update of some sort.

perknh
« Last Edit: February 08, 2017, 04:18:23 pm by perknh »
We're all Peppermint users and that's what matters  ;).  -- AndyInMokum

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Ethernet Problems
« Reply #8 on: February 08, 2017, 04:45:00 pm »
Are you sure this isn't just the cable ?

Have you tried a different ethernet socket on the router ?

Can you install ethtool:
Code: [Select]
sudo apt-get install ethtool
Then post the output from:
Code: [Select]
sudo ethtool eth0



If you haven't got an active internet connection to install ethtool, download one of these 2 files on a PC that *has* got a connection:-

32bit Peppermint 7
http://cz.archive.ubuntu.com/ubuntu/pool/main/e/ethtool/ethtool_4.5-1_i386.deb

64bit Peppermint 7
http://cz.archive.ubuntu.com/ubuntu/pool/main/e/ethtool/ethtool_4.5-1_amd64.deb

Transfer it to the Peppermint 7 PC, and double-click it to install.
« Last Edit: February 08, 2017, 05:21:02 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline perknh

  • Trusted User
  • Hero
  • *****
  • Posts: 3814
  • Karma: 299
  • Soy un huevo, nada más.
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Ethernet Problems
« Reply #9 on: February 08, 2017, 05:02:47 pm »
I've been following the thread, PCNetSpec.  I was curious, so I ran the last command, but it didn't work for me.  I got this message instead:

Code: [Select]
perknh@peppermint ~ $ sudo ethtool eth0
[sudo] password for perknh:
sudo: ethtool: command not found
We're all Peppermint users and that's what matters  ;).  -- AndyInMokum

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Ethernet Problems
« Reply #10 on: February 08, 2017, 05:14:23 pm »
Code: [Select]
sudo apt-get install ethtool

Cheers perknh, I'll add this to the post above.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Bigoeuf

  • Member
  • ***
  • Posts: 170
  • Karma: 12
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 7 (64bit)
Re: Ethernet Problems
« Reply #11 on: February 08, 2017, 05:37:22 pm »
Quote
Are you sure this isn't just the cable ?

Have you tried a different ethernet socket on the router ?

Well all can say about the cable is it has worked (as I said in my OP). Its brand new and I have handled it with care (no bends, kinks or pulling of connectors) & unfortunately it is the only one I have.I have tried all 4 Ethernet sockets & even turned the cable round & done the same again.  :-\

Here's what you asked for Mark:

Code: [Select]
mick@mick-Inspiron-1501 ~ $ sudo ethtool eth0
Settings for eth0:
Supported ports: [ MII ]
Supported link modes:   10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
       drv probe link timer ifdown ifup rx_err tx_err
Link detected: no

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Ethernet Problems
« Reply #12 on: February 08, 2017, 05:50:27 pm »
well everything looks okay to me but it's not detecting a link

It would be handy if you could get another ethernet cable to test with.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline mac

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1088
  • Karma: 336
    • View Profile
  • Peppermint version(s): Peppermint 7-8-9
Re: Ethernet Problems
« Reply #13 on: February 08, 2017, 05:55:26 pm »
If that doesn't work try logging into your router and checking your security settings....make sure your device is being allowed by the router. 

cheers
Peppermint: Standing Out from the Cloud
Reg. Linux User #432835

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25266
  • Karma: 2793
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Ethernet Problems
« Reply #14 on: February 08, 2017, 06:03:16 pm »
What's the output from:
Code: [Select]
sudo mii-tool -v eth0
then run
Code: [Select]
sudo mii-tool -R eth0
and post the output from:
Code: [Select]
sudo mii-tool -v eth0
again



For diagnostic purposes (to rule in/out hardware) it might be worth booting a LiveCD/LiveUSB and seeing if the ethernet cable/port works ?
« Last Edit: February 08, 2017, 06:11:20 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec