Changes between Version 68 and Version 69 of GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup


Ignore:
Timestamp:
05/15/16 16:44:07 (5 years ago)
Author:
lnevers@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup

    v68 v69  
    9191== b. Manually Configure OSPF for XORP ==
    9292
    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 stored in `/etc/xorp/`.
    94 
    95 We first configure `OSPF` on `router-1`. The sample configuration file for `router-1` can be downloaded from [http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r1-ospf.conf here], where you may find the interface information in the sample file may be different from `router-1`'s interfaces.
    96 It's highly recommended that make sure you double check whether you have the interface information correct in the `ospfd.conf` on `router-1` before you start `xorp`.   
    97 
    98 To do that create the `/etc/xorp` directory:
     93In 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
     95First, 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:
    9996{{{
    10097sudo mkdir /etc/xorp
    10198}}}
    10299
    103 Then create and edit the file using your favorite editor:
     100Then create the `router-1` file ospf configuration file, which you may cut-n-paste or secure copy to its destination:
    104101{{{
    105102sudo vi /etc/xorp/ospfd.conf
    106103}}} 
    107104
    108 
    109 There are several key information we observed by manually creating the `OSPF` configuration file for `router-1`.
    110 
    111  * Interface Information
     105You 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
     107There are several key configuration itemsin the `OSPF` configuration file for `router-1`.
     108
     109__Interface Information:__
    112110{{{
    113111interface eth1 {
     
    128126}}}
    129127
    130  * `OSPF` Metrics
     128__OSPF Metrics:__
    131129{{{
    132130protocols {
     
    153151}}}
    154152
    155 
    156 To simplify the configuration process, we assume the `interface-cost` is 10 and the `hello-interval` for every virtual interface. So the main information we need from each node is the virtual interface's `address` and its `prefix-length`, as well as the router's `router-id` that is required for the `protocol` section in the configuration file.
    157 
    158 Similarly, create `ospfd.conf` under `/etc/xorp/` for 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`]).
     153To simplify the configuration process, we assume the `interface-cost` and the `hello-interval` are both set to 10 seconds for every virtual interface. The main information needed from each node is the virtual interface's `address` and its `prefix-length`, as well as the router's `router-id` that is required for the `protocol` section in the configuration file.
     154
     155Similarly, 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`]).
    159156
    160157
     
    163160=== i. Start `XORP` Process ===
    164161
    165 First, we need to add `xorp` to the group. Login to `router-1` and run the following command:
     162First, we need to add the `xorp` user group. Login to `router-1` and run the following command:
    166163
    167164{{{
     
    173170{{{
    174171xuanliu@router-1:~$ cd /usr/local/xorp/sbin/
    175 xuanliu@router-1:/usr/local/xorp/sbin$
    176172xuanliu@router-1:/usr/local/xorp/sbin$ sudo ./xorp_rtrmgr -b /etc/xorp/ospfd.conf -l /tmp/xorp_rtrmgr_log -d
    177173}}}
     
    196192}}}
    197193
    198 === ii. Verify the Routing ===
     194=== ii. Verify Routing ===
    199195
    200196Login to `router-1` and view the `OSPF` routing table:
     
    304300<table id="Table_01" border="0" cellpadding="5" cellspacing="0">
    305301        <tr>
    306                 <td>
    307                         <img src="http://trac.gpolab.bbn.com/gcf/raw-attachment/wiki/Graphics/stock_notes.png" width="40" height="40" alt="Note">
    308                </td>
     302        <td>
     303        <img src="http://trac.gpolab.bbn.com/gcf/raw-attachment/wiki/Graphics/stock_notes.png" width="40" height="40" alt="Note">
     304        </td>
    309305<td>
    310306Please go to <a href="http://groups.geni.net/geni/wiki/HowTo/WriteInstallScript"> HOWTOWriteInstallScript</a> for details on how to write an install script.