Advertisement
Guest User

Untitled

a guest
Sep 7th, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. sudo vi /etc/network/interfaces
  2.  
  3. ## To configure a dynamic IP address
  4. auto eth0
  5. iface eth0 inet dhcp
  6.  
  7. ## Or configure a static IP
  8. auto eth0
  9. iface eth0 inet static
  10. address 192.168.1.14
  11. gateway 192.168.1.1
  12. netmask 255.255.255.0
  13. network 192.168.1.0
  14. broadcast 192.168.1.255
  15.  
  16. For these settings to take effect you need to restart your networking services.
  17.  
  18. sudo /etc/init.d/networking restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement