Sida loo dar cinwaan IP guurto ah in qaybinta Linux ah sida Debian socda sida VPS a on VirtualBox

Hubi VM la shaqeeya off

  1. Reserved Network

    Settings -> Network
     

  2. Hubi adabtarada 1 waxaa ku lifaaqan NAT iyo adabtarada 2 waxaa ku lifaaqan marti-keliya adabtarada

     

  3. Hubi in IP aad ciidankii ayaa lagu wadaa inay la mid ah kuwan soo socda

    guryaha network
     

  4. Hel magacyada interfaces network aad, samee qoraal oo ka mid ah

    ip addr
     

  5. Fur file interface in Nano ah

    su
    cd /etc/network
    nano interfaces
     

  6. Hubi in interfaces waxaa lagu qaybiyay sida soo socda. Isticmaal magacyada interface adiga kuu gaar ah e.g ee soo socda magacyada interface waa enp0s3 iyo enp0s8.

        il /etc/network/interfaces.d/*
    
        # interface shabakad loopback The
        auto bal eeg
        iface bal eeg inet loopback
    
        # adabtarada 1
        ogolaan-hotplug enp0s3
        iface dhcp inet enp0s3
    
        # adabtarada 2
        enp0s8 auto
        iface inet enp0s8 guurto ah
        cinwaanka 192.168.56.102
        netmask 255.255.255.0
        albaab 192.168.56.1
        nameserver 8.8.8.8
      

     

  7. Reboot Debian

    reboot
     

Leave a Reply