Next: , Previous: copy, Up: Command reference


1.8 defaultroute

Dynamical routing is not configurable in cfengine, but for machines with static routing tables it is useful to check that a default route is configured to point to the nearest gateway or router. The syntax for this statement is simply:

     
     defaultroute:
     
        class::
     
           my_gateway
     

For example:

     
     defaultroute:
     
       most::
     
          129.240.22.1
     
     
       rest::
     
          small_gw
     

Gateways and routers usually have internet address aaa.bbb.ccc.1 — i.e. the first address on the subnet. You may use the numerical form or a hostname for the gateway.