Change the default interface in CFEngine configuration
Hello, I'm using CFEngine 2.2.8 to configure a network of Debian servers, the servers have two interfaces eth0 and eth1, how can I configure cfagent to take as the default interface eth1?
eth0 is the internal interface and eht1 is the one with the public IP, I need to define classes based on lists of public IPs and it would be really helpfull if I could use functions as IPRange that only consider IP in eth0 interface.
Thank you very much for your help
I was confused because my classes defined based on internal IPs were with IPRange functions, that accept dots in IP definitions. I thought the problem was me using the public IP, anyway I found the way of doing it is changing dots . for underscores _ it has nothing to do with default interfaces.
instead of this:
hosts = ( 18.104.22.168 )
hosts = ( 201_221_40_180 )
|All times are GMT -5. The time now is 02:09 AM.|