Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't connect to internet/ping after updating
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kfc2pt0
n00b
n00b


Joined: 16 Apr 2019
Posts: 1

PostPosted: Tue Apr 16, 2019 4:34 pm    Post subject: Can't connect to internet/ping after updating Reply with quote

rebooted our server computer after updating portage a month ago, and now I can't connect to the internet, and pinging 8.8.8.8 gets me "connect: Network is unreachable". Searched the forums all over, but nothing seems to work :(

our ifconfig file shows the following (my apologies, i had to hand type this all out)
Code:
eth0: flags=4163<UP.BROADCAST.RUNNING.MULTICAST> mtu 1500
         inet6 fe80:: e2cb:4eff:fee5:e9d7 prefixlen 64 scopeid 0x20<link>
         inet6 fe80:: d797:d265:537c:acba prefixlen 64 scopeid 0x20<link>
         ether e0:cb:4e:e5:e9:d7 txqueuelen 1000 (Ethernet)
         RX packets 3870 bytes 320010 (312.5 KiB)
         RX errors 0 dropped 0 overruns 0 frame 0
         TX packets 15 bytes 2080 (2.0 KiB)
         TX errors 0 dropped 0 overruns 0 carrier 0 collisions

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


We don't understand why eth0 doesn't show the IPv4 address (I think it needs to show something here?) or just in general, if something needs to be reconfigured to get us back on a connection?

We've tried the following things:

We've restarted dhcpcd and eth0
Code:
root # /etc/init.d/net.eth0 start
rc-service dhcpcd start


In /etc/conf.d/net, we've added
Code:
config_eth0 = "192.168.1.1/2700"
root_eth0 = "default via 192.168.0.1"


And in /etc/dhcpcd,conf
Code:
config_eth0 = "192.168.1.1/2700"
root_eth0 = "default via 192.168.0.1"


Kind of lost and at wits end after 2 days of working at this, so any help would be appreciated (:
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7328
Location: Saint Amant, Acadiana

PostPosted: Tue Apr 16, 2019 5:24 pm    Post subject: Reply with quote

Hmh ... updating portage does not make any changes to the OS.
Quote:
rc-service dhcpcd start

DHCP client is started automatically by init script, no need to start it by hand. Furthermore, it seems you aim for static configuration, thus DHCP is not needed.
Quote:
config_eth0 = "192.168.1.1/2700"

This netmask is invalid.
Quote:
root_eth0 = "default via 192.168.0.1"

This has to be route, not root. And it may be outside of your subnet, too (can't tell what subnet you have, netmask is invalid).

In short, you better call your IT guy.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum