This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Enable eth0 in root login?

Hi all.

I made a mistanke in the webadmin and by a mistake i turned off my eth0:eek[:(]and lost the connection to it )

Can any hlp telling me how i can enable my eth0 again ?


Best Regards 
Lakrids.


This thread was automatically locked due to age.
Parents Reply Children
  • Hi, 

    which version of ASG are you using?

    thx Gert

    Hi gert.

    i use V7.

    i just solved the problem,  i used a backup on a usb stick and boot on it, and made a system restore.

    Thx.
  • Allright, i like that feature [:)]
    thx Gert
  • Just in case you ever need the command line for how to re-enable a "disabled" interface:

    at the prompt with root priv's, type:

    cc
    RAW
    lock_override
    OBJS
    interface
    ethernet (or cable, or other type the interface that is down is)
    REF_*interface-reference-name*
    (you should get an output of the interface, showing status=0)
    status=1
    w  (writes the changes)

    Process Complete!
  • Angelo.

    I am trying to use cc to re-enable eth0 but I cannot get the output showing the status like you list above.  

    All is oK until I get to 

    REF_*interface-reference-name*   

    How do I exactly input this command.  

    I am using eth0 as the interface but what would I use for reference and name.  

    eth0 is for my internal network.

    Thanks,
    Joe
  • Good question. This doesn't seem to work for me either from the command line. Can you give a little more detail, maybe a full example

    (I think a lot of the help files and KB would benefit from more realworld examples in them. eg if they said things like "this is usualy your ISPs email server...")
  • Jman, just double-press TAB (TAB-Completion is supported in CC!) to get a list of REF_*. eth0 is REF_DefaultInternal under normal circumstances.
  • 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: 
    $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