| 37 | 6. Run/Execute the scripts present in {{{exp1}}} folder from the console (see below for more instruction) |
| 38 | |
| 39 | 7. Configure the config.sh file according to your node setup |
| 40 | {{{ |
| 41 | #!/bin/bash |
| 42 | |
| 43 | log_level="1" |
| 44 | |
| 45 | #Node IDs |
| 46 | n1="1" |
| 47 | n2="2" |
| 48 | n3="3" |
| 49 | n4="4" |
| 50 | |
| 51 | #Node Address |
| 52 | node1="node1-3" |
| 53 | node2="node1-4" |
| 54 | node3="node1-7" |
| 55 | node4="node1-6" |
| 56 | nodegnrs="node1-8" |
| 57 | }}} |
| 58 | |
| 59 | 8. Execute ./setup_interfaces.sh to configure the IP address of the respective {{{eth0}}} interfaces as shown in the topology figure above |
| 60 | {{{ |
| 61 | console:~/cosmos_tutorial/exp1$./setup_interfaces.sh |
| 62 | }}} |
| 63 | |
| 64 | 9. Execute ./copy_router_conf.sh to copy {{{topo}}} file required by click routers |
| 65 | {{{ |
| 66 | console:~/cosmos_tutorial/exp1$./copy_router_conf.sh |
| 67 | }}} |
| 68 | |
| 69 | 10. Use ./copy_hostconf.sh to copy host stack configuration files to the respective hosts |
| 70 | * Before copying host config file, make sure you edit these mfstack files present in conf folder. |
| 71 | * Inside {{{mfstack.conf}}}, configure the interfaces with the respective next hop IP and MAC address of the router. |
| 72 | {{{ |
| 73 | # Required. |
| 74 | DEFAULT_GUID = 1 |
| 75 | |
| 76 | #INTERFACE = ether,eth0,ip,auto |
| 77 | INTERFACE = ether,eth0,ip,manual,192.168.1.2,d8:50:e6:d4:f5:2d |
| 78 | }}} |
| 79 | |
| 80 | 11. Run ./start_gnrs.sh to start the GNRS at node1-8 |
| 81 | {{{ |
| 82 | console:~/cosmos_tutorial/exp1$./start_gnrs.sh |
| 83 | }}} |
| 84 | |
| 85 | Verify the status of the GNRS using command: {{{root@node1-8:~# tail -f /var/log/mfgnrs.log}}} at node1-8 |
| 86 | |
| 87 | 12. Run ./start_routers.sh to start the routers on node1-4 and node1-7. |
| 88 | {{{ |
| 89 | console:~/cosmos_tutorial/exp1$./start_routers.sh |
| 90 | }}} |
| 91 | |
| 92 | Verify the status of the routers using command: {{{root@node1-4:~# tail -f /var/log/mfrouter2.log}}} to read the logs of router with id 2 and {{{root@node1-7:~# tail -f /var/log/mfrouter3.log}}} to read the logs of router with id 3. |
| 93 | |
| 94 | 13. Run ./start_hosts.sh to start the host on node1-3, node1-6 respectively. |
| 95 | {{{ |
| 96 | console:~/cosmos_tutorial/exp1$./start_hosts.sh |
| 97 | }}} |
| 98 | Use {{{root@node1-3:~# tail -f /var/log/mfhost1.log}}} and {{{root@node1-6:~# tail -f /var/log/mfhost4.log}}} to read the logs/status of host with id 1 and id 4 respectively. |
| 99 | |
| 100 | === Running MFPING === |
| 101 | 1. At Host 4: Server(Start server first) |
| 102 | {{{ |
| 103 | root@node1-6:~# mfping -m 4 -o 1 -s -d |
| 104 | }}} |
| 105 | |
| 106 | 2. At Host 1: Client |
| 107 | {{{ |
| 108 | root@node1-3:~# mfping -d -m 1 -o 4 -c -n 10 |
| 109 | }}} |
| 110 | |
| 111 | 3. Use the stop script to stop the respective host, routers and GNRS |
| 112 | |
| 113 | === Additional Details === |
| 114 | 1. Starting GNRS: |
| 115 | * {{{cd mf/gnrs/jserver}}} |
| 116 | * {{{mf/gnrs/jserver# java -Dlog4j.configuration=file:sample-configs/single-server/log4j.xml -jar target/gnrs-server-1.0.0-SNAPSHOT-jar-with-dependencies.jar sample-configs/single-server/server.xml}}} |
| 117 | 2. Starting Routers: |
| 118 | * {{{cd ~/mf/router/click/conf}}} |
| 119 | * {{{~/mf/router/click/conf# click MF_IPAccessMultiRouter.click my_GUID=X topo_file=topo core_dev=ethX GNRS_server_ip=x.x.x.x GNRS_server_port=5000 GNRS_listen_ip=y.y.y.y GNRS_listen_port=5001 edge_dev=ethx edge_dev_ip=z.z.z.z}}} |
| 120 | 3. Staring Host: |
| 121 | * {{{cd mf/mfclient/hoststack/conf}}} |
| 122 | * {{{mf/mfclient/hoststack/conf# mfstack -d mfstack.conf}}} |