Gargi
08.11.2008, 19:14
Wer seinen Debian Server nur rein über die Konsole betreibt muss natürlich beim Umstellen von DHCP auf eine statische IP auf komfortable Programme verzichten. Von daher muss zuerst die
/etc/network/interfaces
bearbeitet werden. Ladet diese über Euren Editor. Der Rechner soll beispielsweise die IP 192.168.1.5 bekommen. Ändert die interfaces wie folgt ab:
# 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
allow-hotplug eth0
iface eth0 inet dhcp
in
# 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
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.99
gateway 192.168.1.1
In der /etc/resolv.conf sollte der Nameserver wie folgt eingetragen sein:
nameserver 192.168.1.1
(wenn das beispielsweise Euer Router erledigt)
cu
Gargi
/etc/network/interfaces
bearbeitet werden. Ladet diese über Euren Editor. Der Rechner soll beispielsweise die IP 192.168.1.5 bekommen. Ändert die interfaces wie folgt ab:
# 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
allow-hotplug eth0
iface eth0 inet dhcp
in
# 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
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.99
gateway 192.168.1.1
In der /etc/resolv.conf sollte der Nameserver wie folgt eingetragen sein:
nameserver 192.168.1.1
(wenn das beispielsweise Euer Router erledigt)
cu
Gargi