Changing IP and route in console mode

Before posting I did a searchin the archives  but I was unsuccessful.

I have tried to use ifconfig and route commands in console mode to change  (restore!) NICs configuration.
It seems to partially work, but such changes are not fully effective and after rebooting the previous settings turns into effect.
Any clue how to do that? (I use ASL v. 4.0xx.)
Thanks! [:S]   
Parents
  • Why not simply use Webadmin to configure your network cards?
    And why not use Webadmin to do your routing as well?

    That is what Astaro intended when they designed the product.   
  • Who wouldn't agree with your statement?  [;)]

    The point is: sometimes you might fall in a loop and you do not have alternatives! 
    What would you do if you simply cannot access the Webmin interface? would you reinstall everything or would you try to  "rescue" your configuration?

    Well, if you go to:
         /etc/wfe/conf
    the file to edit is:
         itf.data
     There you find  the IP configuration for the NICs. The changes eventually introduced there, automatically (?) reflect into:
         snetdata.
    Doing the same changes by mean of the ifconfig command is not sufficient.
    For the router table, there is a file - in the same location- named:
         routers. 

    That is what I discovered and eventually, could help someone else to restore an unaccessible ASL in the normal (webmin) mode.

    Any further comment or specification to my findings is welcome!    
  • [ QUOTE ]
    The point is: sometimes you might fall in a loop and you do not have alternatives!
    What would you do if you simply cannot access the Webmin interface? would you reinstall everything or would you try to "rescue" your configuration? 

    [/ QUOTE ] I like to keep it simple. One of the reasons that I like ASL, is because I don't have to fiddle with the scripts in the /etc directory on a Linux machinein order to get my configuration to work. So, to answer your question, if I had a current configuration backup, I would probably reinstall ASL, and let the installation program find my network cards. Then I would bring in the configuration backup to get back to where I was before.

    If I didn't have a backup, and also had problems getting into Webadmin to create a backup, then my approach would be to boot the ASL machine from a Knoppix CD, and set the ASL root partition writable, so that I could examine and edit the various script using the KDE desktop editor.    
Reply
  • [ QUOTE ]
    The point is: sometimes you might fall in a loop and you do not have alternatives!
    What would you do if you simply cannot access the Webmin interface? would you reinstall everything or would you try to "rescue" your configuration? 

    [/ QUOTE ] I like to keep it simple. One of the reasons that I like ASL, is because I don't have to fiddle with the scripts in the /etc directory on a Linux machinein order to get my configuration to work. So, to answer your question, if I had a current configuration backup, I would probably reinstall ASL, and let the installation program find my network cards. Then I would bring in the configuration backup to get back to where I was before.

    If I didn't have a backup, and also had problems getting into Webadmin to create a backup, then my approach would be to boot the ASL machine from a Knoppix CD, and set the ASL root partition writable, so that I could examine and edit the various script using the KDE desktop editor.    
Children
No Data