ubuntu server 7.04 static ip

Asked by phil

I have ubuntu server 7.04 freshly installed. I need to make it use a static ip address on my LAN. I've tried searching around but so far found nothing that seems to work. There must be some config file somewhere to edit for this to work.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ryan Kavanagh
Solved:
Last query:
Last reply:
Revision history for this message
Best Ryan Kavanagh (ryanakca) said :
#1

See interfaces(5) ... or edit /etc/network/interfaces...

Here's my config:

# 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

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.107
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1

Revision history for this message
phil (zootlewurdle) said :
#2

This seems to work, thanks a lot.