Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. virbr1 Link encap:Ethernet HWaddr 52:54:00:82:3e:4e
  2. inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
  3. UP BROADCAST MULTICAST MTU:1500 Metric:1
  4. RX packets:615 errors:0 dropped:0 overruns:0 frame:0
  5. TX packets:355 errors:0 dropped:0 overruns:0 carrier:0
  6. collisions:0 txqueuelen:0
  7. RX bytes:47897 (47.8 KB) TX bytes:34634 (34.6 KB)
  8.  
  9. virbr2 Link encap:Ethernet HWaddr 52:54:00:4f:a0:f3
  10. inet addr:192.168.101.1 Bcast:192.168.101.255 Mask:255.255.255.0
  11. UP BROADCAST MULTICAST MTU:1500 Metric:1
  12. RX packets:129 errors:0 dropped:0 overruns:0 frame:0
  13. TX packets:133 errors:0 dropped:0 overruns:0 carrier:0
  14. collisions:0 txqueuelen:0
  15. RX bytes:11775 (11.7 KB) TX bytes:12674 (12.6 KB)
  16.  
  17. liunx@liunx-G41MT-S2PT:~/Work/DocBook/work/code-farmer-note/examples/chapter8$ cat router.sh
  18. #!/bin/bash -
  19. set -o nounset
  20. # Treat unset variables as an error
  21. /usr/local/bin/qemu-system-i386
  22. -m 64M
  23. -kernel images/bzImage
  24. -hda images/rootfs.ext2
  25. -append "root=/dev/sda console=ttyS0"
  26. -enable-kvm
  27. -daemonize
  28. -vnc :51
  29. -net nic,vlan=0,model=e1000,macaddr=52:54:00:12:34:01
  30. -net tap,vlan=0,ifname=router1,script=router1-ifup,downscript=router1-ifdown
  31. -net nic,vlan=1,model=e1000,macaddr=52:54:00:12:34:02
  32. -net tap,vlan=1,ifname=router2,script=router2-ifup,downscript=router2-ifdown
  33. -net nic,vlan=2,model=e1000,macaddr=52:54:00:12:34:11
  34. -net vde,vlan=2,sock=/tmp/lan1.ctl[]
  35. -net nic,vlan=3,model=e1000,macaddr=52:54:00:12:34:12
  36. -net vde,vlan=3,sock=/tmp/lan2.ctl[]
  37. -net nic,vlan=4,model=e1000,macaddr=52:54:00:12:34:13
  38. -net vde,vlan=4,sock=/tmp/lan3.ctl[]
  39. -net nic,vlan=5,model=e1000,macaddr=52:54:00:12:34:14
  40. -net vde,vlan=5,sock=/tmp/lan4.ctl[]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement