Changes between Version 70 and Version 71 of GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup
- Timestamp:
- 05/16/16 09:45:18 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup
v70 v71 97 97 sudo mkdir /etc/xorp 98 98 cd /etc/xorp 99 wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r1-ospf.conf99 sudo wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r1-ospf.conf 100 100 sudo mv r1-ospf.conf ospfd.conf 101 101 }}} … … 151 151 To 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. 152 152 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 :153 Now download the configuration on the remaining routers and verify that the interfaces addresses are properly mapped in the `ospfd.conf` file. 154 155 Download the sample OSPF configuration to router-2 and check interfaces address mappings as with router-1: 156 156 {{{ 157 157 sudo mkdir /etc/xorp 158 158 cd /etc/xorp 159 wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r2-ospf.conf159 sudo wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r2-ospf.conf 160 160 sudo mv r2-ospf.conf ospfd.conf 161 161 }}} 162 163 Download the sample OSPF configuration to router-3: 162 Download the sample OSPF configuration to router-3 and check interfaces address mappings as with router-1: 164 163 {{{ 165 164 sudo mkdir /etc/xorp 166 165 cd /etc/xorp 167 wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r3-ospf.conf166 sudo wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r3-ospf.conf 168 167 sudo mv r3-ospf.conf ospfd.conf 169 168 }}} 170 169 171 Download the sample OSPF configuration to router-4 :170 Download the sample OSPF configuration to router-4 and check interfaces address mappings as with router-1: 172 171 {{{ 173 172 sudo mkdir /etc/xorp 174 173 cd /etc/xorp 175 wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r4-ospf.conf174 sudo wget http://groups.geni.net/geni/raw-attachment/wiki/GENIExperimenter/Tutorials/SystematicExprCaseStudy/SmallTopo/DesignSetup/r4-ospf.conf 176 175 sudo mv r4-ospf.conf ospfd.conf 177 176 }}} 178 177 179 178 180 181 == c. Start `XORP` and Verify the Routing == 179 == c. Start `XORP` and Verify Routing == 182 180 183 181 === i. Start `XORP` Process === 184 182 185 First, we need to add the `xorp` user group. Login to `router-1` and run the following command: 186 183 First, we must add the `xorp` user group. Login to each router and run the following command: 187 184 {{{ 188 185 sudo groupadd xorp 189 186 }}} 190 191 187 Start `XORP` by specifying the routing protocol configuration file. 192 193 {{{ 194 xuanliu@router-1:~$ cd /usr/local/xorp/sbin/ 195 xuanliu@router-1:/usr/local/xorp/sbin$ sudo ./xorp_rtrmgr -b /etc/xorp/ospfd.conf -l /tmp/xorp_rtrmgr_log -d 188 {{{ 189 lnevers@router-1:/etc/xorp$ cd /usr/local/xorp/sbin/ 190 lnevers@router-1:/usr/local/xorp/sbin$ sudo ./xorp_rtrmgr -b /etc/xorp/ospfd.conf -l /tmp/xorp_rtrmgr_log -d 191 Not doing pidfile... 192 lnevers@router-1:/usr/local/xorp/sbin$ 196 193 }}} 197 194 198 195 Verify the `XORP` process is running 199 {{{ 200 xuanliu@router-1:/usr/local/xorp/sbin$ ps -ef | grep xorp 201 root 1972 1 0 13:30 ? 00:00:02 xorp_fea 202 root 1973 1 0 13:30 ? 00:00:00 xorp_rib 203 root 1974 1 0 13:30 ? 00:00:00 xorp_policy 204 root 1975 1 0 13:30 ? 00:00:01 xorp_ospfv2 205 root 1976 1 0 13:30 ? 00:00:00 ./xorp_rtrmgr -b /etc/xorp/ospfd.conf -l /tmp/xorp_rtrmgr_log -d 206 }}} 207 208 209 Then Start `XORP` for `router-2`, `router-3` and `router-4` in the same way. 210 211 If you need to stop `XORP` for some reason, there is no one-key method to stop `XORP` process, so we have to kill every `XORP`-related process. We can use the command like the one below to kill all `XORP` process at one time. 196 lnevers@router-1:/usr/local/xorp/sbin$ ps -ef | grep xorp 197 root 9658 1 0 06:06 pts/0 00:00:00 xorp_fea 198 root 9659 1 0 06:06 pts/0 00:00:00 xorp_rib 199 root 9660 1 0 06:06 pts/0 00:00:00 xorp_policy 200 root 9661 1 0 06:06 pts/0 00:00:00 xorp_ospfv2 201 root 9662 1 0 06:06 ? 00:00:00 ./xorp_rtrmgr -b /etc/xorp/ospfd.conf -l /tmp/xorp_rtrmgr_log -d 202 lnevers@router-1:/usr/local/xorp/sbin$ 203 }}} 204 205 Now you have routing running on all four router! 206 207 NOTE: If you need to stop `XORP`, use the kill command as shown below to stop each the 5 xorp processes: 212 208 213 209 {{{