Nowe posty

Autor Wątek: Ubuntu server - problem z konfiguracja sieci  (Przeczytany 1962 razy)

zigardo

  • Gość
Ubuntu server - problem z konfiguracja sieci
« dnia: 2015-09-23, 09:52:10 »
Witam
Postawiłem ubuntu 15.04 na virtualboxie by zacząć naukę administracji serwerem ( nie mam blaszaka starego by na nim postawić bezpośrednio. Jak cos wypali to kupie sobie raspberry PI 2 i na nim postawie cos). Ale natrafiłem na problem, nie moge się połączyć przez ssh do niego.
1) Na VB ustawiłem drugi adapter internetu jako host-only.
2) output ifconfig ->
eth0      Link encap:Ethernet  HWaddr 08:00:27:bb:4e:f4  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:febb:4ef4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1186 errors:0 dropped:0 overruns:0 frame:0
          TX packets:650 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:642490 (642.4 KB)  TX bytes:90972 (90.9 KB)

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:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13360 (13.3 KB)  TX bytes:13360 (13.3 KB)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:e5:01:2f 
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
3) output ssh status ->
● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since śro 2015-09-23 09:41:01 CEST; 4min 31s ago
  Process: 753 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
 Main PID: 545 (sshd)
   CGroup: /system.slice/ssh.service
           └─545 /usr/sbin/sshd -D

wrz 23 09:41:01 ubuntu systemd[1]: Started OpenBSD Secure Shell server.
wrz 23 09:41:01 ubuntu systemd[1]: Starting OpenBSD Secure Shell server...
wrz 23 09:41:03 ubuntu sshd[545]: Server listening on 0.0.0.0 port 22.
wrz 23 09:41:03 ubuntu sshd[545]: Server listening on :: port 22.
wrz 23 09:41:04 ubuntu sshd[545]: Received SIGHUP; restarting.
wrz 23 09:41:04 ubuntu systemd[1]: Reloaded OpenBSD Secure Shell server.
wrz 23 09:41:04 ubuntu sshd[545]: Server listening on 0.0.0.0 port 22.
wrz 23 09:41:04 ubuntu sshd[545]: Server listening on :: port 22.
4) Oto ip które widnieje w vbox host-only : (IPv4: 192.168.56.101)
 
Bardzo proszę o wskazówki.
Pozdrawiam.

Offline hipiz@vp.pl

  • Users
  • Nowy na forum
  • *
  • Wiadomości: 1
    • Zobacz profil
Odp: Ubuntu server - problem z konfiguracja sieci
« Odpowiedź #1 dnia: 2015-09-29, 15:30:22 »
Witam,

w pierwszej kolejności puść ping do serwera. Ale już widać że masz złą adresację.
adresacja maszyny virbr0 ip=192.168.122.1, adresacja sieci vbox host-only 192.168.56.101
Brakuje wspólnego mianownika czyli tej samej adresacji w sieci ustaw maszynę na stałe ip 192.168.56.2.

Pozdrawiam