You are not logged in.

#1 2012-01-09 04:49:26

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Cannot connect to network, (I have a network switch + a router)

I just installed arch from the offline disk (05/1/2012)

when i ping my default gate way i get a 100% packet loss. i feel this has something to do with my network switch, any ideas?

Offline

#2 2012-01-09 05:12:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot connect to network, (I have a network switch + a router)

Wired, or wireless?
What is the output of ip addr  ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-01-09 05:24:39

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

Wired

ip addr
returns:
http://i44.tinypic.com/23s88sh.jpg
http://i43.tinypic.com/15eh5rt.jpg

Moderator edit: Redacted large images, converted them to links.  ewaller

Last edited by ewaller (2012-01-09 06:02:31)

Offline

#4 2012-01-09 05:45:42

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: Cannot connect to network, (I have a network switch + a router)

Text is cut off, pictures are too big (some people reading this may be on very slow connections).  Choose one of the following pastebin clients, they're much better for the task at hand (posting terminal output):

https://wiki.archlinux.org/index.php/Pastebin_Clients

Once you have your text uploaded to a corresponding online site then you can provide a link to it here.  Also you can post the text here too but just make sure you know about the BB Code used here to put the text inside "code" tags.

Edit, wait a minute.  I think I'm an idiot.  You're having a network problem.  Sorry.

Last edited by headkase (2012-01-09 05:51:52)

Offline

#5 2012-01-09 06:01:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot connect to network, (I have a network switch + a router)

Okay...

That is one way to do it smile  Headkase is correct, the text would be a bit easier to deal with, but the pictures do tell the story.  I am going to go ahead and change the inline images to URL links.

Well, it appears that you have an interface, the cable is connected, you have a carrier and it has an IP address.  All good.
How did you obtain an IP address?  Is it a static address, or did you get an address from the router using dhcpcd or dhclient?
Can you ping 192.168.0.1  ?
what is the output of ip route  ??  Perhaps you can redirect that output to a file on a USB stick so you can post it here?  If not, the pictures work wink


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2012-01-09 06:02:25

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

LOL thanks anyway, i posted 2 pictures to show the text that was cut off

Offline

#7 2012-01-09 06:05:03

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

ewaller wrote:

Okay...

That is one way to do it smile  Headkase is correct, the text would be a bit easier to deal with, but the pictures do tell the story.  I am going to go ahead and change the inline images to URL links.

Well, it appears that you have an interface, the cable is connected, you have a carrier and it has an IP address.  All good.
How did you obtain an IP address?  Is it a static address, or did you get an address from the router using dhcpcd or dhclient?
Can you ping 192.168.0.1  ?
what is the output of ip route  ??  Perhaps you can redirect that output to a file on a USB stick so you can post it here?  If not, the pictures work wink

i can use DHCP but i prefer static so i set up static (correctly)

i can ping 192.168.0.1 but 1 all packets are lost

brb to get iproute output

Offline

#8 2012-01-09 06:09:09

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

http://i42.tinypic.com/hs1cie.jpg

ok looks like this is incorrect should be 192.168.0.1, how do i fix it?

Offline

#9 2012-01-09 06:11:30

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot connect to network, (I have a network switch + a router)

Just for a sanity check, give DHCP a try.  If you get an address, let us know what it is.  (It should be a non-routeable address, so there is no risk in sharing it)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2012-01-09 06:14:59

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

i already try DHCP but it didnt work so i just went static, it seem that i cant connect to my router which i would recieve the DHCP from. if you still think its a good idea ill try it again

Offline

#11 2012-01-09 06:37:13

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

i get all the same stuff with DHCP, with the exception of my computers ip.
did you want a copy?

Offline

#12 2012-01-09 06:39:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot connect to network, (I have a network switch + a router)

Very well.  Are you certain the router is using the 192.168.0.* subnet?  Are there other systems on the local network?  Their addresses are of the form 192.168.0.xx too?

You do not have a default route.  Here is my system:

ewaller@odin:~ 1034 %ip route
default via 192.168.1.1 dev wlan0  proto static 
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.8  metric 2 
ewaller@odin:~ 1035 %

I don't think this will work if you cannot ping your router, but you will need to add a default route (eventually).  Try

route add default 192.168.0.1

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#13 2012-01-09 06:40:41

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot connect to network, (I have a network switch + a router)

Reduced_Oxygen wrote:

i get all the same stuff with DHCP, with the exception of my computers ip.
did you want a copy?

what is the IP?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#14 2012-01-09 06:46:57

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

ewaller wrote:

Very well.  Are you certain the router is using the 192.168.0.* subnet?  Are there other systems on the local network?  Their addresses are of the form 192.168.0.xx too?

You do not have a default route.  Here is my system:

