настройка nat vmware workstation

19 августа 2020 1718 admin

настройка nat vmware workstation


Надоело вспоминать настройки вари.
Особенно, если операционная система не имеет в базе dhcp-клиента.
Не верите? Да, есть такие идиоты-разрабы..

Надо записать ;)

Итак, дан VMWare Workstation 12

Надо настроить сеть внутри виртуальной машины. Сеть будет в виде NAT, который есть VMnet8 в Virtual Network Editor.

Итак, настройки следующие:

Подсеть: 192.168.136.0
шлюз: 192.168.136.2
dhcp-пул по умолчанию: 192.168.136.128 - 192.168.136.254

Настройка NAT-сети в VMWare Workstation 12, на примере NetBSD в качестве гостя (сетевуха будет wm0):

Назначим IP:
# ifconfig wm0 inet 192.168.136.100 netmask 255.255.255.0
Либо, можно через маску:
ifconfig wm0 inet 192.168.136.100/24

Назначаем шлюз:
# route add default 192.168.136.2

Назначаем DNS:
# echo "nameserver 8.8.8.8" >> /etc/resolv.conf

  • 0

Другие новости по теме:

Другие новости по теме:

    Добавление комментария

    Имя:
    Пароль:
    Email:
    Код:
    captcha
    Введите код:

    Последнии комментарии
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Harley (27.12.2025)
    Have you ever considered creating an e-book or gue...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Collette (27.12.2025)
    You're so interesting! I don't believe I've truly ...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Tia (25.12.2025)
    Everyone loves what you guys are up too. This type...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Helena (25.12.2025)
    Good day! This post could not be written any bette...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Crystle (25.12.2025)
    Hello it's me, I am also visiting this web page re...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Mathias (25.12.2025)
    Usually I do not learn article on blogs, but I wou...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Princess (25.12.2025)
    Good replies in return of this difficulty with gen...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Bettina (24.12.2025)
    It's actually a great and helpful piece of informa...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Kacey (23.12.2025)
    Hi! This is kind of off topic but I need some advi...
    library initialization failed - unable to allocate file descriptor table - out of memory
    Автор Гурий (22.12.2025)
    Просто не могу удержаться, просто качественно
     Популярные
       
    Календарь
    « Декабрь »
    Пн Вт Ср Чт Пт Сб Вс
    1 2 3 4 5 6 7
    8 9 10 11 12 13 14
    15 16 17 18 19 20 21
    22 23 24 25 26 27 28
    29 30 31
    Облако тегов
    Яндекс.Метрика