Darkness Reigns (two-point-oh)

Ubuntu tips and tricks

Date: 2007-03-09

Set a static IP address

Edit: /etc/network/interfaces

# 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
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

The above example sets an address of 192.168.0.100 with fairly default settings

Darkness Reigns : personal webspace of John McClumpha - © Copyright 2007, John McClumpha
Design: Incite Graphics
Hosting: Hosted Internet Services

Total users online is: 1 of which 0 are registered users.