Changes between Version 3 and Version 4 of GENIExperimenter/Tutorials/SystematicExprCaseStudy/InstallSoftwareQuagga


Ignore:
Timestamp:
06/16/16 19:22:42 (5 years ago)
Author:
pjayanth@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIExperimenter/Tutorials/SystematicExprCaseStudy/InstallSoftwareQuagga

    v3 v4  
    105105= 2. Customize Your VM =
    106106
    107 In this tutorial we will install `XORP 1.8.5` on `Ubuntu 12.04` with the following steps:
     107In this tutorial we will install `Quagga` on `Ubuntu 14.04` with the following steps:
    108108
    109109 * Install Dependencies
    110110{{{
    111111 sudo apt-get update
    112  sudo apt-get install libssl-dev
    113  sudo apt-get install ncurses-dev 
    114  sudo apt-get install libpcap-dev
    115  sudo apt-get install g++ traceroute
    116  sudo apt-get install scons
    117 }}}
    118  * Download XORP source files
    119 {{{
    120  cd
    121  wget http://www.xorp.org/releases/current/xorp-1.8.5-src.tar.bz2
    122  tar jvxf xorp-1.8.5-src.tar.bz2
    123 }}}
    124 
    125  * Compile and build `XORP`
    126 {{{
    127  cd xorp
    128  scons
    129  sudo scons install
    130 }}}
    131 
    132  * Verify the `XORP` installation (Optional)
    133 {{{
    134  scons check
     112}}}
     113 * Download Quagga source files
     114{{{
     115 sudo apt-get install quagga
     116}}}
     117
     118 * Enable IPv4 and IPv6 Forwarding:
     119{{{
     120 echo "net.ipv4.conf.all.forwarding=1" | sudo tee -a /etc/sysctl.conf
     121echo "net.ipv4.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf
     122sed 's/#net.ipv6.conf.all.forwarding=1/net.ipv6.conf.all.forwarding=1/g' /etc/sysctl.conf | sudo tee /etc/sysctl.conf
     123echo "net.ipv6.conf.default.forwarding=1" | sudo tee -a /etc/sysctl.conf
     124sudo sysctl -p
     125}}}
     126
     127 * Create the configuration files:
     128{{{
     129 sudo nano /etc/quagga/babeld.conf
     130sudo nano /etc/quagga/bgpd.conf
     131sudo nano /etc/quagga/isisd.conf
     132sudo nano /etc/quagga/ospf6d.conf
     133sudo nano /etc/quagga/ospfd.conf
     134sudo nano /etc/quagga/ripd.conf
     135sudo nano /etc/quagga/ripngd.conf
     136sudo nano /etc/quagga/vtysh.conf
     137sudo nano /etc/quagga/zebra.conf
    135138}}}
    136139
     140 * Change the owner and the mode of the configuration files:
     141{{{
     142sudo chown quagga:quagga /etc/quagga/babeld.conf && sudo chmod 640 /etc/quagga/babeld.conf
     143sudo chown quagga:quagga /etc/quagga/bgpd.conf && sudo chmod 640 /etc/quagga/bgpd.conf
     144sudo chown quagga:quagga /etc/quagga/isisd.conf && sudo chmod 640 /etc/quagga/isisd.conf
     145sudo chown quagga:quagga /etc/quagga/ospf6d.conf && sudo chmod 640 /etc/quagga/ospf6d.conf
     146sudo chown quagga:quagga /etc/quagga/ospfd.conf && sudo chmod 640 /etc/quagga/ospfd.conf
     147sudo chown quagga:quagga /etc/quagga/ripd.conf && sudo chmod 640 /etc/quagga/ripd.conf
     148sudo chown quagga:quagga /etc/quagga/ripngd.conf && sudo chmod 640 /etc/quagga/ripngd.conf
     149sudo chown quagga:quaggavty /etc/quagga/vtysh.conf && sudo chmod 660 /etc/quagga/vtysh.conf
     150sudo chown quagga:quagga /etc/quagga/zebra.conf && sudo chmod 640 /etc/quagga/zebra.conf
     151}}}
     152
     153 * Edit which routing protocols are to run:
     154{{{
     155sudo nano /etc/quagga/daemons
     156zebra=yes
     157bgpd=yes
     158ospfd=yes
     159ospf6d=yes
     160ripd=yes
     161ripngd=yes
     162isisd=yes
     163babeld=yes
     164}}}
     165
     166 * Edit telnet access and the retaining of routes over restarts:
     167{{{
     168sudo nano /etc/quagga/debian.conf
     169vtysh_enable=yes
     170zebra_options=" --daemon -A 127.0.0.1 -P 2601 -u quagga -g quagga"
     171bgpd_options=" --daemon -A 127.0.0.1 -P 2605 -u quagga -g quagga --retain -p 179"
     172ospfd_options=" --daemon -A 127.0.0.1 -P 2604 -u quagga -g quagga"
     173ospf6d_options=" --daemon -A ::1 -P 2606 -u quagga -g quagga"
     174ripd_options=" --daemon -A 127.0.0.1 -P 2602 -u quagga -g quagga"
     175ripngd_options=" --daemon -A ::1 -P 2603 -u quagga -g quagga"
     176isisd_options=" --daemon -A 127.0.0.1 -P 2608 -u quagga -g quagga"
     177babeld_options=" --daemon -A 127.0.0.1 -P 2609 -u quagga -g quagga"
     178}}}
     179
     180 * Restart the daemon:
     181{{{
     182sudo /etc/init.d/quagga restart
     183}}}
    137184The `xorp` installation takes ~40 minutes to complete. If you choose to run rhe `scons check` it will take an additional hour to complete. Once completed you will find the directory `xorp` under path `/usr/local/` directory
    138185