Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

How to set a static IP in Ubuntu from the shell (See related posts)

and adjust it to your needs (in this example setup I will use the IP address

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
        script grep
        map eth0

# The primary network interface
auto eth0
iface eth0 inet static

Comments on this post

johannes posts on May 13, 2007 at 20:40
Then do
sudo /etc/init.d/networking restart

to restart the network.

You need to create an account or log in to post comments to this site.

Related Posts