Hello Alvaro,

Here is my VBox Vagrant file (important part of it):

I have one physical ETH0 interface, and I also configured NAT forwarding, 
and here it is:

# Forward port 8888 for the internal REST server
  config.vm.network :forwarded_port, guest: 8888, host: 8888
  # Forward port 8010 for the Storage Server
  config.vm.network :forwarded_port, guest: 8010, host: 8010
  # Forward port 5000 for the KernelCI Frontend Web Server
  config.vm.network :forwarded_port, guest: 5000, host: 5000
  # Forward port 80 for the http Lava Frontend Web Server
  config.vm.network :forwarded_port, guest: 8080, host: 8080
  # Forward port 443 for the https Lava Frontend Web Server
  config.vm.network :forwarded_port, guest: 443, host: 4443
  # Configure network accessibility for tftp server
  config.vm.network "public_network", :dev => "eth1", 
use_dhcp_assigned_default_route: true
  config.vm.network "private_network", bridge: "eth2", ip: "192.168.15.2"

I would like to have private network hanging of VM, which is actually 
coming from USB->ETH convertor (AX88772) hanging of the host. Here is its 
configuration:

vbox.customize ["modifyvm", :id, "--usb", "on"]
    vbox.customize ["modifyvm", :id, "--usbehci", "on"]
    vbox.customize ["usbfilter", "add", "0",
      "--target", :id,
      "--name", "ASIX Electronics Corp. AX88772 [0001]",
      "--vendorid", "0B95",
      "--productid", "7720",
      "--revision", "0001",
      "--manufacturer", "ASIX Electronics Corp.",
      "--product", "AX88772"]

Now, I would like to associate this device with my ETH2 adapter, give it 
the address 192.168.15.2, and configure it as: "ip route add default via 
192.168.15.1 dev eth2" .

So, I would like to have ETH0 as port forwarding (so I do NOT need IP 
address on it), I also would like ETH1 to be inactive, and ETH2 to be my 
interface to the small private network.

In other words, I would like to hijack USB port (from where AX88772 hangs) 
from host, use it on VM for my external purposes. But I am not succeeding???

Here is my ifconfig:

root@stretch:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::a00:27ff:fe8d:c04d  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:8d:c0:4d  txqueuelen 1000  (Ethernet)
        RX packets 3235  bytes 290021 (283.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2492  bytes 461392 (450.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a00:27ff:fe57:855c  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:57:85:5c  txqueuelen 1000  (Ethernet)
        RX packets 6498  bytes 658331 (642.9 KiB)
        RX errors 0  dropped 1  overruns 0  frame 0
        TX packets 119  bytes 28152 (27.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.15.2  netmask 255.255.255.0  broadcast 192.168.15.255
        inet6 fe80::a00:27ff:fec9:a365  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:c9:a3:65  txqueuelen 1000  (Ethernet)
        RX packets 80  bytes 7816 (7.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 108  bytes 8436 (8.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 28690  bytes 9108243 (8.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 28690  bytes 9108243 (8.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@stretch:~# 

The question is: how I associate via Vagrant AX88772 with ETH2 port???

Thank you,
Zoran

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/1e5c7b37-094c-4856-ac4b-e3624834c3f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to