Astaro User Bulletin Board
Go Back   Astaro User Bulletin Board > Astaro Gateway Products > Hardware, Installation, Up2Date, Licensing

Welcome to the Astaro User Bulletin Board.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-09-2009, 06:02 PM
Junior Member
 
Join Date: Jan 2009
Posts: 2
Unhappy Enable eth0 in root login?

Hi all.

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

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


Best Regards
Lakrids.
Reply With Quote
  #2 (permalink)  
Old 01-09-2009, 06:27 PM
Gert Hansen's Avatar
Wizard
 
Join Date: Nov 2000
Location: Karlsruhe, Germany
Posts: 1,242
Default

Hi,

which version of ASG are you using?

thx Gert
Reply With Quote
  #3 (permalink)  
Old 01-09-2009, 08:03 PM
Junior Member
 
Join Date: Jan 2009
Posts: 2
Default

Quote:
Originally Posted by Gert Hansen View Post
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.

Last edited by lakrids; 01-09-2009 at 08:05 PM.
Reply With Quote
  #4 (permalink)  
Old 01-09-2009, 10:39 PM
Gert Hansen's Avatar
Wizard
 
Join Date: Nov 2000
Location: Karlsruhe, Germany
Posts: 1,242
Default

Allright, i like that feature
thx Gert
Reply With Quote
  #5 (permalink)  
Old 01-10-2009, 12:45 AM
AngeloC's Avatar
Ninja
 
Join Date: May 2003
Posts: 319
Default

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 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
Reply With Quote
  #6 (permalink)  
Old 03-17-2009, 10:44 PM
Junior Member
 
Join Date: Feb 2009
Location: New York
Posts: 5
Default Same Problem accidently disabled eth0

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
Reply With Quote
  #7 (permalink)  
Old 07-02-2009, 07:14 AM
Junior Member
 
Join Date: Jul 2009
Posts: 14
Default

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...")
Reply With Quote
  #8 (permalink)  
Old 07-02-2009, 10:22 AM
Senior Schall und Rauch Member
 
Join Date: Nov 2008
Posts: 260
Default

Jman, just double-press TAB (TAB-Completion is supported in CC!) to get a list of REF_*. eth0 is REF_DefaultInternal under normal circumstances.
__________________
"Datenautobahn: Einrichtung zur schnellen Übertragung großer Datenmengen (z.B. über das Telefonnetz)" (DUDEN, 21. Auflage)

Mario Schmidt
QA Engineer
Astaro AG

Last edited by trollvottel; 07-02-2009 at 10:25 AM.
Reply With Quote
  #9 (permalink)  
Old 07-02-2009, 02:40 PM
AngeloC's Avatar
Ninja
 
Join Date: May 2003
Posts: 319
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:23 AM.

 

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.


These pages are specifically maintained for the discussion of firewall issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases. issues within the Open Source community, and might already reflect new alpha/beta releases under development. Please refer to our product specifications for the functionality of the actual release. Discussions of new/enhanced functionality does not constitute a commitment of Astaro, to integrate this functionality into future releases.