Mam pewien problem z ustaleniem stałego IP na maszynie na VirtualBox'ie i VMware.
Mam router pentagrama który stoi na 192.168.1.100.
Konfigurując Windowsa wpisuję takie dane:
http://img44.imageshack.us/img44/2904/ubuo.png
Bez wpisania DNS nie rusza ( na routerze ustawione jest że DHCP jest wyłączone , ale jednak działa przy domyślym ustawieniu niżej wymienionego pliku )
To samo ( bez DNS bo nie wiem jak i chyba tu leży problem ) wpisuję na Ubuntu desktop i też działa. Ale zależy mi na tym, żeby skonfigurować to na ubuntu-server. Poradników niby pełno ale każdy ogranicza się do /etc/network/interfaces .
Konfiguruję go tak:
Kod: Zaznacz cały
# 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
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.100
Jak już wyżej napisałem problemem może być nieustawienie tego DNS.
Pozdrawiam
EDIT: Problem mam nadzieję rozwiązany. Ustawiłem w Vbox'ie mostkowanie karty sieciowej i przydzieliło IP. Więc wszystko powinno być ok

EDIT 2 : Pojawił się problem. Restartuję /etc/init.d/networking wpisuję ifconfig jest ok IP. Mija z 5-10 min i odłącza mnie co to może być ?