zoukankan      html  css  js  c++  java
  • virtualbox network

    https://www.virtualbox.org/manual/ch06.html

    [nat]
    VBoxManage modifyvm "VM name" --natpf1 "guestssh,tcp,127.0.0.1,2222,,22"
    VBoxManage modifyvm "VM name" --natpf1 delete "guestssh"

    VBoxManage natnetwork add --netname natnet1 --network "192.168.15.0/24" --enable
    VBoxManage natnetwork add --netname natnet1 --network "192.168.15.0/24" --enable --dhcp on
    VBoxManage natnetwork modify --netname natnet1 --dhcp on/off
    VBoxManage natnetwork start/stop/remove --netname natnet1

    VBoxManage natnetwork modify --netname natnet1 --port-forward-4 "ssh:tcp:[]:1022:[192.168.15.5]:22"
    VBoxManage natnetwork modify --netname natnet1 --port-forward-4 delete ssh
    VBoxManage setextradata global "NAT/win-nat-test-0/SourceIp4" 192.168.1.185
    VBoxManage list natnetworks

    [bridged]
    [internal]
    VBoxManage modifyvm "VM name" --nic<x> intnet
    VBoxManage modifyvm "VM name" --intnet<x> "network name"

    [host-only]
    VBoxManage modifyvm "VM name" --nic<x> hostonly
    VBoxManage hostonlyif create

    [udp tunnel]
    VBoxManage modifyvm "VM 01 on host 1" --nic<x> generic
    VBoxManage modifyvm "VM 01 on host 1" --nicgenericdrv<x> UDPTunnel
    VBoxManage modifyvm "VM 01 on host 1" --nicproperty<x> dest=10.0.0.2
    VBoxManage modifyvm "VM 01 on host 1" --nicproperty<x> sport=10001
    VBoxManage modifyvm "VM 01 on host 1" --nicproperty<x> dport=10002
    and

    VBoxManage modifyvm "VM 02 on host 2" --nic<y> generic
    VBoxManage modifyvm "VM 02 on host 2" --nicgenericdrv<y> UDPTunnel
    VBoxManage modifyvm "VM 02 on host 2" --nicproperty<y> dest=10.0.0.1
    VBoxManage modifyvm "VM 02 on host 2" --nicproperty<y> sport=10002
    VBoxManage modifyvm "VM 02 on host 2" --nicproperty<y> dport=10001

  • 相关阅读:
    SVN 、Git、Github的使用
    asp.net core 系列 8 Razor框架路由(下)
    asp.net core 系列 7 Razor框架路由(上)
    asp.net core 系列 6 MVC框架路由(下)
    asp.net core 系列 5 MVC框架路由(上)
    asp.net core 系列 4 注入服务的生存期
    asp.net core 系列 3 依赖注入服务
    asp.net core 系列 2 启动Startup类介绍
    asp.net core 系列 1 概述
    iframe和response.sendRedirect()跳转到父页面的问题
  • 原文地址:https://www.cnblogs.com/anjuncc/p/5812834.html
Copyright © 2011-2022 走看看