162 | | |
163 | | == Configure your routers == |
164 | | |
165 | | ''In each of your four router hosts,'' run the extractClickConfig script as shown below. |
166 | | |
167 | | {{{ |
168 | | [mberman@top ~]$ /local/click-example/extractClickConfig.py |
169 | | }}} |
170 | | |
171 | | You'll get output something like this: |
172 | | {{{ |
| 162 | ==== Test remote execution ==== |
| 163 | You can execute commands in a remote host using `ssh`. To do this just follow your ssh command with the command you want to execute in quotes. |
| 164 | i. In your local terminal type : |
| 165 | {{{ |
| 166 | ssh -A top "ls -a" |
| 167 | }}} |
| 168 | This will list all the files under the home directory on host `top`. The output should look like: |
| 169 | {{{ |
| 170 | geni@geni-VirtualBox:~$ ssh -A top "ls -a" |
| 171 | . |
| 172 | .. |
| 173 | .bash_logout |
| 174 | .bash_profile |
| 175 | .bashrc |
| 176 | .forward |
| 177 | .kshrc |
| 178 | .ssh |
| 179 | .zshrc |
| 180 | }}} |
| 181 | |
| 182 | If you get something similar you are all set for controlling your nodes from your computer. |
| 183 | |
| 184 | === 3b. Configure your routers === |
| 185 | We are going to use remote execution to configure our routers. |
| 186 | i. In a local terminal run the following command four time, each time substituting the <router_nickname> with one of the top, bottom, left, right: |
| 187 | {{{ |
| 188 | geni@geni-VirtualBox:~$ ssh -A <router_nickname> "/local/click-example/extractClickConfig.py " |
| 189 | }}} |
| 190 | You'll get output something like this: |
| 191 | {{{ |