Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

eth connection

Started by carlo, April 11, 2016, 09:04:06 AM

Previous topic - Next topic

carlo

Hi all
it's a while that when i login i cannot connect to internet, at first i thought twas a router/modem issue, even because i can access modem and router ips while internet no
but to be short, i've tried to disable cabled connection from panel thingy and re enable it and i can go to the internet
i think there's some conflict or maybe some demon which has to be delayed a bit.. any hint?

pavroo

Try to up the interface manually:
su
ifconfig

Find what is your device (e.g. eth0, eth1, or so), then:
ifdown eth0
ifup eth0

If no success, reboot your router and your machine after.
Nothing is easy as it looks. Danielle Steel

carlo

uh..... i don-t think i-ve had the feedback i should have had.,...

$ su
Password:
root@linuxschifo:/home/carlo# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.64  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::922b:34ff:fe31:c8a9  prefixlen 64  scopeid 0x20<link>
        ether 90:2b:34:31:c8:a9  txqueuelen 1000  (Ethernet)
        RX packets 18239  bytes 13747188 (13.1 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 15575  bytes 3002692 (2.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 1  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 1746  bytes 138338 (135.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1746  bytes 138338 (135.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@linuxschifo:/home/carlo# ifdown eth0
Unknown interface eth0

pavroo

Your eth0 interface is up, it recived some packages, no errors.
The problem must be somwhere else...
Are you sure your router is fine?
Nothing is easy as it looks. Danielle Steel

carlo

i mean
first it told me:

root@linuxschifo:/home/carlo# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
then

root@linuxschifo:/home/carlo# ifdown eth0
Unknown interface eth0

now that i-ve rebooted i-ve tried again and this is the outcome:

root@linuxschifo:/home/carlo# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.64  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::922b:34ff:fe31:c8a9  prefixlen 64  scopeid 0x20<link>
        ether 90:2b:34:31:c8:a9  txqueuelen 1000  (Ethernet)
        RX packets 313  bytes 183069 (178.7 KiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 208  bytes 36083 (35.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 1  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 1215  bytes 96658 (94.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1215  bytes 96658 (94.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@linuxschifo:/home/carlo# ifconfig eth0 down
root@linuxschifo:/home/carlo# ifconfig eth0 up
root@linuxschifo:/home/carlo#


useless to add that i couldn-t link to the internet and hat to turn cabled connection off and on from the cinnamon panel thingy






QuoteAre you sure your router is fine?
i-m not very sure cause besides linux things i have updated router firmare as well lately, but even reverting to an older fw didnt help

what i-ve noticed is that from this very computer linux behaves this way, even with different accounts, if i start windows internet worlks properly, if i link wireless to the router it works as well

pavroo

#5
Show me:
cat /etc/network/interfaces
cat /etc/resolv.conf
systemctl status network-manager
lspci -v
dmesg | grep net

Nothing is easy as it looks. Danielle Steel

carlo

this is what i get after i have done the trick with the utility, tell me if you need me to do it as soon as i reboot as well, here you gooo!

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback


$ cat /etc/resolv.conf
# Generated by NetworkManager
search lan
nameserver 192.168.1.254
nameserver 62.101.93.101
nameserver 83.103.25.250
# NOTE: the libc resolver may not support more than 3 nameservers.
# The nameservers listed below may not be recognized.
nameserver fe80::9e97:26ff:feb8:8a52%eth0


$ systemctl status network-manager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled)
   Active: active (running) since mar 2016-04-12 13:38:04 CEST; 1h 23min ago
Main PID: 741 (NetworkManager)
    Tasks: 4 (limit: 512)
   CGroup: /system.slice/NetworkManager.service
           ├─ 741 /usr/sbin/NetworkManager --no-daemon
           └─1621 /sbin/dhclient -d -q -sf /usr/lib/NetworkManager/nm-dhcp-helper -pf /var/run/dhclie

apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9008]   plen 24 (255.255.255.0)
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011]   gateway 192.168.1.254
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011]   server identifier 192.16
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011]   lease time 3600
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011]   nameserver '192.168.1.25
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011]   nameserver '62.101.93.10
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011]   nameserver '83.103.25.25
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011]   domain name 'lan'
apr 12 14:35:01 linuxschifo NetworkManager[741]: <info>  [1460464501.9011] dhcp4 (eth0): state change
apr 12 14:35:01 linuxschifo dhclient[1621]: bound to 192.168.1.64 -- renewal in 1786 seconds.
lines 1-19/19 (END)


