LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2001, 12:32 AM   #1
syxxpac023
Member
 
Registered: Aug 2001
Location: Knoxville, TN
Distribution: RedHat 7.1
Posts: 61

Rep: Reputation: 15
Linksys Router problem.. again.


This is a repost because someone posted to the last post and said that they would e-mail me with help after I e-mailed them and they never did reply so I'm gonna try this again....Ok, I had my cable internet working before and then I decided to network another computer to my house and bought this Linksys router. Well, I set it up in Winblows and everything works just fine. But, no matter what I do, it will NOT work in Linux at all. I can not even get it to find the router let all alone the internet. I have RedHat 7.0. I can't find another thread describing how to set this up properly but if someone could please help me do this, I would definitely appreciate it. Thanks in advance.
 
Old 09-03-2001, 07:47 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
sorry about that, it was me.. haven't checked my email in a few days..

sounds to me it might be a problem in your default gateway for you linux box to see.

what output do you get from ifconfig eth0?
that way we can determine if your network card is somewhat recognized and installed right.
what kind of nic? and what distro are you using?
what happens if you try the router ip in your browser window? and also what linksys model did you get?
 
Old 09-04-2001, 06:54 AM   #3
Leilani
LQ Newbie
 
Registered: Sep 2001
Location: Honolulu, Hawaii
Distribution: Mandrake 8.0
Posts: 5

Rep: Reputation: 0
Question

I have a linksys router as well
with mandrake 8.0, redhat 7.1, and winblows accessing the
internet with ease thanks to DHCP

I need more info...it may BE the router

the router: are all three LEDs lit up? (link, full, and 100) for
each pc connnected?

because...i see that winblows on my router has all
three LEDs lit, where mandrake has only the link LED lit
and this is probably why i can access the internet
but not ping anything else on the lan

does anybody have any other suggestions?

speaking of PING...try see if you can ping the router (192.168.1.1)
i can

what about the loopback ping? 127.0.0.1
i can also do that

but i cant ping my LAN neighbor at 192.168.105

can someone help the two newbies behind a router???
 
Old 09-04-2001, 08:21 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
One thing you might do is see if it is setup for dhcp or static.

If you did not have to put in an ip address in the windows boxes then it probably is.

In this case you need to setup dhcpcd.
======================================
I just do dhcpcd -h ccxxxxxxx-a

and then ifconfig

to see if my address is right.

you may want to try this by hooking up your linux box to the cable modem.


[root@alpha /root]# dhcpcd -h ccxxxxxxx-a
[root@alpha /root]# ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:65.24.56.228 Bcast:65.24.56.255 Mask:255.255.255.128
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:202202 errors:0 dropped:0 overruns:0 frame:0
TX packets:146506 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xd800

==================================

[root@alpha network-scripts]# dhcpcd --help
DHCP Client Daemon v.1.3.18
Copyright (C) 1996 - 1997 Yoichi Hariguchi <yoichi@fore.com>
Copyright (C) January, 1998 Sergei Viznyuk <sv@phystech.com>
Usage: dhcpcd [-dknrBCDHRT] [-l leasetime] [-h hostname] [-t timeout]
[-i vendorClassID] [-I ClientID] [-c filename] [-s [ipaddr]] [interface]


===================================

Or pump.

[root@alpha network-scripts]# pump --help
Usage: pump [OPTION...]
-c, --config-file=STRING Configuration file to use instead of
/etc/pump.conf
-h, --hostname=hostname Hostname to request
-i, --interface=iface Interface to configure (normally eth0)
-k, --kill Kill daemon (and disable all interfaces)
-l, --lease=hours Lease time to request (in hours)
--lookup-hostname Force lookup of hostname
-r, --release Release interface
-R, --renew Force immediate lease renewal
-s, --status Display interface status
-d, --no-dns Don't update resolv.conf
--no-gateway Don't set a gateway for this interface
--win-client-ident Set the client identifier to match Window's

Help options:
-?, --help Show this help message
--usage Display brief usage message

=======================================

and check this

[root@alpha network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@alpha network-scripts]# cat ./ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
DHCP_HOSTNAME=puthostnamehere

-------------------------------------------

also about the default gateway

try this

