Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. $ cat /etc/qemu-ifup
  2. ifconfig ens192 down
  3. ifconfig ens192 0.0.0.0 promisc up
  4. openvpn --mktun --dev tap0
  5. ifconfig tap0 0.0.0.0 up
  6. brctl addbr br0
  7. brctl addif br0 ens192
  8. brctl addif br0 tap0
  9. brctl stp br0 off
  10. ifconfig br0 192.168.42.201 netmask 255.255.255.0
  11.  
  12. $ ifconfig
  13. br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  14. inet 192.168.42.201 netmask 255.255.255.0 broadcast 192.168.42.255
  15. inet6 fe80::646a:f6ff:fe1e:42ce prefixlen 64 scopeid 0x20<link>
  16. ether 00:0c:29:1f:e0:db txqueuelen 0 (Ethernet)
  17. RX packets 314 bytes 15522 (15.1 KiB)
  18. RX errors 0 dropped 0 overruns 0 frame 0
  19. TX packets 38 bytes 4803 (4.6 KiB)
  20. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  21. ens192: flags=4419<UP,BROADCAST,RUNNING,PROMISC,MULTICAST> mtu 1500
  22. ether 00:0c:29:1f:e0:db txqueuelen 1000 (Ethernet)
  23. RX packets 258 bytes 16020 (15.6 KiB)
  24. RX errors 0 dropped 0 overruns 0 frame 0
  25. TX packets 92 bytes 8269 (8.0 KiB)
  26. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  27.  
  28. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  29. inet 127.0.0.1 netmask 255.0.0.0
  30. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  31. loop txqueuelen 0 (Local Loopback)
  32. RX packets 7404 bytes 108578604 (103.5 MiB)
  33. RX errors 0 dropped 0 overruns 0 frame 0
  34. TX packets 7404 bytes 108578604 (103.5 MiB)
  35. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  36.  
  37. tap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  38. inet6 fe80::e8d9:3ff:fedf:85d3 prefixlen 64 scopeid 0x20<link>
  39. ether ea:d9:03:df:85:d3 txqueuelen 100 (Ethernet)
  40. RX packets 69 bytes 4722 (4.6 KiB)
  41. RX errors 0 dropped 0 overruns 0 frame 0
  42. TX packets 193 bytes 12111 (11.8 KiB)
  43. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  44.  
  45. virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
  46. inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
  47. ether 02:a1:9f:a4:81:bc txqueuelen 0 (Ethernet)
  48. RX packets 0 bytes 0 (0.0 B)
  49. RX errors 0 dropped 0 overruns 0 frame 0
  50. TX packets 1 bytes 90 (90.0 B)
  51. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  52.  
  53. # ping 192.168.42.201
  54. PING 192.168.42.201 (192.168.42.201) 56(84) bytes of data.
  55. 64 bytes from 192.168.42.201: icmp_seq=1 ttl=64 time=1.19 ms
  56. 64 bytes from 192.168.42.201: icmp_seq=2 ttl=64 time=0.369 ms
  57.  
  58. /home/test/yocto/poky/build/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-arm -kernel /home/test/yocto/poky/build/tmp/deploy/images/qemuarm/zImage-qemuarm.bin -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=no,downscript=no -M versatilepb -hda /home/test/yocto/poky/build/tmp/deploy/images/qemuarm/core-image-minimal-dev-qemuarm-20141124054625.rootfs.ext3 -no-reboot -show-cursor -usb -usbdevice wacom-tablet -no-reboot -m 128 --append "root=/dev/sda rw console=ttyAMA0,115200 console=tty mem=128M highres=off "
  59.  
  60. # ping 192.168.42.202
  61. PING 192.168.42.202 (192.168.42.202) 56(84) bytes of data.
  62. ^C
  63. --- 192.168.42.202 ping statistics ---
  64. 670 packets transmitted, 0 received, 100% packet loss, time 669735ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement