Home Blog CV Projects Patterns Notes Book Colophon Search

Debian Static IP Address

9 Jul, 2007

To set up a static IP address edit /etc/network/interfaces so that it looks something like this:

# The primary network interface
allow-hotplug eth0
iface eth0 inet static

Then use the commands:

ifdown eth0
ifup eth0

You can see your network adapters and IP addresses with ifconfig. You can restart networking with sudo /etc/init.d/networking restart. You can change a hostname by editing /etc/hostname. I'd restart afterwards, then you can check your hostname with the hostname command.

Copyright James Gardner 1996-2020 All Rights Reserved. Admin.