Re: net_mask 255.255.255.255

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nicholas Hickman writes:
> What is the reason for the lines 2362 & 2363 in sys-linux.c?  Why not
> just accept the netmask option from the peer config?

Netmask doesn't really mean anything for a point-to-point link.  A
point-to-point link (unlike broadcast or NBMA) has just two peers --
the local system and the one at the other end.  There's no "subnet"
involved, nor any "broadcast" address, nor any L2-related way to talk
about any other nodes on the "local network."

For users who insist on setting up PtP links as though they were
Ethernet interfaces, pppd accepts (and ignores) the netmask option.
:-/

In most cases where you 'want' to set up a netmask, what you actually
need is a static route pointing to a remote network reachable through
the peer node or (better yet) a dynamic routing protocol.

-- 
James Carlson         42.703N 71.076W         <carlsonj@xxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux