Convert img to qcow2:
qemu-img convert -f raw -O qcow2 chr-7.6.img chr-7.6.qcow2
Boot ROS and connect with webfig:
qemu-system-x86_64 -nic user,hostfwd=tcp:127.0.0.1:6001-:80 "chr-7.6.qcow2"Boot ROS and connect with winbox:
qemu-system-x86_64 -nic user,hostfwd=tcp:127.0.0.1:6002-:8291 "chr-7.6.qcow2"For GNS3 remote server:
- If the first interface is not ether1, do /system/reset-configuration, power off the machine, then upload the image to GNS3.
- To avoid default route added by dhcp client, use the following script or do /system/reset-configuration with no default configuration and run-after-reset=oob.rsc:
oob.rsc
/ip vrf add name=oob interface=ether1 /ip service set winbox vrf=oob /ip service set www vrf=oob
/ip vrf add name=oob interface=ether1 /ip service set winbox vrf=oob /ip service set www vrf=oob
in /ip firewall managle, the output chain with new-routing-mark will not work if there is no route in the main table; use routing rule instead.
沒有留言:
張貼留言