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 have a AMD sempron machine and a PI 233 MHz machine
The AMD machine has to ethernet cards and having internet connection on one of the cards.
I would like to build up a network of these two computers with an 8 port switch. As it is a PI machine windows or other distros of linux are dead slow and takes hours of time for installation. I installed debian etch and is working satisfactorily though it is slow.
Windows XP is installed in the AMD machine and debian on PI
I have assigned 192.168.0.3 to the PI machine and able to ping this machine from that machine but doing so from the AMD machine creates a network unreachable message.
I have edited the networks interface correctly on the debian system
When I am trying to ping from one machine to other, the 2 led signals of the switches blinks - means something is happening in the switch when i issue the command. I have also added the proper route commands
route add -net 192.168.0.0 dev eth0
It might be that your Debian machine is configured to ignore ICMP Echo requests; if that is so, the AMD box will decide the host is unreachable after a bit. To check this, try the command
Code:
# echo /proc/sys/net/ipv4/icmp_echo_ignore_all
This ought to print 0; if it prints 1, you should set it to 0 with
Code:
# echo 0>/proc/sys/net/ipv4/icmp_echo_ignore_all
But if your Windoze machine reports "Network Unreachable", that probably means that its route table is wrong, or the IP address of the ethernet interface that you have connected to the switch is not what you think it is.
If these simple checks do not yield anything, I commend you to the tcpdump manpage. Set this program to listen on the 192.168.0.3 interface of the Debian machine, and see what packets go in both directions.
It might be that your Debian machine is configured to ignore ICMP Echo requests; if that is so, the AMD box will decide the host is unreachable after a bit. To check this, try the command
Code:
# echo /proc/sys/net/ipv4/icmp_echo_ignore_all
This ought to print 0; if it prints 1, you should set it to 0 with
Code:
# echo 0>/proc/sys/net/ipv4/icmp_echo_ignore_all
But if your Windoze machine reports "Network Unreachable", that probably means that its route table is wrong, or the IP address of the ethernet interface that you have connected to the switch is not what you think it is.
If these simple checks do not yield anything, I commend you to the tcpdump manpage. Set this program to listen on the 192.168.0.3 interface of the Debian machine, and see what packets go in both directions.
I think tcpdump program is not installed in my debian computer. It reports with a file not found message.
You don't say what the results of the preliminary checks were, so I assume that you have actually followed up on them, and found that everything is OK there.
In that case, your best option is to install tcpdump and use it. I think on Debian machines, the command is apt-get. On my Fedora systems, tcpdump is not necessarily available to casual users; it is found in /usr/sbin. So you might want to check if your $PATH variable is set to include /sbin and /usr/sbin (or, if tcpdump is in one of these obscure directories, you can just invoke it explicitly. For example,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.