Forum Discussion

What_Lies_Bene1's avatar
What_Lies_Bene1
Icon for Cirrostratus rankCirrostratus
May 31, 2013

etc/init.d/network restart

Should this command just restart the management interface only? I ask as in VE it appears to effect other interfaces too. Thanks

 

4 Replies

  • Being a linux kernel based system,this will restart the network services i.e. all the network interfaces

     

     

    Thanks

     

    Ajmal
  • Thanks Ajmal. So, if I wanted to reset just the management interface I guess something like 'ifdown eth0 && ifup eth0" would be better.
  • Posted By What Lies Beneath on 06/03/2013 03:12 AM

     

    Thanks Ajmal. So, if I wanted to reset just the management interface I guess something like 'ifdown eth0 && ifup eth0" would be better.

     

    Yes that's the command in case you need to bounce the interface in one go (use the down and up commands at the same time).

     

    FYI... There are 2 options to run these command in a single line:

     

    • && - ifdown eth0 && ifup eth0 (This will run the 2nd command only if the output of 1st is "True"
    • Semicolon - ifdown eth0 ; ifup eth0 (This will run the 2nd command irrespective of the output of 1st command