Udv!
Adva van egy windowsos gep, amin fut egy VirtualBox. Utobbin van egy debian image (parameterek lejjebb). A halozatban van egy osregi debian 10.1.0.1- es IP- vel, ami dhcp- kent (is) uzemel. A windowsos gep latja a 10.1.0.1- et, tudja pingelni, 10.1.0.1- es IP- n 80- as port elerheto (a windowsos gepet 10.1.0.27- kent latja). A VirtualBoxon levo debian image viszont nem latja a helyi halozatot, es azt szeretnem, ha latna. Az image jelenlegi beallitasa igy nez ki:
[code]
cat /etc/network/interfaces | grep -v \#
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 10.1.0.55
netmask 255.255.255.0
network 10.1.0.0
-----
/sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:9b:f8:8b
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe9b:f88b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:785351 errors:0 dropped:0 overruns:0 frame:0
TX packets:478685 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:530087752 (505.5 MiB) TX bytes:114038753 (108.7 MiB)
eth1 Link encap:Ethernet HWaddr 08:00:27:46:b0:7f
inet addr:10.1.0.55 Bcast:10.1.0.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe46:b07f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:12519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1898834 (1.8 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1767649 errors:0 dropped:0 overruns:0 frame:0
TX packets:1767649 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:719439599 (686.1 MiB) TX bytes:719439599 (686.1 MiB)
[code]
. A VirualBox beallitasai az imagehez:
Adapter1: NAT, Cable Connected, MAC: 0800279BF88B
Adapter2: Internal Network, Name: Intnet, Cable Connected, MAC: 08002746B07F
.
Hogyan kellene beallitani az adaptereket ahhoz, hogy a mostani beallitasok megmaradjanak (tehat pl. a shared konyvtar a host es a guest kozott megmaradjon), es lathassam is a LAN- t (pl. 10.1.0.1)? Hogyan kell ehhez az image- ben levo interface- ket igazitani?
Windows: 8.1
VirtualBox: 5.2.6 r120293
Debian: 8.6
.
Koszonom a valaszokat!