[root@alpha network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
65.24.56.228 0.0.0.0 255.255.255.128 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
11.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 65.24.56.129 0.0.0.0 UG 0 0 0 eth0


make sure the line with UG is your default gateway ip address.


if it's wrong then do this

route del default gateway

then.. or if there is no default gateway

do this

route add default gw 65.24.56.129

use your default gateway (router address)



-------------------------------------------------------------------------------
if you have a hub or crossover cable you could hook the linux box and another box together. All they need is to have ip addresses on the same network to ping each other, this will tell you if it is working. no default gateway is needed, you can delete the default gateway for this test. The packet will be routed to the interface because of the route

[root@alpha network-scripts]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0




example:

windows:

C:\WINDOWS>ipconfig


Windows IP Configuration

0 Ethernet adapter :

IP Address. . . . . . . . . : 192.168.0.2

Subnet Mask . . . . . . . . : 255.255.0.0

Default Gateway . . . . . . : 192.168.0.1


linux:

[root@alpha /root]# ifconfig eth0 192.168.0.3 netmask 255.255.0.0


then try pinging the windows box.



If all this works I would say you need to look at your router docs to see what is required from it to serve dhcp.


Last edited by DavidPhillips; 09-04-2001 at 08:52 AM.
 
Old 09-04-2001, 12:43 PM   #5
syxxpac023
Member
 
Registered: Aug 2001
Location: Knoxville, TN
Distribution: RedHat 7.1
Posts: 61

Original Poster
Rep: Reputation: 15
I'm not at home to be doing all of this right now.. I'll try some of these things when I get home. What I do know is that I can not ping the router. In Windows, everything is fine. I know it's not the network and I know it is compatable with Linux because I had it working before. All 3 LED's are lit up so that's not the problem. When I get home this evening I'll try the other suggestions.
 
Old 09-05-2001, 09:38 PM   #6
Jr27
LQ Newbie
 
Registered: Sep 2001
Posts: 2

Rep: Reputation: 0
I had the same problem as you, I found that if you can force the card on your linux box to 10Mbs half duplex not 100Mbps full duplex as it is now, It will work. I had a 10Mbps hub which I connect to the uplink of the linksys and then connecvt my linux box to the hub. Also if you have a cat3 cable you will force he card to half duplex. There migth be another way to force the card but I have not found a way yet, and I have asked that question here but I received no respones.

Hope this helps
 
Old 09-22-2001, 09:07 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I have three Linksys LNE100TX ver 4.0 cards in my server, my cable modem is connected to one of them directly, it's running at 10M. The other two are connected to PC's with 100M cards and they are running at 100M (according to the lights.) These cards all have the same settings so it appears to be automatic.
 
Old 09-24-2001, 01:02 PM   #8
Bud
LQ Newbie
 
Registered: Sep 2001
Posts: 1

Rep: Reputation: 0
I too seems to have the same problem with my Linksys router. My Linux box is connected to the router on port 1. I also have one machine that has Windows 9x connected to port 2 of the router. The cablemodem is hooked up in the wan port. So everything seems to be plugged in correctly as the manual says.
The Win 9x machine works fine with internet connection. But I recently installed a new OS on my Linux box, Slackware 8.0. I was able to reach the router by setting its ip as the gateway.

I've never configured Linux for a router before so please bear with me... Do I use DHCP or Static ip in the netconfig program? The Linksys manual says that having two dhcp enabled both in the os and the router will cause problems. Also, The ip of the Linux box should be 192.168.1.100, correct? And the gateway should be 192.168.1.1 (the ip of the router which functions as a dhcp server in itself), right? And there is also a Network ip? What should that be set to? What about the broadcast ip? I set the subnet mask as 255.255.255.0.

So far, I'm only able to access the router, but no internet connection as of yet...

Any tips or help would be greatly appreciated!

Many thanks,
Bud

Last edited by Bud; 09-24-2001 at 01:04 PM.
 
Old 09-25-2001, 03:07 AM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Not real familiar with hardware routers but I think you will need to put some DNS servers in the /etc/resolv.conf file to use the internet with web site names.

try pinging a known ip address on the www, like

ping 216.148.218.195


see if it works
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linksys router + linux problem demowipper Linux - Networking 21 10-08-2003 08:09 PM
Linksys wireless router problem oulevon Linux - Wireless Networking 2 09-20-2003 08:50 AM
router problem with linksys router scheiße_comp Linux - Networking 10 08-20-2002 10:18 AM
Linksys Router Problem syxxpac023 Linux - Networking 5 11-14-2001 11:33 PM
Linksys Router problem.. again. syxxpac023 Linux - Networking 1 09-03-2001 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration