93 | | In this tutorial we configure each VM as a virtual router running the `OSPF` routing protocol. Examples of `XORP` configurations can be found at [http://www.xorp.org/getting_started.html#configuring XORPExamples]. For each VM running as a software router, the `OSPF` configuration file will be named `ospfd.conf` and is stored in `/etc/xorp/`. |
94 | | |
95 | | First, configure `OSPF` on `router-1`. A sample configuration file can be downloaded for [http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r1-ospf.conf router-1]. Create the `/etc/xorp` directory: |
| 93 | In this tutorial we configure each VM as a virtual router running the `OSPF` routing protocol. Examples of `XORP` configurations can be found at [http://www.xorp.org/getting_started.html#configuring XORPExamples]. For each VM running as a software router, the `OSPF` configuration file will be named `ospfd.conf` and is stored in `/etc/xorp/`. We provide sample `OSPF` configuration file that can be downloaded to each router. |
| 94 | |
| 95 | Download the sample OSPF configuration to router-1: |
98 | | }}} |
99 | | |
100 | | Then create the `router-1` file ospf configuration file, which you may cut-n-paste or secure copy to its destination: |
101 | | {{{ |
102 | | sudo vi /etc/xorp/ospfd.conf |
103 | | }}} |
104 | | |
105 | | You may find the interface information in the sample files may be different from the routers interfaces. It's highly recommended that you check whether you have the interface information properly mapped in the `ospfd.conf` on each router before you start `xorp`. |
106 | | |
107 | | There are several key configuration itemsin the `OSPF` configuration file for `router-1`. |
| 98 | cd /etc/xorp |
| 99 | wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r1-ospf.conf |
| 100 | sudo mv r1-ospf.conf ospfd.conf |
| 101 | }}} |
| 102 | |
| 103 | The interface information in the sample files may be different from the routers interfaces, you must check that the interface information is properly mapped in the `ospfd.conf` on each router before you start `xorp`. |
| 104 | |
| 105 | There are several key configuration items in the `OSPF` configuration file for `router-1`. |
155 | | Similarly, repeat the configuration steps about for each of the other three virtual routers. Sample `ospfd.conf` files for [http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r2-ospf.conf `router-2`], [http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r3-ospf.conf `router-3`], and [http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r4-ospf.conf `router-4`]). |
| 153 | Now repeat download the configuration on the remaining routers and verify that the interfaces are properly mapped in the `ospfd.conf` file. |
| 154 | |
| 155 | Download the sample OSPF configuration to router-2: |
| 156 | {{{ |
| 157 | sudo mkdir /etc/xorp |
| 158 | cd /etc/xorp |
| 159 | wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r2-ospf.conf |
| 160 | sudo mv r2-ospf.conf ospfd.conf |
| 161 | }}} |
| 162 | |
| 163 | Download the sample OSPF configuration to router-3: |
| 164 | {{{ |
| 165 | sudo mkdir /etc/xorp |
| 166 | cd /etc/xorp |
| 167 | wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r3-ospf.conf |
| 168 | sudo mv r3-ospf.conf ospfd.conf |
| 169 | }}} |
| 170 | |
| 171 | Download the sample OSPF configuration to router-4: |
| 172 | {{{ |
| 173 | sudo mkdir /etc/xorp |
| 174 | cd /etc/xorp |
| 175 | wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r4-ospf.conf |
| 176 | sudo mv r4-ospf.conf ospfd.conf |
| 177 | }}} |
| 178 | |