$ lspci -v
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller (rev 09)
        Subsystem: Gigabyte Technology Co., Ltd Xeon E3-1200 v2/3rd Gen Core processor DRAM Controller
        Flags: bus master, fast devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: ivb_uncore
        Kernel modules: ie31200_edac

00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 24
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000e000-0000efff
        Memory behind bridge: f6000000-f70fffff
        Prefetchable memory behind bridge: 00000000e0000000-00000000f1ffffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) (prog-if 30 [XHCI])
        Subsystem: Gigabyte Technology Co., Ltd 7 Series/C210 Series Chipset Family USB xHCI Host Controller
        Flags: bus master, medium devsel, latency 0, IRQ 25
        Memory at f7400000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
        Subsystem: Gigabyte Technology Co., Ltd 7 Series/C210 Series Chipset Family MEI Controller
        Flags: bus master, fast devsel, latency 0, IRQ 29
        Memory at f741a000 (64-bit, non-prefetchable) [size=16]
        Capabilities: <access denied>
        Kernel driver in use: mei_me
        Kernel modules: mei_me

00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) (prog-if 20 [EHCI])
        Subsystem: Gigabyte Technology Co., Ltd 7 Series/C210 Series Chipset Family USB Enhanced Host Controller
        Flags: bus master, medium devsel, latency 0, IRQ 16
        Memory at f7418000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: <access denied>
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci

00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
        Subsystem: Gigabyte Technology Co., Ltd 7 Series/C210 Series Chipset Family High Definition Audio Controller
        Flags: bus master, fast devsel, latency 0, IRQ 30
        Memory at f7410000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        Memory behind bridge: f7300000-f73fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Bus: primary=00, secondary=04, subordinate=05, sec-latency=0
        Capabilities: <access denied>

00:1c.6 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 7 (rev c4) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 18
        Bus: primary=00, secondary=06, subordinate=06, sec-latency=0
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: f7200000-f72fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1c.7 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 8 (rev c4) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 19
        Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
        I/O behind bridge: 0000c000-0000cfff
        Memory behind bridge: f7100000-f71fffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport
        Kernel modules: shpchp

00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) (prog-if 20 [EHCI])
        Subsystem: Gigabyte Technology Co., Ltd 7 Series/C210 Series Chipset Family USB Enhanced Host Controller
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at f7417000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: <access denied>
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci

00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04)
        Subsystem: Gigabyte Technology Co., Ltd Z77 Express Chipset LPC Controller
        Flags: bus master, medium devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: lpc_ich
        Kernel modules: lpc_ich

00:1f.2 RAID bus controller: Intel Corporation SATA Controller [RAID mode] (rev 04)
        Subsystem: Gigabyte Technology Co., Ltd SATA Controller [RAID mode]
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 26
        I/O ports at f070 [size=8]
        I/O ports at f060 [size=4]
        I/O ports at f050 [size=8]
        I/O ports at f040 [size=4]
        I/O ports at f020 [size=32]
        Memory at f7416000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: <access denied>
        Kernel driver in use: ahci
        Kernel modules: ahci

00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
        Subsystem: Gigabyte Technology Co., Ltd 7 Series/C210 Series Chipset Family SMBus Controller
        Flags: medium devsel
        Memory at f7415000 (64-bit, non-prefetchable) [size=256]
        I/O ports at f000 [size=32]
        Kernel modules: i2c_i801

01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: eVga.com. Corp. GM206 [GeForce GTX 960]
        Flags: bus master, fast devsel, latency 0, IRQ 32
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at f0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        [virtual] Expansion ROM at f7000000 [disabled] [size=512K]
        Capabilities: <access denied>
        Kernel driver in use: nvidia
        Kernel modules: nvidia

