Hello again everyone,

I'm experimenting with the latest iproute2 in my builds.  I just found
out that rc7 allows netmask (x.x.x.x style) notation unlike the
current stable.  It accepts it in the same way that it accepts PREFIX
from the bootscripts so technically nothing needs to be changed to
support it.  The section on configuring the boot scripts could use
mention of this once LFS moves to 2.6.24.


Old section (7.13. Configuring the network Script):

The PREFIX variable needs to contain the number of bits used in the
subnet. Each octet in an IP address is 8 bits. If the subnet's netmask
is 255.255.255.0, then it is using the first three octets (24 bits) to
specify the network number. If the netmask is 255.255.255.240, it
would be using the first 28 bits. Prefixes longer than 24 bits are
commonly used by DSL and cable-based Internet  Service Providers
(ISPs). In this example (PREFIX=24), the netmask is 255.255.255.0.
Adjust the PREFIX variable according to your  specific subnet.


Updated slightly:

The PREFIX variable needs to contain the number of bits used in the
subnet. Each octet in an IP address is 8 bits. If the subnet's netmask
is 255.255.255.0, then it is using the first three octets (24 bits) to
specify the network number. If the netmask is 255.255.255.240, it
would be using the first 28 bits. Prefixes longer than 24 bits are
commonly used by DSL and cable-based Internet  Service Providers
(ISPs). In this example (PREFIX=24), the netmask is 255.255.255.0.  As
of iproute2-2.6.24 the PREFIX variable can be expressed in either
netmask notation (eg. PREFIX=255.255.255.0) or as an integer of how
many bits to use (eg. PREFIX=24).  Adjust the PREFIX variable
according to your specific subnet in whichever notation you are
comfortable with.


Jonathan
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to