Quote:
Originally posted by roenstad
Hi
can anybody tell me to setting a static IP on my Debian server?
|
An example for the /etc/network/interfaces you need to change it for your settings.
Code:
# 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.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 24.222.0.66 24.222.0.91
And if you do not have the resolvconf package installed the settings in the /etc/resolv.conf for your DNS name servers.
Code:
nameserver 24.222.0.66
nameserver 24.222.0.91
Again changing for the settings you will be using.