Как получить доступ к Jenkins вне виртуальной машины - PullRequest
0 голосов
/ 20 марта 2019

Я хочу получить доступ к Jenkins вне виртуальной машины (Ubuntu 18.04) с моего хоста (Windows 10).

Выход из ifconfig

mateusz@mateusz-VirtualBox:~$ ifconfig

enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 10.0.3.15  netmask 255.255.255.0  broadcast 10.0.3.255
    inet6 fe80::a00:27ff:fe14:21ed  prefixlen 64  scopeid 0x20<link>
    ether 08:00:27:14:21:ed  txqueuelen 1000  (Ethernet)
    RX packets 1598  bytes 743295 (743.2 KB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 1481  bytes 181404 (181.4 KB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 10.205.219.161  netmask 255.255.252.0  broadcast 10.205.219.255
    inet6 fe80::f031:1981:37e8:6882  prefixlen 64  scopeid 0x20<link>
    ether 08:00:27:28:12:c6  txqueuelen 1000  (Ethernet)
    RX packets 4508  bytes 544314 (544.3 KB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 109  bytes 13315 (13.3 KB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
    inet 127.0.0.1  netmask 255.0.0.0
    inet6 ::1  prefixlen 128  scopeid 0x10<host>
    loop  txqueuelen 1000  (Local Loopback)
    RX packets 21006  bytes 8638936 (8.6 MB)
    RX errors 0  dropped 0  overruns 0  frame 0
    TX packets 21006  bytes 8638936 (8.6 MB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Oracle VM VirtualBox -> Компьютер -> Настройки -> Сеть:

Настройки сети

Брандмауэр отключен как на виртуальной машине, так и на хосте. Я могу получить доступ к 10.205.219.161:8080 на ВМ, но на Windows нет.

Выход из ipconfig /all:

Windows IP Configuration

Ethernet adapter Ethernet 2:

Media State . . . . . . . . . . . : Media disconnected Connection-specific DNS Suffix . :

Ethernet adapter Ethernet:

Connection-specific DNS Suffix  . : xxx
Link-local IPv6 Address . . . . . : fe80::c979:eaa0:ff5a:c5fa%15
IPv4 Address. . . . . . . . . . . : 192.168.137.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix  . :
Link-local IPv6 Address . . . . . : fe80::a806:2984:84ba:d80b%13
IPv4 Address. . . . . . . . . . . : 192.168.56.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

Ethernet adapter Ethernet 3:

Connection-specific DNS Suffix  . :
Link-local IPv6 Address . . . . . : fe80::9880:3aaf:404d:9778%22
Autoconfiguration IPv4 Address. . : 169.254.151.120
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :

Wireless LAN adapter Local Area Connection* 1:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . :

Wireless LAN adapter Local Area Connection* 3:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . :

Wireless LAN adapter Wi-Fi:

Connection-specific DNS Suffix  . : xxx
Link-local IPv6 Address . . . . . : fe80::89d0:f651:abf9:a83f%18
IPv4 Address. . . . . . . . . . . : 10.137.213.29
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : 10.137.212.1

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix  . :
...