ewaller@odin:~ 1034 %ip route
default via 192.168.1.1 dev wlan0  proto static 
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.8  metric 2 
ewaller@odin:~ 1035 %

I don't think this will work if you cannot ping your router, but you will need to add a default route (eventually).  Try

route add default 192.168.0.1

i am certain the router is 192.168.0.1 all other comps are of the form 192.168.0.X and can range from 198.168.0.2 to 192.168.0.100

typing

 route add default 192.168.0.1

returns no such device

Offline

#15 2012-01-09 06:47:58

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

ewaller wrote:
Reduced_Oxygen wrote:

i get all the same stuff with DHCP, with the exception of my computers ip.
did you want a copy?

what is the IP?

it changes it from 192.168.0.69 (which i set it) to 192.168.0.17

Offline

#16 2012-01-09 07:02:03

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: Cannot connect to network, (I have a network switch + a router)

Reduced_Oxygen wrote:
ewaller wrote:
Reduced_Oxygen wrote:

i get all the same stuff with DHCP, with the exception of my computers ip.
did you want a copy?

what is the IP?

it changes it from 192.168.0.69 (which i set it) to 192.168.0.17

That all seems reasonable, but no access?  hmm

I guess my invocation should have been:

route add default gw 192.168.0.1

Sorry about that.  See if there is a default gateway with the DHCP configuration.  If not, try that (corrected) command again.

The odd part is that you seem to be able to obtain an address on the 192.168.0.* subnet.  I'm sorry to have put you through the sanity checks -- I had no way of evaluating your experience. 

If this does not do it, I am running out of ideas.  What type of interface is it -- look at the output of lspci -nn (That is two n's) and report the vendor and product IDs

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02)

My Realtek is Vendor 10ec and the product is 8136.


Edit: Signing off for the night.

Last edited by ewaller (2012-01-09 07:08:04)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#17 2012-01-09 07:10:03

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

out put of lspci -nn:
http://i43.tinypic.com/2usg85g.jpg

where my internet comes from:
http://i40.tinypic.com/207uqkh.jpg

Offline

#18 2012-01-10 06:15:30

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

Bump

Offline

#19 2012-01-10 06:44:24

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

dang

Offline

#20 2012-01-10 06:58:51

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

OK i rebooted and am now able to connect to the router, (0% packet loss) but pinging www.google.com still returns unknown host, can any1 help with this?

Offline

#21 2012-01-10 07:15:13

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: Cannot connect to network, (I have a network switch + a router)

I don't really know how to help, but, try putting this into your browser:

http://74.125.224.72/

That's one of Google's IP address'.  If you get google then that means your issue isn't connectivity (you now have 0% loss to your router) but would instead be with resolving DNS entries.

If that what it is then that information might help someone else help you.

Offline

#22 2012-01-10 07:19:52

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: Cannot connect to network, (I have a network switch + a router)

I forgot, you're at a terminal.  Try to ping that address instead.  If you get 0% packet loss then you know that you can contact a site outside of your local network and then, again, that would indicate DNS resolving being the issue.

ping 74.125.224.72

And if it's DNS then see: Here.  In /etc/resolv.conf put:

nameserver 8.8.8.8
nameserver 8.8.4.4

Those are Google's Public DNS servers.

Then, execute:

chattr +i /etc/resolv.conf

The CHange ATTRibute +i makes the file immutable so that it won't be overwritten on next boot.

So, if all that works then you should be set up - if that was it - to start downloading stuff and getting yourself a graphical environment going if that's what you want from there.

Last edited by headkase (2012-01-10 07:26:49)

Offline

#23 2012-01-10 07:44:36

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: Cannot connect to network, (I have a network switch + a router)

Also, in /etc/rc.conf:

HOSTNAME="hostname"

and in /etc/hosts:

127.0.0.1    localhost.localdomain    localhost hostname

The hostname must be identical or your network may function poorly or not at all.

Last edited by headkase (2012-01-10 07:45:20)

Offline

#24 2012-01-10 15:56:19

Reduced_Oxygen
Member
Registered: 2011-04-05
Posts: 19

Re: Cannot connect to network, (I have a network switch + a router)

headkase wrote:

I don't really know how to help, but, try putting this into your browser:

http://74.125.224.72/

That's one of Google's IP address'.  If you get google then that means your issue isn't connectivity (you now have 0% loss to your router) but would instead be with resolving DNS entries.

If that what it is then that information might help someone else help you.

I'm getting 100% packet loss on that ip

Offline

#25 2012-01-15 22:11:54

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Cannot connect to network, (I have a network switch + a router)

Do you have a default gateway set? What does ip route show?

default via 10.20.1.1 dev eth0 
10.20.1.0/24 dev eth0  proto kernel  scope link  src 10.20.1.4 

Note: the first line is the default GW


Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB