3.8 Networks

IP_NET_N

Default Setting: IP_NET_N='1'

Number of networks to bound to the IP procotol, normally one (`1'). If you set IP_NET_N to zero because you don't have any IP networks or because you configure them in a different way, mkfli4l will emit a warning when building the archives. You can disable this warning by using IGNOREIPNETWARNING='yes'.

IP_NET_x

Default Setting: IP_NET_1='192.168.6.1/24'

The IP address and the net mask of the router's n-th device using the CIDR3.1 notation. If you want the router to receive its IP address dynamically via a DHCP-client it is possible to set this variable to 'dhcp'.

The following table shows how the CIDR notation and the dot notation for net masks are connected.

CIDR Net mask Number of IP addresses
/8 255.0.0.0 16777216
/16 255.255.0.0 65536
/23 255.255.254.0 512
/24 255.255.255.0 256
/25 255.255.255.128 128
/26 255.255.255.192 64
/27 255.255.255.224 32
/28 255.255.255.240 16
/29 255.255.255.248 8
/30 255.255.255.252 4
/31 255.255.255.254 2
/32 255.255.255.255 1

Note: As one address is reserved for the network and one for broadcasting, the maximum number of hosts in the network is computed by: Number_Hosts = Number_IPs - 2. Consequently, the smallest possible net mask is /30 which corresponds to four IP addresses and hence to two possible hosts.

IP_NET_x_DEV

Default Setting: IP_NET_1_DEV='eth0'

Required: device name of the network adapter.

Starting with version 2.1.8, the name of the device used has to be supplied! Names of network devices typically start with 'eth' followed by a number. The first network adapter recognized by the system receives the name 'eth0', the second one 'eth1' and so on.

Example:

        IP_NET_1_DEV='eth0'

The fli4l router is also able to do IP aliasing, i.e. to assign multiple IP addresses to a single network adapter. Additional IP addresses are simply specified by linking another network to the same device. When mkfli4l checks the configuration you are informed that you define such an alias--you can ignore the warning in this case.

Example:

        IP_NET_1='192.168.6.1/24'
        IP_NET_1_DEV='eth0'
        IP_NET_2='192.168.7.1/24'
        IP_NET_2_DEV='eth0'

IP_NET_x_MAC

Default Setting: IP_NET_1_MAC=''

Optional: MAC address of the network adapter.

With this variable you are able to change the hardware address (MAC) of your network adapter. This is useful if you want to use a DHCP provider expecting a certain MAC address. If you leave IP_NET_x_MAC empty or remove the variable definition completely, the original MAC address of your network adapter will be used. Most users will never need to use this variable.

Example:

        IP_NET_1_MAC='01:81:42:C2:C3:10'

IP_NET_x_NAME

Default Setting: IP_NET_x_NAME=''

Optional: Assigning a name to the IP address of a network adapter.

If you perform reverse DNS lookup of the network adapter's IP address, the result is typically a name like 'fli4l-ethx.<domain>'. You can use the variable IP_NET_x_NAME in order to change that name which will be returned when performing reverse DNS lookup. If the IP address is globally accessible, you can use this setting to enforce that reverse DNS lookups always return a globally accessible name.

Example:

        IP_NET_2='80.126.238.229/32'
        IP_NET_2_NAME='ajv.xs4all.nl'

IP_NET_x_TYPE

IP_NET_x_COMMENT

Default Setting: IP_NET_x_COMMENT=''

Optional: You can use this setting to assign a `meaningful' name to a network device. This name can then be used in packages like rrdtool for identifying the network.



Footnotes

... CIDR3.1
Classless Inter-Domain Routing
© 2001-2019 The fli4l-Team - 28 April 2019