RE: What are the correct NETMASKs for multiple PPPoE interfaces in aStaticIP block?

"Derek Cooke" <[email protected]> Mon, 14 Apr 2008 10:45:33 -0400
Newsgroups gmane.linux.redhat.ppp
Message-ID <[email protected]>
I believe that that your netmask's all stay the same for each connection.

A netmask is set for segment of IP address.  In your example the segment of
address is from 232 to 239 with the netmask of 29.

So each of your PPPoE connections would all have the same netmask:
        ppp0:1, IP address = x.x.x.233/29 
        ppp0:2, IP address = x.x.x.234/29
        ppp0:3, IP address = x.x.x.235/29
        ppp0:4, IP address = x.x.x.236/29
        ppp0:5, IP address = x.x.x.237/29

Network calculators can be used to figure out you netmask as well
http://apps.csc.fi/laskin2.html

netmask 10.0.0.232-10.0.0.239
10.0.0.232/255.255.255.248 10.0.0.232/0.0.0.7 10.0.0.232/ 29

..Derek

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gerianne McC
Sent: Monday, April 14, 2008 10:26 AM
To: [email protected]
Subject: What are the correct NETMASKs for multiple PPPoE interfaces in
aStaticIP block?

Hi,

I'm connecting via PPPoE to my ISP (SBC).

I've a static IP /29 assigned to me (x.x.x.232 - x.x.x.239).

To 'get at' (for firewalling, etc, eventually) all the static IPs,
I've setup RHEL's in-kernel PPPoE to negotiate the connection through
an ADSL mode config'd in bridge-mode.

I'm confused about assigning NETMASKs.

I'm making my primary ppp connection at interface

        ppp0, IP address = x.x.x.238

and setting up interface aliases of,

        ppp0:1, IP address = x.x.x.233
        ppp0:2, IP address = x.x.x.234
        ppp0:3, IP address = x.x.x.235
        ppp0:4, IP address = x.x.x.236
        ppp0:5, IP address = x.x.x.237

using an intfc cloning range defined in
"/etc/sysconfig/network-systems/ifcfg-ppp0-range0"

I plan to handle each interface ppp0 + ppp0:1-5 separately in my firewall.

Questions:

What should be the NETMASK for the primary 'ppp0'? /29 or /32?
And for each of the aliases?

If the right answer if ppp0 -> /29, & ppp0:# -> /32, should I ALSO
create an alias ppp0:6, IP address = x.x.x.238 (same as ppp0 !?) but
with a /32?

Thanks.

Geri :-)

_______________________________________________
Redhat-ppp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ppp-list