Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. Vagrant::Config.run do |config|
  2.  
  3. config.vm.box = "precise64"
  4.  
  5. config.vm.define :controller do |controller_config|
  6. controller_config.vm.network :hostonly, "192.168.206.130" # eth1
  7. controller_config.vm.network :hostonly, "192.168.100.130" # eth2
  8. controller_config.vm.host_name = "controller"
  9. end
  10.  
  11. config.vm.define :compute1 do |compute1_config|
  12. compute1_config.vm.network :hostonly, "192.168.206.131" # eth1
  13. compute1_config.vm.network :hostonly, "192.168.100.131" # eth2
  14. compute1_config.vm.host_name = "compute1"
  15. compute1_config.vm.customize ["modifyvm", :id, "--memory", 1024]
  16. end
  17. end
  18.  
  19. root@compute1:~# brctl show 100
  20. bridge name bridge id STP enabled interfaces
  21. br100 8000.08002798c6ef no eth2
  22.  
  23. vnet0
  24.  
  25. Aug 6 02:34:56 precise64 dnsmasq-dhcp[12042]: DHCPDISCOVER(br100) fa:16:3e:07:98:11
  26. Aug 6 02:34:56 precise64 dnsmasq-dhcp[12042]: DHCPOFFER(br100) 192.168.100.2 fa:16:3e:07:98:11
  27.  
  28. $ sudo tcpdump -i vboxnet3 -n port 67 or port 68
  29. tcpdump: WARNING: vboxnet3: That device doesn't support promiscuous mode
  30. (BIOCPROMISC: Operation not supported on socket)
  31. tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  32. listening on vboxnet3, link-type EN10MB (Ethernet), capture size 65535 bytes
  33. 22:51:20.694040 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  34. 22:51:20.694057 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  35. 22:51:20.696047 IP 192.168.100.1.67 > 192.168.100.2.68: BOOTP/DHCP, Reply, length 311
  36. 22:51:23.700845 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  37. 22:51:23.700876 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  38. 22:51:23.701591 IP 192.168.100.1.67 > 192.168.100.2.68: BOOTP/DHCP, Reply, length 311
  39. 22:51:26.705978 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  40. 22:51:26.705995 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  41. 22:51:26.706527 IP 192.168.100.1.67 > 192.168.100.2.68: BOOTP/DHCP, Reply, length 311
  42.  
  43. root@compute1:~# tcpdump -i eth2 -n port 67 or port 68
  44. tcpdump: WARNING: eth2: no IPv4 address assigned
  45. tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  46. listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes
  47. 02:51:20.240672 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  48. 02:51:23.249758 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  49. 02:51:26.258281 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from fa:16:3e:07:98:11, length 280
  50.  
  51. compute1_config.vm.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement