Forum Discussion
Ajmal_2608
Jun 03, 2013Nimbostratus
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