linux - multicast traffic fails with virtualbox host only network -


i have application sends multicast request multicast group , if test client , server application on 2 separate pc in same subnet works fine .

since can not run on 2 pcs during testing of application, thought of using virtualbox run os run server application .

my host ubuntu , installed vitrtualbox run guest os linux , , since traffic has in host , guest , have selected "host network type" .

my guest os ip address when run server application, fails join multicast group says

    "no such device" . 

can me set network between guest , host os ..

my main goal send multicast request , should reach guest os.

in vm:

  • ls /sys/class/net - net devices. (lo, eth0, eth1...). should have 1 lo , 2 eth devices.

  • sudo nano /etc/network/interfaces. @ eth0 there nat connection. lo localhost. should set host-only connection. add following:

# host-only network interface auto eth1 iface eth1 inet static address 192.168.56.101  netmask 255.255.255.0 network 192.168.56.0 broadcast 192.168.56.255 

(address taken ipconfig/ifconfig output in host system. instead eth1 can have connection name, taken step 4.b.i)

  • for checking edited file, run:
sudo service network-manager restart 
  • check if have 3 connections running. check host-only addresses.
ifconfig 
  • reboot
sudo reboot 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -