cetic / 6lbr

A deployment-ready 6LoWPAN Border Router solution based on Contiki
github.com/cetic/6lbr/wiki
Other
337 stars 195 forks source link

IP64 within a Virtual Machine #355

Closed beleyj closed 6 years ago

beleyj commented 6 years ago

Hello all.

I currently have 6lbr running on an Ubuntu VM in VirtualBox where the networking for the VM is set to Bridged Adapter.

I have set the VirtualBox networking to bridge adapter so that I can ping the VM from any computer in my school's IPv4 subnet. I have 6lbr working fine with the following settings in config:

MODE=ROUTER RAW_ETH=0 DEV_TAP=tap0 BRIDGE=1 CREATE_BRIDGE=6LBR DEV_BRIDGE=eth0 ETH_JOIN_BRIDGE=0 DEV_RADIO=/dev/ttyACM0 BAUDRATE=115200

NODE_CONFIG=/etc/6lbr/node_config.conf

From within the VM I am able to access [bbbb::100] and run a CoAP client that can retrieve data from wireless CoAP server sensors. My problem right now is getting IP64 working so that I can access the sensor nodes from any machine on the school's IPv4 Ethernet network.

Within the IP64 setting I have the following options selected (my school has a DHCP server): image

However, these settings result in IP64 getting a "waiting for configuration" message.

On the other hand: When I select no for DHCP and manually set the address, 6lbr accepts it as the IP64 address. However, when using this address I am still unable to connect to the wireless CoAP servers using the address with the specific port from other computers on the Ethernet subnetwork.

I have tried creating a SmartBridge from within 6lbr, but by doing this I need to turn off the bridge adapter setting of VirtualBox. Turning off bridge adapter in VirtualBox results in other computers on the network from being unable to ping the VM, but the VM can still ping those computers.

Does anyone have any suggestions on how to figure this out? Thanks for any help you can provide!

beleyj commented 6 years ago

I still do not have it reliably working with VirtualBox, however, this tutorial can be of much help for anyone trying to do the same thing.

This tutorial shows how to set up two bridged network interfaces: http://morschi.com/2017/03/28/setting-up-a-6lowpan-border-router-6lbr-using-a-vm-and-slip-radio/