Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Does /31 subnet mask support really exist in Linux? FYI, I am using the linux version 2.6.34.
As part of my trails, I have two linux boxes connected back to back. I am able to configure the interface addresses with a /31 netmask viz., 192.168.10.4 and 192.168.10.5 successfully. 'ifconfig' output confirms that. But I am not able to ping the other address from 192.168.10.4 and vice-versa.
So, I just doubt if this is really supported? If yes, Am I missing something?
i've always configured 2 host subnets as /30's then there's no conceptual issue here. I'm actually not sure whether a /31 subnet is meant to work according to RFC's (potentially regardless of reality). Does it work on a /30? (shifting the hosts up by one to fit nicely) Can you see any arps coming or going from a tcpdump?
I would say that if it works, congrats, but don't be at all surprised, or annoyed, if it doesn't. I just skimmed over the RFC from 2000 advocating it, and I don't like the idea of it outside of IP space conservation. Can you not use a /30?
Last edited by acid_kewpie; 01-20-2012 at 06:45 AM.
Thanks for your response, Chris. That was helpful.
I am in a necessity to work with /31's as part of my project work. It looks like it works with /30's. With /31's, I don't see any ARPs coming out on the wire. When we configure an interface with a /31 address one end of the link is a broadcast address. Is it because of some validations in the linux kernel code concerning the broadcast addresses that is preventing the (ARP/IP) packets to be sent out? If so, do we need to customize the kernel code to achieve this? Has anyone achieved success in making the /31's work?
We're using /31 on all link networks between Cisco routers - directly connected as well as for IP tunnels. It works well and doubles the ammount of available link networks, which is good in respect to IPv4 depletion. So I would be pleased if it works on Linux too. Does anybody have any experience with it?
The key here is the the following:
ifconfig eth0 pointtopoint <IPADDR>
This seems to work however I'm trying to work out how to hard code it...
I noticed via tcpdump without the above the interface will receive the traffic however the network stack doesn't seem to know how to send packets back.