Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-04-2003, 11:34 AM
|
#1
|
LQ Newbie
Registered: Oct 2003
Posts: 12
Rep:
|
Linksys router + linux problem
Ok where to begin I have tryed on about 4 different distro's but for some reason I can't get dhcp to work from my linux box to the linksys router. The nic card in my machine is the 8139too module (sorry if I can't give you more info I have only been working with linux for a couple of months now). If I turn dhcp off on my router and set ip's on both my winxp box and my linux box I can ping between the 2 and even oing my router but for some reason there is massive packet loss (it will send out 10 packets and only get 3-4 back). Currently I am running Red hat 9.0 on it (have gone through slackware 9, mandrake 9, and red hat 8) and when I run ifconfig my eth0 is picked up but I notice it says rx packets:129 errors:219 dropped: 0 overruns:0 frame:0
Perhaps someone can help me get my linux box up and running through my router using dhcp or even just using set ip's?
I have it setup liek this
cable internet going into wan of my router linux box in port 1 and winxp plugged into port 2
in both cases (static ip or dhcp) I can't get to the internet with my linux box and no matter what everything works fine with my winxp machine (as I am typing to you from it right now)
Last edited by demowipper; 10-04-2003 at 11:38 AM.
|
|
|
10-04-2003, 12:12 PM
|
#2
|
Member
Registered: Jun 2002
Location: Texas
Distribution: Slackware 10.1
Posts: 105
Rep:
|
have you filled in all the gaps for your linux box?
gateway address
internal ip of router (dhcp server)
dns
|
|
|
10-04-2003, 12:14 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Posts: 12
Original Poster
Rep:
|
Yes and no lol when I had it set to dhcp I didn't have to do that but I knwo the router ip is 192.168.1.1 so what I was thinking was that would be the gateway ip right? how would I go about getting the dns?
|
|
|
10-04-2003, 12:44 PM
|
#4
|
Member
Registered: Jun 2002
Location: Texas
Distribution: Slackware 10.1
Posts: 105
Rep:
|
yeah that should be your gateway. dns and all those goodies are located on the router. Just login to your router and go to the "status" tab. All that stuff should be there. I don't own one of those routers but I have worked on a couple. It seems unrelated but if dns isn't just so so it can create network problems.
|
|
|
10-04-2003, 12:47 PM
|
#5
|
LQ Newbie
Registered: Oct 2003
Posts: 12
Original Poster
Rep:
|
Ok I got my dns and filled that in still does work
Linux box
ip = 192.168.1.3
gateway = 192.168.1.1
netmask = 255.255.255.0
dns = 24.226.1.93
24.226.10.194
24.226.1.94
WinXp
ip = 192.168.1.2
Router
ip = 192.168.1.1
dhcp = disabled
any ideas?
|
|
|
10-04-2003, 12:53 PM
|
#6
|
Member
Registered: Jun 2002
Location: Texas
Distribution: Slackware 10.1
Posts: 105
Rep:
|
I can't remember for sure since its been a while since I've dealt with one of these routers. Seems like I had a fussy box and the router listed an external gateway address under the status tab and I plugged that addy into the fussy box and things got better. If you try and it doesn't work you can always change what you've done.
I do remember however that I had to manually add the dns addy's to a couple of win2k boxes to get them to see the internet through a linksys router.
Helpful tip: If this is a new router and you haven't changed the password for loging into it do so imediately. I promise you everyone in the world already knows your router password if you are using the default.
|
|
|
10-04-2003, 12:55 PM
|
#7
|
LQ Newbie
Registered: Oct 2003
Posts: 12
Original Poster
Rep:
|
 changed it a few weeks ago when I got it on top of that people can't connect to it from the internet
I'll try to work with what you just said
|
|
|
10-04-2003, 12:55 PM
|
#8
|
Member
Registered: Jun 2002
Location: Texas
Distribution: Slackware 10.1
Posts: 105
Rep:
|
you may need to try either rebooting box and/or resetting your router.
|
|
|
10-04-2003, 12:56 PM
|
#9
|
LQ Newbie
Registered: Oct 2003
Posts: 12
Original Poster
Rep:
|
I have rebooted the machine nearly 100 times in the last 3 days as for reseting the router I never tryed that that wil lbe my last resort
|
|
|
10-04-2003, 12:56 PM
|
#10
|
Member
Registered: Jun 2002
Location: Texas
Distribution: Slackware 10.1
Posts: 105
Rep:
|
keep checking back. I'll go run some searches for you.
|
|
|
10-04-2003, 12:57 PM
|
#11
|
LQ Newbie
Registered: Oct 2003
Posts: 12
Original Poster
Rep:
|
ok I shall I'll be here for a half an hour then I must jet to work for 4 hours but then I will be back here .... google didn't turn up much I tryed searching about a zillion times
|
|
|
10-04-2003, 01:06 PM
|
#12
|
Member
Registered: Jun 2002
Location: Texas
Distribution: Slackware 10.1
Posts: 105
Rep:
|
don't fear restarting your router. the worst possible scenerio is that you will have to restart your network boxes. Your stuff looks good according to what have posted thus far. have you tried to ping anything both outside and inside your network since your latest changes and restarts?
I WILL FIND YOU AN ANSWER!!! BEFORE THE PENGUIN I SWEAR IT!!!
Last edited by WingNut; 10-04-2003 at 01:12 PM.
|
|
|
10-04-2003, 01:21 PM
|
#13
|
LQ Newbie
Registered: Oct 2003
Posts: 12
Original Poster
Rep:
|
ok I restarted router didn't do much I tryed pinging someone outside and it wouldn't go I can ping my winxp box but it's strange as it will ping but with like 70% packet loss
If I do ifconfig it says theres a lot of rx errors under the rx packets... so my guess is something is screwed with that but I haven't a clue what rx packets are
well I gotta head to work so I'll cya in 4-5 hours
|
|
|
10-04-2003, 02:13 PM
|
#14
|
LQ Newbie
Registered: Oct 2003
Location: Arlington, Texas
Distribution: Linux Slackware 9.1
Posts: 10
Rep:
|
I am not sure if anyone has mentioned this yet, just glanced over the posts. However, I am using Slackware Linux 9.1 with a Linksys Router. In linux, setup static IP address and input the following:
IP Address: 192.168.1.110 (This will assign the IP address 192.168.1.110 to your computer.)
Subnet: 255.255.255.0
Gateway: 192.168.1.1
Dns Server: 192.168.1.1
This will setup a static IP address for your computer system instead of using dhcp (letting the router assign a IP address to your pc everytime you restart).
|
|
|
10-04-2003, 03:02 PM
|
#15
|
Member
Registered: Jun 2002
Location: Texas
Distribution: Slackware 10.1
Posts: 105
Rep:
|
you need to get that ping thing resolved. I have never had that problem other than with bad hardware. Do you have any of the following available to you.
extra patch cable
switch hub (to take the router out of the mix)
extra nics to test with
I'm sure some of the software settings can cause that problem like if multicast is missing from your kernel but I have never had that problem related to anything but hardware.
The only thing I have done differently is add routes to my Slack box like:
route add -host 255.255.255.255 dev eth0
or
route add 255.255.255.0 dev eth0
frostbyte might be on to something with dns.
print out your full ifconfig data if you can.
|
|
|
All times are GMT -5. The time now is 09:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|