Code: Alles auswählen
# 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 ### eth0 ###
# Hardware (Adresse "bc:5f:f4:e2:a8:b4"): /etc/udev/rules.d/70-persistent-net.rules
auto eth0
# Interface (Device) eth0 wird beim Systemstart konfiguriert.
iface eth0 inet static
address 192.168.2.1
# Hostadresse, /etc/hosts, "Melina"
gateway 192.168.2.254
# Default-Gateway (hier der DSL-Router)
netmask 255.255.255.0
# DNS-Server: /etc/resolv.conf "nameserver 192.168.2.254" (DSL-Router) - wenn er beim Start dranhängt
Code: Alles auswählen
127.0.0.1 localhost
192.168.2.1 Melina
192.168.2.2 Winlina
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Die Netzwerkverbindung unter Windows auf der VM ist jetzt so konfiguriert:
Also ohne Gateway, d.h ohne Zugriffsmöglichkeit auf den DSL-Router (mit Win2k will ich nicht ins Internet), und der DNS-Server ist von VirtualBox vorgegeben. Ergebnis erst mal:
Und von der anderen Seite:
Code: Alles auswählen
ifconfig
eth0 Link encap:Ethernet Hardware Adresse bc:5f:f4:e2:a8:b4
inet Adresse:192.168.2.1 Bcast:192.168.2.255 Maske:255.255.255.0
inet6-Adresse: fe80::be5f:f4ff:fee2:a8b4/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:10128 errors:0 dropped:0 overruns:0 frame:0
TX packets:7443 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:7004156 (6.6 MiB) TX bytes:1164725 (1.1 MiB)
lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
UP LOOPBACK RUNNING MTU:65536 Metrik:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:0
RX bytes:440 (440.0 B) TX bytes:440 (440.0 B)
root@Melina:/home/hk# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_req=24 ttl=128 time=3.88 ms
64 bytes from 192.168.2.2: icmp_req=25 ttl=128 time=0.546 ms
64 bytes from 192.168.2.2: icmp_req=26 ttl=128 time=0.454 ms
64 bytes from 192.168.2.2: icmp_req=27 ttl=128 time=0.700 ms
[...]