Shared Network Statement

A shared network statement is used to group two or more subnets. If each department is assigned a subnet of 30 hosts, but a department grows too large and requires two subnets, these two subnets might be grouped together and served by the same DHCP server (see Listing 23.4).

Code Listing 23.4. A Sample Shared Network Statement
shared-network MARKET-NET {
    option domain-name  market.void.org ;
    option routers 192.168.1.1;
    subnet 192.168.1.0 netmask 255.255.255.224 {
        range 192.168.1.3 192.168.1.30;

        option routers 192.168.1.2
    }
    subnet 192.168.1.32 netmask 255.255.255.224 {
        range 192.168.1.35 192.168.1.62;
        option routers 192.168.1.33;
    }
}

In Listing 23.4, the shared network has its own domain name below void.org of market.void.org. ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.