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.    
  • just a correction to my previous note: the file to edit is
       /etc/wfe/conf/itf.conf



      
Reply Children
  • Well I like the way friscom is doning his job because it's a lot faster than booting another (very nice indeed!) knoppix system and just hack some config files. I did this too and was able to change the LAN IP# in minutes after made a misstake with the installation. Yeah, I know I could add an IP# in my box and than change it with WebAdmin...

    But it's just the way you want.


    Biton 
  • I would suggest one further option: a  spare NIC to add to the system (if there is room to fit it in) and properly configured to allow ONLY  local access to the admin with no other scope than giving him/her away to fix once he/she has unfortunately and (surely by chance!)  incidentally  closed  the other "doors".

    Such option should be carefully evaluated when configuring NAT and packet filtering and related features.