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've a server with two NIC.
Sometimes the server becomes unreacheable. When this happens, I did a reboot and then it works.. but when looking at the interface status (with ifconfig command), I've notice several "errors".
So, I've tried to change NIC.. but the problem occurs again.
I've also changed the port on the switch.
Are both NICs connected to the same router? If so do they have different names and software addresses?
I believe that if they are connected to the same router then they should have different names and software addresses. Otherwise the router may become confused when mapping the hardware address to the software address.
Are both NICs connected to the same router? If so do they have different names and software addresses?
I believe that if they are connected to the same router then they should have different names and software addresses. Otherwise the router may become confused when mapping the hardware address to the software address.
But I could be wrong.
I have many machines with multiple NICs configured with the same address. This is for fallback redundancy, not load balancing. To make this work right, I set rp_filter to 0 to disable RFC3704 Strict Reverse Path and RFC3704 Loose Reverse Path (intended to prevent in-LAN DDos attacks via IP spoofing). This allows asymmetric paths. If you trust your LAN, this should be OK.
Code:
(for f in /proc/sys/net/ipv4/conf/*/rp_filter;do echo 0 >$f;done)
Collect the IPv6 link-local addresses of your machines with 2 or more NICs. On another machine, ping or SSH in to the machines with non-working IP addresses to see if these IPv6 addresses are working. On the client, you will need to append "%eth0" to the address (or replace "eth0" with whatever client interface can reach the server target NIC). Even if the IPv4 addresses, ARP, or routing gets messed up, if it is on the same LAN with a transparent switch, IPv6 should be able to connect. Try the connection against each interface. If you can get in via SSH, it might be more convenient to diagnose trouble since you are at another machine that can be try to make connections to IPv4 addresses.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.