Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Network connection doesn't work

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Nemo1985
Posts: 3
Joined: 2018-05-16 13:32

Network connection doesn't work

#1 Post by Nemo1985 »

Hello everybody.
For some years I used a home computer as limp server with debian, everything worked like a charme.
Today I started the computer after a couple of years and it suddenly can't connect to the net.
My router doesn't detect it, I have always used a static ip (with ip rservation for the mac address in the router).
I messed with it for some hours, did the net configuration from scratch but it just doesn't work.
I tried to run ubuntu from a usb drive and the network works without issues.
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
ip route show
default via 192.168.0.1 dev eth0
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.3
ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.0.3 netmask 255.255.255.0 broadcast 192.168.0.255
ether 00:19:66:8e:65:fa txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 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 0 (Local Loopback)
RX packets 888 bytes 115929 (113.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 888 bytes 115929 (113.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
this is my interfaces file:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
# dns-nameservers 192.168.0.1 8.8.8.8
I suspect that the problem is the missing gateway (which should be 192.168.0.1).

Thank you in advance for any help you can give me.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Network connection doesn't work

#2 Post by p.H »

I do not see any missing gateway.

The problem is the missing "RUNNING" flag, which basically means "no link".

Nemo1985
Posts: 3
Joined: 2018-05-16 13:32

Re: Network connection doesn't work

#3 Post by Nemo1985 »

Thank you for your answer, what I should do?

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Network connection doesn't work

#4 Post by Bulkley »

Nemo1985 wrote:Today I started the computer after a couple of years and it suddenly can't connect to the net.
My router doesn't detect it, . . .
It is the other way around, your computer is not detecting the router. If you have had this machine lying dormant for two years the OS on it is probably out of date. You will have to configure its network connection from scratch. There's plenty of documentation about it so do some searching.

There is another possibility; hardware failure. Open it up and blow all the dust out of the inside. Re-seat all connections including memory and circuit boards.

I'd be awfully tempted to boot up a live-CD (any distro) and see how it runs.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Network connection doesn't work

#5 Post by p.H »

Bulkley wrote:I'd be awfully tempted to boot up a live-CD (any distro) and see how it runs.
I'd be awfully tempted to suggest that you read carefully the OP :
Nemo1985 wrote:I tried to run ubuntu from a usb drive and the network works without issues.

Nemo1985
Posts: 3
Joined: 2018-05-16 13:32

Re: Network connection doesn't work

#6 Post by Nemo1985 »

I still wasn't able to solve the issue, if i'm unable to connect, is there a way to update the distro anyway? I'd like to keep using the testing version.
Thank you.

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Network connection doesn't work

#7 Post by arzgi »

Nemo1985 wrote:I still wasn't able to solve the issue, if i'm unable to connect, is there a way to update the distro anyway? I'd like to keep using the testing version.
Thank you.
Remove or quote static configuration from

Code: Select all

/etc/network/interfaces
and change to dhcp

Code: Select all

iface eth0 inet dhcp
Check that lights are on your nic and corresponding router port. If not, try different cable.

Post Reply