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.
I'm trying to connect my little debian box to our home network, but i'm having some trouble.
Our network consist of two windows computers
(10.0.0.2 & 10.0.0.3), and a router (10.0.0.1)....
I've set my computer to 10.0.0.4.
All computers are connected trough a switch
Now the problem is that i can't ping any of the computers on the network (I can ping 10.0.0.4 (myself)).
I believe this is a routing problem.
This Is my ifconfig:
InetAddr: 10.0.0.4 -- Bcast:10.0.0.255 -- Mask:255.255.255.0
This is the info I get when i just type route
Dest. Gatew. Genmask. ......................................
localnet * 255.255.255.0 U
default 10.0.0.1 0.0.0.0 UG
Both on eth0
The first line pops right up, but second one comes up after a couple of seconds (I don't know if this is part of the problem)
It probably is part of the problem since it doesn't know the route to the 10. network. Try adding:
route add -net 10.0.0.0 netmask 255.255.255.0 dev eth0
The "localnet" entry in the route table seems to be the route to 10.0.0.0... When I added the line you said, i just got another one . Can It be something else?
Your settings look fine. Have you verified the connection is ok? Are you getting link lights? perhaps you could swap the cables for one that works with a windows machine to make sure it is not faulty.
Do you have routed on your machine?
If you do start it bytyping "routed" and enter at a prompt.
Your missing an entry in your routing table for 127.0.0.0, routed might fix it, if not add it manually and see what happens.
So it looks like this:
(my routing table on my desktop)
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.23.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.0.23.1 0.0.0.0 UG 0 0 0 eth0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.