# Quick start

# Easy step to Use gated

1. Get the tar file from ftp.gated.org/net-research/gated

   (Hopefully, you've already done this.)

2. untar the source file into your directory

   `tar -xvf gated-R3_5_5.tar`

3. change directory to gated's source directory

   `cd gated-R3_5_5/src`

4. make an object directory for your operating system

   `mkdir obj.`util/archtype``

5. Find in the gated-R3_5_5/src/configs directory a configuration file for your machine type

   `ls ./configs/linux*`

6. Copy the configuration file from configs directory the new obj directory
   `cp ./configs/my-machine-config ./obj.`util/archtype`/Config

   An example of this command is
   cp ./configs/linux.inet97 ./obj.`util/archtype`/Config

   `
7. Make GateD's Makefile by typing

   `make config`

8. Make the GateD binary by typing

   `make`

9. Install GateD binaries by typing:

   `make install`

10. Install GateD manual pages for utilities and GateD

    `make install-man`

11. Configure gated configuration file in /etc/gated.conf

    Click to get a sample sample gated.conf file. Edit this example configuration file in this directory to fit your system. Each line that has a "#" is a comment.

    Use the Configuration manual to help you modify the sample file.

12. Check your configuaration file with gdc by typing

    `gdc checkconf`

13. Start up GateD

    `gdc start`

14. Watch GateD set-up the routing table

    - netstat

      `netstat -rn - shows the routse netstat -an - will show TCP session for BGP`

    - ospf_monitor - use to look at ospf routes, protocol and neighbors

      `ospf_monitor [ 1] dest command params > 127.0.0.1 I`

    - ripquery - use to look rip routes