help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: defaultroute


From: John Borwick
Subject: Re: defaultroute
Date: Thu, 08 Jul 2004 08:35:02 -0400
User-agent: Mozilla Thunderbird 0.6 (X11/20040610)

Armin Wolfermann wrote:
* John Borwick <borwicjh@wfu.edu> [07.07.2004 15:38]:

For the trivial configuration file
control:
       netmask = ( 255.255.255.0 )
       actionsequence = ( defaultroute )

defaultroute:
       10.1.1.254

Try
        actionsequence = ( netconfig )

instead. This is a bit ...hrrrrm... non-intuitive, but all these
special actions like defaultroute, broadcast and interfaces get
executed by netconfig.

Thank you!

With a configuration file like the following, the default route is still not set. Are more variables needed?

-=-=- begin -=-=-
control:
        actionsequence = ( netconfig )
        netmask = ( 255.255.254.0 )
  # just because cfengine wasn't detecting the right interface:
  freebsd::
        InterfaceName = ( fxp0 )
  linux::
        InterfaceName = ( eth1 )

defaultroute:
        10.40.251.254

broadcast:
        ones
=-=-=  end  =-=-=

FreeBSD complains:
[...]
Assumed interface name: fxp0 255.255.254.0 one
Checking interface status...
Looking at default route...
cfengine::/var/cfengine/inputs/cfagent.conf:Software error: set default route


Red Hat Workstation 3 silently ignores the failure:
[...]
---------------------------------------------------------------------
Network interface configuration
---------------------------------------------------------------------

Assumed interface name: eth1 255.255.255.0 one
Checking interface status...
Looking at default route...
---------------------------------------------------------------------
Alerts
---------------------------------------------------------------------
[...]

Thank you very much!
John
--
           John Borwick
       Systems Administrator
      Wake Forest University | web  http://www.wfu.edu/~borwicjh
      Winston-Salem, NC, USA | GPG key ID               56D60872

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]