Home | History | Annotate | Line # | Download | only in tests
      1  1.1  christos # DHCPv4 two pools and subnets shared-network declaration config
      2  1.1  christos 
      3  1.1  christos # shared-network declaration
      4  1.1  christos shared-network "foobar" {
      5  1.1  christos     # interface
      6  1.1  christos     interface "en0";
      7  1.1  christos     # option
      8  1.1  christos     option domain-search "example.com", "example.org";
      9  1.1  christos     # parameter
     10  1.1  christos     default-lease-time 1800;
     11  1.1  christos     # subnet declaration
     12  1.1  christos     subnet 10.5.5.0 netmask 255.255.255.224 {
     13  1.1  christos         # redefined parameter
     14  1.1  christos         default-lease-time 3600;
     15  1.1  christos         # another option
     16  1.1  christos         option ip-forwarding true;
     17  1.1  christos     }
     18  1.1  christos     # second subnet declaration
     19  1.1  christos     subnet 10.10.10.0 netmask 255.255.255.224 { }
     20  1.1  christos     # pools at shared-network level
     21  1.1  christos     pool {
     22  1.1  christos         range 10.5.5.5 10.5.5.10;
     23  1.1  christos     }
     24  1.1  christos     pool {
     25  1.1  christos         range 10.10.10.5 10.10.10.10;
     26  1.1  christos     }    
     27  1.1  christos }
     28