01:00.1 Audio device: NVIDIA Corporation Device 0fba (rev a1)
        Subsystem: eVga.com. Corp. Device 3968
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at f7080000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

03:00.0 USB controller: VIA Technologies, Inc. VL80x xHCI USB 3.0 Controller (rev 03) (prog-if 30 [XHCI])
        Subsystem: Gigabyte Technology Co., Ltd VL80x xHCI USB 3.0 Controller
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Memory at f7300000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci

04:00.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 30) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Bus: primary=04, secondary=05, subordinate=05, sec-latency=64
        Capabilities: <access denied>

06:00.0 Ethernet controller: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet (rev c0)
        Subsystem: Gigabyte Technology Co., Ltd AR8151 v2.0 Gigabit Ethernet
        Flags: bus master, fast devsel, latency 0, IRQ 31
        Memory at f7200000 (64-bit, non-prefetchable) [size=256K]
        I/O ports at d000 [size=128]
        Capabilities: <access denied>
        Kernel driver in use: atl1c
        Kernel modules: atl1c

07:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) (prog-if 01 [AHCI 1.0])
        Subsystem: Gigabyte Technology Co., Ltd 88SE9172 SATA 6Gb/s Controller
        Flags: bus master, fast devsel, latency 0, IRQ 28
        I/O ports at c040 [size=8]
        I/O ports at c030 [size=4]
        I/O ports at c020 [size=8]
        I/O ports at c010 [size=4]
        I/O ports at c000 [size=16]
        Memory at f7110000 (32-bit, non-prefetchable) [size=512]
        Expansion ROM at f7100000 [disabled] [size=64K]
        Capabilities: <access denied>
        Kernel driver in use: ahci
        Kernel modules: ahci


$ dmesg | grep net
[    0.008189] Initializing cgroup subsys net_cls
[    0.008192] Initializing cgroup subsys net_prio
[    0.593246] audit: initializing netlink subsys (disabled)
[    0.597475] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba

pavroo

#7
Try:
1.
sudo su
mv /etc/resolv.conf /etc/resolv.conf.back
nano /etc/resolv.conf

and paste:
nameserver 62.179.1.60
nameserver 62.179.1.61

then save it.
2.
modprobe -r atl1c
if no error than:
modprobe atl1c
Check is the module loaded:
lsmod | grep atl1c

Than:
ifconfig eth0 down
ifconfig eth0 up
Nothing is easy as it looks. Danielle Steel

carlo

mm
seems that nothing has changed


(what did i do to my computer?)

pavroo

What kernel?
Have installed Sparky kernel or just default's Debian?
Nothing is easy as it looks. Danielle Steel

carlo

i-ve got not a clue,
this is my uname -a:

Linux linuxschifo 4.4.0-1-amd64 #1 SMP Debian 4.4.6-1 (2016-03-17) x86_64 GNU/Linux

carlo

#11
half a good new:
i-ve activated sparky testing repos,
installed the kernel package, rebooted and goodbye X (i think it could be nvidia drivers fault)
i logged from textual and could upgrade whole system
the i've rebooted and X didn't start either
so
now i've used the "old" debian kernel and X works and Net as well!

no.. debian testing kernel, graphic session, but somehow locked internet connection yet

NexusPenguin

Hi Carlo,

If your problem isn't solved by now, I would throw in my own suggestions, even though I am no Linux/Network pro...

My question is pretty simple : have you entered a DNS server ?
I can't tell with this distro, but I know of some OS'es that will refuse to the internet until you have specified the correct DNS server (maybe your router or something more general, like 8.8.8.8 and "google.com" as a domain...).

Regards.






carlo

actually i didn't touch the dns settings at all
the onlu thing i did was installing privoxy, but so far it gave no problem
i suspect there's some conflict between desktop environments tools......

odd thing is that one time out of ten connection works without any intervention of mine (like now)

NexusPenguin

Hi Carlo,

OK. But it's an easy check, so maybe it's worth giving it a look even if you didn't touch anything.

I reckon you probably have other devices that are networked : a printer, a NAS, a router or an ISP box.
Are you able to reach those ?

It's just to check if it's a LAN or WAN problem...

Regards.

FRED

View the most recent posts on the forum