Hi, yes the reason i used a placeholder there is that the REF is the internal reference ID which can easily differ massively from box to box. Here is an cut and paste of my output where I just performed this, as requested...as troll mentions, usually the eth0 is labelled as his post, however if you have moved it or otherwise worked with the interfaces it *can* be different. In the example below on a test box of mine, the unit actually has 2 addresses, and i've disabled the internal/eth0 and now need to re-enable it... my commands typed are in red. Hope this helps!
*How to re-enable a turned off Interface via the Astaro CC*
angeloasg2:/home/login # cc
Confd command-line client. Maintainer: <ischwarze@astaro.com>
$Id: confd-client.pl,v 1.107.2.8.2.8.4.2 2009/05/22 09:32:08 ischwarze Exp $
Connected to 127.0.0.1:4472, SID = hOZShjvTIcVWHIRClmPd.
Available modes: MAIN OBJS RAW WIZARD.
Type mode name to switch mode.
Typing 'help' will always give some help.
127.0.0.1 MAIN > RAW
Switched to RAW mode.
127.0.0.1 RAW > lock_override
Calling Confd function lock_override
result: 1
127.0.0.1 RAW > OBJS
Switched to OBJS mode.
127.0.0.1 OBJS > interface
127.0.0.1 OBJS interface > ethernet
127.0.0.1 OBJS interface ethernet > *Pushed TAB to get a list*
MAIN RAW REF_PqlWxyNZFh[Internal,interface,ethernet]
OBJS REF_DefaultInternal[External,interface,ethernet] WIZARD
127.0.0.1 OBJS interface ethernet > REF_DefaultInternal[External,interface,ethernet] (just use TAB to autocomplete)
Logged into object 'REF_DefaultInternal'. Use 'w' to write eventual changes.
{
'link' => 1,
'proxyarp' => 0,
'inbandwidth' => 0,
'additional_addresses' => [],
'status' => 0,
'name' => 'External',
'itfhw' => 'REF_ItfHwDefaultInternal',
'bandwidth' => 100000000,
'comment' => 'Auto-created on installation',
'primary_address' => 'REF_ItfParamsDefaultInternal',
'outbandwidth' => 0,
'mtu' => 1500
}
127.0.0.1 OBJS interface ethernet [REF_DefaultInternal] > status=1
{
'link' => 1,
'proxyarp' => 0,
'inbandwidth' => 0,
'additional_addresses' => [],
'status' => '1',
'name' => 'External',
'itfhw' => 'REF_ItfHwDefaultInternal',
'bandwidth' => 100000000,
'comment' => 'Auto-created on installation',
'primary_address' => 'REF_ItfParamsDefaultInternal',
'outbandwidth' => 0,
'mtu' => 1500
}
127.0.0.1 OBJS interface ethernet [REF_DefaultInternal] > w
{
'ref' => 'REF_DefaultInternal',
'lock' => '',
'hidden' => 0,
'type' => 'ethernet',
'class' => 'interface',
'data' => {
'link' => 1,
'proxyarp' => 0,
'inbandwidth' => 0,
'additional_addresses' => [],
'status' => '1',
'name' => 'External',
'itfhw' => 'REF_ItfHwDefaultInternal',
'bandwidth' => 100000000,
'comment' => 'Auto-created on installation',
'primary_address' => 'REF_ItfParamsDefaultInternal',
'outbandwidth' => 0,
'mtu' => 1500
}
}
Changes to object saved successfully.
{
'link' => 1,
'proxyarp' => 0,
'inbandwidth' => 0,
'additional_addresses' => [],
'status' => 1,
'name' => 'External',
'itfhw' => 'REF_ItfHwDefaultInternal',
'bandwidth' => 100000000,
'comment' => 'Auto-created on installation',
'primary_address' => 'REF_ItfParamsDefaultInternal',
'outbandwidth' => 0,
'mtu' => 1500
}
127.0.0.1 OBJS interface ethernet [REF_DefaultInternal] >quit
__________________
Angelo Comazzetto
Astaro AG
--------------------------------------------------------
Visit the KB for documentation and help ( www.astaro.com/kb)
Astaro is FULLY free for home use, including all subscriptions. Download it from http://my.astaro.com
Last edited by AngeloC; 07-02-2009 at 02:44 PM.
|