Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. To expand upon @jdthood's answer...
  2.  
  3. If the interface is already up, you can still use this method to validate the /etc/network/interfaces file. For example, assuming you have an error, you may see something like this:
  4.  
  5. $ sudo ifup --no-act eth0
  6. /etc/network/interfaces:11: unknown method
  7. ifup: couldn't read interfaces file "/etc/network/interfaces"
  8. Apparently there's an error on line 11. Great. Thank heavens I didn't bounce the networking only to lose SSH access!
  9.  
  10. If all is fine, you will see:
  11.  
  12. $ sudo ifup --no-act eth0
  13. ifup: interface eth0 already configured
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement