Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 1 | Getting Started with NLSR |
| 2 | ========================= |
| 3 | |
| 4 | .. toctree:: |
| 5 | .. |
| 6 | |
| 7 | Getting Source |
| 8 | -------------- |
| 9 | |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 10 | - `GitHub NLSR repository <https://github.com/named-data/NLSR>`_ |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 11 | |
| 12 | Installation |
| 13 | ------------ |
| 14 | |
| 15 | :doc:`INSTALL` |
| 16 | |
Nick Gordon | d5c1a37 | 2016-10-31 13:56:23 -0500 | [diff] [blame] | 17 | |
| 18 | Important Notes About Configuration |
| 19 | ----------------------------------- |
| 20 | |
| 21 | Since v0.4.0, NLSR no longer creates Faces for the neighbors that are |
| 22 | specified in ``nlsr.conf``. Instead, it relies on the pre-existence of |
| 23 | the Faces in NFD. NLSR will obtain this information from NFD, and |
| 24 | configure its neighbors using this information. |
| 25 | |
| 26 | For people who were relying on NLSR to automagically configure their |
| 27 | networks, this must now be done with ``nfdc``. Its documentation can |
| 28 | be found `here |
| 29 | <https://named-data.net/doc/NFD/current/manpages/nfdc.html>`_ |
| 30 | |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 31 | Configuration |
| 32 | ------------- |
| 33 | |
| 34 | After installing NLSR from source, you need to create a configuration file for |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 35 | NLSR. Please take a look at :doc:`manpages/nlsr.conf` for a sample configuration. For |
| 36 | details on configuring a router, please refer to :doc:`ROUTER-CONFIG`. For details on |
| 37 | security configuration, please refer to :doc:`SECURITY-CONFIG`. |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 38 | |
| 39 | Running |
| 40 | ------- |
| 41 | |
| 42 | Run nlsr with the following command: |
| 43 | |
| 44 | :: |
| 45 | |
| 46 | nlsr |
| 47 | |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 48 | NLSR will look for the default configuration file, ``nlsr.conf``, in the current directory. |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 49 | |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 50 | You can also run ``nlsr -f`` with the absolute path of the configuration file: |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 51 | |
| 52 | :: |
| 53 | |
Alexander Afanasyev | 7decbbf | 2014-08-24 21:29:01 -0700 | [diff] [blame] | 54 | nlsr -f /usr/local/etc/ndn/nlsr.conf |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 55 | |
dmcoomes | cf8d0ed | 2017-02-21 11:39:01 -0600 | [diff] [blame] | 56 | Logging |
| 57 | ------- |
| 58 | |
| 59 | NLSR uses the ndn-cxx logging facility. All levels listed below the selected log-level |
| 60 | value are enabled. |
Vince Lehman | b722b10 | 2014-08-24 16:33:49 -0500 | [diff] [blame] | 61 | |
| 62 | :: |
| 63 | |
dmcoomes | cf8d0ed | 2017-02-21 11:39:01 -0600 | [diff] [blame] | 64 | Valid values: |
| 65 | |
| 66 | TRACE trace messages (most verbose) |
| 67 | DEBUG debugging messages |
| 68 | INFO informational messages |
| 69 | WARN warning messages |
| 70 | ERROR error messages |
| 71 | FATAL fatal (will be logged unconditionally) |
| 72 | |
| 73 | To obtain logs for NLSR, set the NDN_LOG environment variable with the correct prefix and |
David Arjona | 2fa23ea | 2018-11-28 11:50:38 -0600 | [diff] [blame^] | 74 | log-level settings. For example, running the following command will display all log |
| 75 | messages in NLSR with a DEBUG level or below. |
| 76 | |
| 77 | :: |
| 78 | |
| 79 | NDN_LOG='nlsr.*=DEBUG' nlsr |
| 80 | |
| 81 | If the user is presented with an error message `User does not have read and write |
| 82 | permission on the directory` it can be circumvented by running the application with sudo: |
| 83 | |
| 84 | :: |
| 85 | |
| 86 | sudo env NDN_LOG='nlsr.*=DEBUG' nlsr |
| 87 | |
dmcoomes | cf8d0ed | 2017-02-21 11:39:01 -0600 | [diff] [blame] | 88 | Use `man ndn-log` for more detailed instructions. |