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 want to set up a mini lan in my house. I jus wanna connect 2 computers. One is running red hat linux 8 and the other one Fedora 4.
I tried setting up the network in windows xp and it worked quite well. It also worked when both computers running rh linux 8.
The problem is, the kernel 2.6 ( running on FC 4) is not accepting the packets sent by rh linux 8. FC 4 sends a ARP packet to rh linux 8, and rh linux 8 replies with its mac address, but kernel 2.6 is not accepting them.
Does kernel 2.6 have any sort of firewall not present in 2.4 series ??
Only two computers - are you using a router or a crossover cable? If you're using a router are you using dhcp to configure ip addresses or setting them statically? I always set mine static and never had a problem.
These might be dumb questions:
Is the network name the same on both?
Are both ip addresses on the same subnet? (netmask)
In addition to ifconfig, could you also post the output of route as well after the interfaces are configured properly?
Start sniffing the network interfaces in normal mode as root (like tcpdump -e) at both ends, then try ping:
- loopback
- own IP - not loopack
- one of the hosts from the other.
Make sure you direct these packets through the questioned interfaces
Please post the dump, and the output of arp -n if you can.
Thanks
Regardless of your distro, you should be able to do the following to connect 2 linux computers:
If your switch supports DHCP (Most do nowadays by default):
- Make sure the switch has enough IP's to lease, if there is a MAC filter add the physical addresses of the Linux computers' network interfaces
- run ifconfig eth0 up (replace eth0 with actual name of network interface)
- dhcpcd eth0 OR dhclient eth0 (depending if you have dhcdcd or dhclient installed, replace th0 with actual name of interface)
- The systems should be able to talk to each other (Assuming no firewalls are active, etc)
- Check route, arp -n and ifconfig.
The connection will not start on boot. For that, you will need to modify distro specific files. If you have further problems, please reply.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.