Forum: Cfengine Help
Subject: sys.ipv4 and multiple addr
Author: bglomm
Link to topic: https://cfengine.com/forum/read.php?3,20692,20692#msg-20692
Hi all,
I've got a question to sys.ipv4.
On one machine I do a
"up ip addr add x.x.x.x/y dev eth0:1"
in my /etc/network/interfaces after bringing up eth0 with the first, also
static, ip (because - well I like to have a second address for some services
there).
Now in my cfengine I would need to access the "first" address on eth0, or at
least (even better) being able to distinguish between multiple ip addresses on
one interface...
sys.ipv4 results in the address of eth0:1 though and getindices("sys.ipv4")
only shows me "eth0"
any idea? TIA!
Bernhard
P.S.: This belongs to/I'm running: cfengine corecomV 3.0.5 as it comes in
debian/squeeze
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine