Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
connection problems
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
iluzion
n00b
n00b


Joined: 28 Nov 2005
Posts: 18

PostPosted: Mon Nov 28, 2005 10:01 pm    Post subject: connection problems Reply with quote

I've been having connection problems since very shortly after installing gentoo. I randomly lose connection to the internet until I dhcpcd. While it is down, I , for example, cannot connect to www.google.com, but I am succesfully able to ping it without loss. I run a dual boot machine and have no connection problems whatsoever while booted to windows.
Back to top
View user's profile Send private message
wrightg
n00b
n00b


Joined: 29 Mar 2003
Posts: 12
Location: Gatineau, Canada

PostPosted: Tue Nov 29, 2005 3:10 am    Post subject: Reply with quote

This sounds like your nameserver is not set up correctly.

The file that you need to edit is /etc/resolv.conf

There should be one or two entries in there that point to your nameserver.

In gentoo, your network connections are controlled through /etc/init.d/net.eth0 (the extension is based on the type of connection that you are using).

Type:

Code:
/etc/init.d/net.eth0 restart


and post the results here.

If that does not take, also post the contents of your /etc/conf.d/net file.

Good luck.
Back to top
View user's profile Send private message
iluzion
n00b
n00b


Joined: 28 Nov 2005
Posts: 18

PostPosted: Tue Nov 29, 2005 3:21 am    Post subject: Reply with quote

thanks for the reply.. im actually using eth1 (im not sure why it ended up like that) so i ran what you said but for eth1, obviously. everything restarted and came up with no errors.
Back to top
View user's profile Send private message
wrightg
n00b
n00b


Joined: 29 Mar 2003
Posts: 12
Location: Gatineau, Canada

PostPosted: Tue Nov 29, 2005 3:31 am    Post subject: Reply with quote

Ok. That's good.

Can you ping 64.233.167.99?

Can you ping www.google.ca?

Take a look at your /etc/resolv.conf file

Finally, if everything seems to be in order just set your system up so that /etc/init.d/net.eth1 is run at boot time. You do this by typing:

Code:
rc-update add net.eth1 default



You also mentioned that you thought it weird that your ethernet has come up as eth1 -- I agree that is a little strange ...

Code:
dmesg


Do you have two ethernet cards installed on this computer?

Code:
dmesg|grep eth


Post those results if you want to follow up on this.

Good luck!
Back to top
View user's profile Send private message
iluzion
n00b
n00b


Joined: 28 Nov 2005
Posts: 18

PostPosted: Tue Nov 29, 2005 3:46 am    Post subject: Reply with quote

is this stuff i should do right now, or just the next time my internet decides to go down on me?
Back to top
View user's profile Send private message
wrightg
n00b
n00b


Joined: 29 Mar 2003
Posts: 12
Location: Gatineau, Canada

PostPosted: Tue Nov 29, 2005 11:27 pm    Post subject: Reply with quote

I cannot say definitively but it sounds to me like your ethernet device(s) have not been setup properly.

If you want to be proactive, you can try to fix up your configuration right away. It may take a bit of work to track down what the problem is -- however, tackling the problem in a controlled manner is typically preferred to facing the same problem in panic mode. Before you start, I would make sure that you can obtain internet access using some other method -- either another machine on the lan or perhaps downloading and burning yourself a Knoppix CD.

I would take a look at the following section and then check back if something is not adding up.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=8#doc_chap2

Best of luck.
Back to top
View user's profile Send private message
iluzion
n00b
n00b


Joined: 28 Nov 2005
Posts: 18

PostPosted: Wed Nov 30, 2005 2:29 am    Post subject: Reply with quote

the connection just went down again, i did everything you said in your first, and changed the one thing that i found to be different in the gentoo link you gave me (in net: under code listing 14: it was dhcp_eth1="", now it is the same as in the listing)

heres the results from your post:

ip: 54% packetloss first try, second was fine
google.ca: fine


resolv.conf:
# Generated by dhcpcd for interface eth1
domain housing.res.kent.edu
nameserver 131.123.246.1
nameserver 131.123.1.1


yes i have two onboard NIC's

grep eth:
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.41.
eth0: forcedeth.c: subsystem: 01043:80a7 bound to 0000:00:04.0
Back to top
View user's profile Send private message
wrightg
n00b
n00b


Joined: 29 Mar 2003
Posts: 12
Location: Gatineau, Canada

PostPosted: Wed Nov 30, 2005 3:18 am    Post subject: Reply with quote

Hi iluzion,

Thanks for hanging in there... -- I must admit that this is very strange and frustrating.

The first thing that I would try is to use the other ethernet card. It is not unheard of that the card or the driver is buggy. I am not familiar with the forcedeth driver but let's try something out here. Can you post the output from
Code:
lspci -v
? I just need to see any entries with either Network Controller or Ethernet Controller in their title.

Also, it would be helpful for me to know what your environment looks like. Is one of the cards wireless? Are you connecting to a wireless network? Do you have the appropriate authorization to be on that network?

Next, let's try to switch over to the first ethernet device.

To use eth0:

Go into your /etc/conf.d/net file again and insert the following line:

Code:
iface_eth0="dhcp"


Then, stop eth1 with the following command:

Code:
/etc/init.d/net.eth1 stop


Start eth0 with the following command:

Code:
/etc/init.d/net.eth0 start



Finally, the only other thing that I could think of is that the network is forcing you off for some reason. I took a quick look at Kent State's ResNet material and I wonder if there is something going on there that might be kicking you off. That Cisco Clean Access stuff looks ominous. (Unfortunately, this is taking us into areas that are over my head...) Perhaps someone with a larger brain than mine will weigh in on this or you might want to ask around your residence or the local network admin.

I am sorry that I could not be of more help. Send me the lspci information or let me know if you figured something else out.

Good luck!
Back to top
View user's profile Send private message
iluzion
n00b
n00b


Joined: 28 Nov 2005
Posts: 18

PostPosted: Wed Nov 30, 2005 4:34 am    Post subject: Reply with quote

0000:02:01.0 Ethernet controller: 3Com Corporation 3C920B-EMB Integrated Fast Et hernet Controller [Tornado] (rev 40)
Subsystem: ASUSTeK Computer Inc. A7N8X Deluxe onboard 3C920B-EMB Integra ted Fast Ethernet Controller
Flags: bus master, medium devsel, latency 32, IRQ 17
I/O ports at c000 [size=128]
Memory at e1000000 (32-bit, non-prefetchable) [size=128]
Expansion ROM at 50100000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2


0000:00:04.0 Ethernet controller: nVidia Corporation nForce2 Ethernet Controller
(rev a1)
Subsystem: ASUSTeK Computer Inc. A7N8X Mainboard onboard nForce2 Etherne
t
Flags: bus master, 66Mhz, fast devsel, latency 0, IRQ 16
Memory at e6086000 (32-bit, non-prefetchable) [size=4K]
I/O ports at e400 [size=8]
Capabilities: [44] Power Management version 2



it is a asus a7n8x delux (incase you wanted to look up anything about the NIC's) both are ethernet ports. as for the cisco clean access stuff, what it is to a windows box is an application you must run that makes sure virus protection, windows updates, firewall, etc are on, and you do not have a virus. to a linux box, it is simply a web login on boot. if i was kicked off the campus network, it would not allow me to open any internet connections until i logged in on a browser, this isnt the case because it just sits there trying to load a page until it times out.
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