Nowe posty

xx Dystrybucja pod HP Omen (6)
Wczoraj o 23:30:08
xx [Poradnik] Wyszukiwanie Sterowników (2)
Wczoraj o 21:08:23
lamp Problem z Linux Lite po instalacji (0)
Wczoraj o 19:50:30
xx Ile pingwinów? (1)
Wczoraj o 08:59:24
xx konfiguracja pale moon (0)
2024-03-24, 21:53:42
xx Plasma 6 w Neonie ssie trochę mniej ... (10)
2024-03-23, 02:38:11
xx problem z instalacja sterowników do karty sieciowej (3)
2024-03-18, 18:10:16
xx Plik abc.001 (1)
2024-03-17, 17:48:27
xx Zlecę dopracowanie programu w MatLab (0)
2024-03-13, 15:28:40
xx Linux Mint 21.3 XFCE brak dźwieku po paru minutach (karta muzyczna zintegrowana) (5)
2024-03-12, 23:07:01

Autor Wątek: DHCP (adres statyczny ) na VB  (Przeczytany 892 razy)

Offline Panas

  • Users
  • Stały bywalec
  • ***
  • Wiadomości: 198
    • Zobacz profil
DHCP (adres statyczny ) na VB
« dnia: 2020-08-05, 04:15:03 »
Mam problem z pobraniem adresu przez VB
z (using an administration volume 3) do fedory
https://i.imgur.com/GaQ3hVd.jpg
https://i.imgur.com/VPTfcqK.png

Na nacie 10.0.2.0/24 DHCP jest wyłączony
studentvm1 ma kartę w sieci nat (Student Network)
studentvm2 ma dwie karty nat oraz host-only
Druga karta skonfigurowana jest następująco
IP: 192.168.56.1/24 bez DHPC
https://i.imgur.com/MYDglij.png

Na studentvm2 ustawiłem dwa adresy na sztywno z palca oraz odpaliłem DHCP ale nie wiem czemu nie pobiera mi prawidłowego adresu studentvm1 tylko adres "globalny"
/var/lib/dhcp.leases wyczyściłem na wszelki wypadek.

dhcp.conf na vm2

# DHCP Server Configuration file.
#   see /usr/share/doc/dhcp-server/dhcpd.conf.example
#   see dhcpd.conf(5) man page
#
# option definitions common to all supported networks...
# These directives could be placed inside the subnet declaration
# if they are unique to a subnet.
option domain-name "example.com";
option domain-search "example.com";
option domain-name-servers 10.0.2.1;
# All networks get the default lease times
default-lease-time 600;  # 10 minutes
max-lease-time 7200;     # 2 hours


# This is a very basic subnet declaration.                 

subnet 192.168.56.0 netmask 255.255.255.0 {
        # default gateway
        option routers                  192.168.56.1;
        option subnet-mask              255.255.255.0;

# Dynamic allocation range for otherwise unknown hosts     #

        range dynamic-bootp 192.168.56.50 192.168.56.59;

# Host declaration in the 192.168.56.0/24 subnet.          #

  host studentvm1 {
                hardware ethernet 08:00:27:5b:92:44;
                fixed-address 192.168.56.21;
        }
}
« Ostatnia zmiana: 2020-08-05, 12:29:24 wysłana przez Panas »

Offline Panas

  • Users
  • Stały bywalec
  • ***
  • Wiadomości: 198
    • Zobacz profil
Odp: DHCP (adres statyczny ) na VB
« Odpowiedź #1 dnia: 2020-08-05, 04:21:34 »
Najciemniej pod latarnią zmieniłem na vm karte na host only i pobrało adres bez problemu.
Z adresem 192.168.0.1 to chyba błąd w książce (pierwszy na 3 tomy)

Chyba że coś źle zakumałem ale na netkicie zrobiłem symulacje i działa.
« Ostatnia zmiana: 2020-08-05, 13:55:47 wysłana przez Panas »