VirtualBox + RouterOS——Case Study 005
本帖最後由 角色 於 2018-3-5 00:08 編輯
Please see the following diagram:
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- VBoxManage modifyvm R1C --nic1 intnet
- VBoxManage modifyvm R1 --nic2 intnet
- VBoxManage modifyvm R1 --nic3 intnet
- VBoxManage modifyvm R1 --nic4 intnet
- VBoxManage modifyvm R1 --nic5 intnet
- VBoxManage modifyvm R1 --nic6 intnet
- VBoxManage modifyvm R1 --nic7 intnet
- VBoxManage modifyvm R1 --nic8 intnet
- VBoxManage modifyvm R1 --intnet1 Cable1
- VBoxManage modifyvm R1 --intnet2 Cable2
- VBoxManage modifyvm R1 --intnet3 Cable3
- VBoxManage modifyvm R1 --intnet4 Cable4
- VBoxManage modifyvm R1 --intnet5 Cable5
- VBoxManage modifyvm R1 --intnet6 Cable6
- VBoxManage modifyvm R1 --intnet7 Cable7
- VBoxManage modifyvm R1 --intnet8 Cable8
- VBoxManage modifyvm R1 --nicpromisc1 allow-vms
- VBoxManage modifyvm R1 --nicpromisc2 allow-vms
- VBoxManage modifyvm R1 --nicpromisc3 allow-vms
- VBoxManage modifyvm R1 --nicpromisc4 allow-vms
- VBoxManage modifyvm R1 --nicpromisc5 allow-vms
- VBoxManage modifyvm R1 --nicpromisc6 allow-vms
- VBoxManage modifyvm R1 --nicpromisc7 allow-vms
- 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- /interface bridge add name=bridge1
- /interface bridge port add bridge=bridge1 interface=ether1
- /interface bridge port add bridge=bridge1 interface=ether2
- /interface bridge port add bridge=bridge1 interface=ether3
- /interface bridge port add bridge=bridge1 interface=ether4
- /interface bridge port add bridge=bridge1 interface=ether5
- /interface bridge port add bridge=bridge1 interface=ether6
- /interface bridge port add bridge=bridge1 interface=ether7
- /interface bridge port add bridge=bridge1 interface=ether8
複製代碼 #
3. Configure the PC1, PC3, PC6 and PC8
Before configure them, perform- system reset-configure no-defaults=yes
複製代碼 #
Remove the dhcp client#
For PC1- /ip address add address=10.10.10.1/24 interface=ether1
複製代碼 #
For PC2- /ip address add address=10.10.10.3/24 interface=ether1
複製代碼 #
For PC3- /ip address add address=10.10.10.6/24 interface=ether1
複製代碼 #
For PC4- /ip address add address=10.10.10.8/24 interface=ether1
複製代碼 #
Now all the PC's are able to ping each other.
|
附件:
您需要登錄才可以下載或查看附件。沒有帳號?註冊