LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Change the default interface in CFEngine configuration (http://www.linuxquestions.org/questions/linux-server-73/change-the-default-interface-in-cfengine-configuration-889425/)

lulu_go 07-01-2011 02:00 PM

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

lulu_go 07-05-2011 10:57 AM

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 = ( 201.221.40.180 )

this:

hosts = ( 201_221_40_180 )


All times are GMT -5. The time now is 07:48 PM.