Posted By

Ruuk on 01/25/07


Tagged

ubuntu DNS setup router staticIP


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

yuconner


set static IP from command line in Ubuntu


 / Published in: Other
 

URL: http://www.sematopia.com/?p=50

from google search change in /etc/network/interfaces in this case static IP is 192.168.1.100 afterwards, restart network interfaces: sudo /etc/init.d/networking restart

  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).
  3.  
  4. # The loopback network interface
  5. auto lo
  6. iface lo inet loopback
  7.  
  8. # This is a list of hotpluggable network interfaces.
  9. # They will be activated automatically by the hotplug subsystem.
  10. mapping hotplug
  11. script grep
  12. map eth0
  13.  
  14. # The primary network interface
  15. iface eth0 inet static
  16. address 192.168.1.100
  17. netmask 255.255.255.0
  18. gateway 192.168.1.1

Report this snippet  

You need to login to post a comment.