Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
All of the sudden I can't connect!
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
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Wed Mar 27, 2019 6:44 pm    Post subject: All of the sudden I can't connect! Reply with quote

Hey guys I got a strange problem.
I have been using a wired Ethernet connection for my Gentoo install and I have had no problem with internet connectivity. No net-setup was even required when I first booted up the liveCD. I am at the stage of the install where I need to setup networking on the actual device by emerging netifrc and creating symlinks to net.lo and all of that stuff and now I can't get a good connection. If I ping I get

Code:
PING www-bytemark-v4v6.gentoo.org (89.16.167.134) 56(84) bytes of data.
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=1 ttl=45 time=155 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable


It flips back and forth between the error and an actual packet being recieved every once in a while. What info do you guys need to help me? Never seen anything like this and have done the install 4 times in the past. Now I cant even emerge anything because of this.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Wed Mar 27, 2019 6:57 pm    Post subject: Reply with quote

moevot,

We need to find a shorter path to test, so we can determine if its you, or your ISP, or the big bad internet.
It sounds like the big bad internet is in the clear.

Are you using wired or wireless?
Can you reliably ping your router?

Your router is the gateway in the top line.
Code:
$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.100.253 0.0.0.0         UG    2      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0


If you have several lines that start 0.0.0.0 you have a different problem.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Wed Mar 27, 2019 7:25 pm    Post subject: Reply with quote

I am using a wired connection

Code:
$ 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    100       0       0     eth0
127.0.0.0           0.0.0.0                  255.0.0.0          U      0           0       0     lo
192.168.0.0       0.0.0.0                  255.255.255.0   U      0          0       0     eth0


If I run ifconfig -a then I can see that eth0 has inet 192.168.0.9 which I can ping succesfully with 0% packet loss. What is the differnce between 192.168.0.0 and 192.168.0.9 (I know nothing about networking). So where should I go from here guys?
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Wed Mar 27, 2019 7:34 pm    Post subject: Reply with quote

Quote:
Your router is the gateway in the top line.


I just pinged the router which is 192.168.0.1 which works as well. What is the difference in all of these ip's?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54236
Location: 56N 3W

PostPosted: Wed Mar 27, 2019 8:13 pm    Post subject: Reply with quote

moevot,

Every system on a network has an address. It much like your residential address and used for the same purpose.

192.168.0.9 is the address of your PC on the network. When you ping that you are talking to the network card in your PC.
192.168.0.0 is the address of a whole network. In your case that network has a netmask of 255.255.255.0. you need both bits.
The netmask splits the address into the network part and the host part.
Given 192.168.0.0 and netmask 255.255.255.0 first 192.168.0. is the network address and the last bit, the .0 the hast address.
The netmask is always an uninterrupted sequence of binary '1' followed by an uninterrupted sequence of binary '0'.
255 is 11111111.

It follows that your network 192.168.0. can contain 256 hosts. There are two reserved addresses.
The network address cannot be allocated to a host. That's 192.168.0.0 and nether can the broadcast address.
The broadcast address is by convention the last address in the network, or 192.168.0.255. You can't allocate it to a host either.

Putting this together with your routing table, from the bottom,
Code:
Destination        Gateway                Genmask           Flags Metric   Ref    Use   Iface
192.168.0.0       0.0.0.0                  255.255.255.0   U      0          0       0     eth0

That says to reach the 192.168.0.0 network, no gateway is required, just send the packets out of the eth0 interfacce.
I'll skip over
Code:
127.0.0.0           0.0.0.0                  255.0.0.0          U      0           0       0     lo

Code:
Destination        Gateway                Genmask           Flags Metric   Ref    Use   Iface
0.0.0.0              192.168.0.1           0.0.0.0              UG    100       0       0     eth0

says to send any packets that have not been routed to 192.168.0.1 (your router) because it knows what to do with them.
Your PC does not.
Your router will have another routing table. that describes how to reach the 192.168.0.0 network and a default route that points to your ISP.
The whole internet is put together like this.

If you have traceroute, you can find out where the problem is ... maybe.
Code:
sudo traceroute -T google.com
will trace the route that packets take from you to google.com.
The first 'hop' will be to 192.168.0.1, your router, the next 'hop' will be to your ISP.
If you find a big timing gap, that hop has a problem.
A response like
Code:
5  * * *
means that that host is not providing any information.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
moevot
n00b
n00b


Joined: 15 Mar 2019
Posts: 23

PostPosted: Mon Apr 29, 2019 5:00 am    Post subject: Reply with quote

btw I resolved this. Just turned it off, went about my day, and rebooted and have never had this problem again. !@$%# networking man, its magic
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