Board logo

標題: VirtualBox + RouterOS——Case Study 005 [打印本頁]

作者: 角色    時間: 2018-3-4 22:55     標題: VirtualBox + RouterOS——Case Study 005

本帖最後由 角色 於 2018-3-5 00:08 編輯

Please see the following diagram:

[attach]4067[/attach]

Objectives:

1. Change the CHR RouterOS to become a general purpose eight-port switch
2. The PC's are able to be mutually pingable

Procedures:

1. Provide the VirtuBox motherboard with 8 ports
  1. VBoxManage modifyvm R1C --nic1 intnet
  2. VBoxManage modifyvm R1 --nic2 intnet
  3. VBoxManage modifyvm R1 --nic3 intnet
  4. VBoxManage modifyvm R1 --nic4 intnet
  5. VBoxManage modifyvm R1 --nic5 intnet
  6. VBoxManage modifyvm R1 --nic6 intnet
  7. VBoxManage modifyvm R1 --nic7 intnet
  8. VBoxManage modifyvm R1 --nic8 intnet

  9. VBoxManage modifyvm R1 --intnet1 Cable1
  10. VBoxManage modifyvm R1 --intnet2 Cable2
  11. VBoxManage modifyvm R1 --intnet3 Cable3
  12. VBoxManage modifyvm R1 --intnet4 Cable4
  13. VBoxManage modifyvm R1 --intnet5 Cable5
  14. VBoxManage modifyvm R1 --intnet6 Cable6
  15. VBoxManage modifyvm R1 --intnet7 Cable7
  16. VBoxManage modifyvm R1 --intnet8 Cable8

  17. VBoxManage modifyvm R1 --nicpromisc1 allow-vms
  18. VBoxManage modifyvm R1 --nicpromisc2 allow-vms
  19. VBoxManage modifyvm R1 --nicpromisc3 allow-vms
  20. VBoxManage modifyvm R1 --nicpromisc4 allow-vms
  21. VBoxManage modifyvm R1 --nicpromisc5 allow-vms
  22. VBoxManage modifyvm R1 --nicpromisc6 allow-vms
  23. VBoxManage modifyvm R1 --nicpromisc7 allow-vms
  24. VBoxManage modifyvm R1 --nicpromisc8 allow-vms
複製代碼
#

2. Boot the Router R1 VM and add the following commands to make router to be a 8-port general purpose switch
  1. /interface bridge add name=bridge1
  2. /interface bridge port add bridge=bridge1 interface=ether1
  3. /interface bridge port add bridge=bridge1 interface=ether2
  4. /interface bridge port add bridge=bridge1 interface=ether3
  5. /interface bridge port add bridge=bridge1 interface=ether4
  6. /interface bridge port add bridge=bridge1 interface=ether5
  7. /interface bridge port add bridge=bridge1 interface=ether6
  8. /interface bridge port add bridge=bridge1 interface=ether7
  9. /interface bridge port add bridge=bridge1 interface=ether8
複製代碼
#

3. Configure the PC1, PC3, PC6 and PC8
Before configure them, perform
  1. system reset-configure no-defaults=yes
複製代碼
#

Remove the dhcp client
  1. /ip dhcp-client remove 0
複製代碼
#

For PC1
  1. /ip address add address=10.10.10.1/24 interface=ether1
複製代碼
#

For PC2
  1. /ip address add address=10.10.10.3/24 interface=ether1
複製代碼
#

For PC3
  1. /ip address add address=10.10.10.6/24 interface=ether1
複製代碼
#

For PC4
  1. /ip address add address=10.10.10.8/24 interface=ether1
複製代碼
#

Now all the PC's are able to ping each other.

[attach]4068[/attach]




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2