Network connection doesn't work

Kernels & Hardware, configuring network, installing services

Network connection doesn't work

Postby Nemo1985 » 2018-05-16 13:35

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.
Nemo1985
 
Posts: 2
Joined: 2018-05-16 13:32

Re: Network connection doesn't work

Postby p.H » 2018-05-16 15:02

I do not see any missing gateway.

The problem is the missing "RUNNING" flag, which basically means "no link".
p.H
 
Posts: 372
Joined: 2017-09-17 07:12

Re: Network connection doesn't work

Postby Nemo1985 » 2018-05-16 15:31

Thank you for your answer, what I should do?
Nemo1985
 
Posts: 2
Joined: 2018-05-16 13:32

Re: Network connection doesn't work

Postby Bulkley » 2018-05-16 20:10

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.
Bulkley
 
Posts: 5538
Joined: 2006-02-11 18:35

Re: Network connection doesn't work

Postby p.H » 2018-05-16 20:35

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.
p.H
 
Posts: 372
Joined: 2017-09-17 07:12


Return to System configuration

Who is online

Users browsing this forum: No registered users and 10 guests

fashionable