Linux - NetworkingThis 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.
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.
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.
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?
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???
[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
[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
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.
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.
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.