Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-01-2011, 03:00 PM   #1
LQ Newbie
Registered: Mar 2010
Location: Montevideo-Uruguay
Distribution: Debian
Posts: 4

Rep: Reputation: 0
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
Old 07-05-2011, 11:57 AM   #2
LQ Newbie
Registered: Mar 2010
Location: Montevideo-Uruguay
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
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 = ( )


hosts = ( 201_221_40_180 )


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CFengine configuration management sem007 Linux - Software 3 08-06-2010 08:13 AM
LXer: Cfengine Revs Up Configuration Management LXer Syndicated Linux News 0 04-23-2010 11:10 PM
LXer: Tweaking dhcp client configuration to change the default DNS servers to Open DN LXer Syndicated Linux News 0 08-14-2009 03:10 AM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 11:01 AM
How to change the default webpage configuration from index.php to index.htm, etc meema Linux - Server 4 08-22-2008 10:06 PM

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration