{"id":160047,"date":"2012-11-24T13:53:04","date_gmt":"2012-11-24T09:53:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=160047"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=160047","title":{"rendered":"<span class=\"post_title\">\u0414\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442: \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0432\u0443\u0445 (\u0438 \u0431\u043e\u043b\u0435) \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 Bird Routing Daemon<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u043c, \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0442\u044c \u0434\u0432\u0430 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043a\u0430\u043d\u0430\u043b\u0430 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438.<br \/>  \u042d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0438 \u0445\u0430\u0440\u0434\u0432\u0430\u0440\u043d\u043e (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u044e\u0431\u043e\u0435 \u0434\u0435\u0448\u0435\u0432\u043e\u0435 \u043b\u0438\u0431\u043e \u0434\u043e\u0440\u043e\u0433\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435) \u0438 \u0441\u043e\u0444\u0442\u0432\u0435\u0440\u043d\u043e.<br \/>  \u041a\u0430\u043a\u0443\u044e \u0436\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c? \u0421\u0440\u0430\u0437\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u0442\u044c RIP\/OSPF\/BGP, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0443\u0432\u0435\u0440\u0435\u043d (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e), \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u044f\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<br \/>  \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0432\u044b\u0431\u043e\u0440 \u043d\u0430 <a href=\"http:\/\/bird.network.cz\/\">bird<\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f:   <\/p>\n<ul>\n<li>\u0414\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0440\u0430\u0443\u0442\u0435\u0440 \u0441 Debian GNU\/Linux 6.0.5 (squeeze) \u043d\u0430 \u0431\u043e\u0440\u0442\u0443<\/li>\n<li>2 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043a\u0430\u043d\u0430\u043b\u0430 (ISP1 \u0438 ISP2) <\/li>\n<li>2 \u043f\u0440\u044f\u043c\u044b\u0435 \u0440\u0443\u043a\u0438<\/li>\n<li>\u0447\u0430\u0448\u043a\u0430 \u043a\u043e\u0444\u0435<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a><br \/>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043c\u043e\u0435\u0439 \u0441\u0435\u0442\u0438:  <\/p>\n<ul>\n<li> eth0 \u2014 \u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 &#8216;ISP1&#8217;:<br \/> \n<ul>\n<li>IP: 10.10.10.106<\/li>\n<li>Netmask: 255.255.255.0<\/li>\n<li>Gateway: 10.10.10.1<\/li>\n<\/ul>\n<p>   <\/li>\n<li> eth1 \u2014 \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0435\u0442\u044c:<br \/> \n<ul>\n<li>IP: 192.168.254.254<\/li>\n<li>Netmask: 255.255.255.0<\/li>\n<\/ul>\n<p>   <\/li>\n<li> eth2 \u2014 \u041f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 &#8216;ISP2&#8217;:<br \/> \n<ul>\n<li>IP: 172.17.5.105<\/li>\n<li>Netmask: 255.255.255.0<\/li>\n<li>Gateway: 172.17.5.1<\/li>\n<\/ul>\n<p>   <\/li>\n<\/ul>\n<p>  \u042f \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u044c apt, \u043e\u0434\u043d\u0430\u043a\u043e \u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0432 \u0430\u043f\u0442\u0435 \u043b\u0435\u0436\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f bird (1.2.5-1) \u0438 \u0442\u0430\u043c \u043d\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 multipath.<br \/>  \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u044d\u0442\u043e \u0440\u0443\u043a\u0430\u043c\u0438. \u0417\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043e\u043f\u0443\u0441\u043a\u0430\u044e \u0432\u0441\u044f\u043a\u0438\u0439 \u0444\u043b\u0435\u0439\u043c, \u043a\u0430\u043a \u043d\u0435 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c debian \u0432 slackware.<\/p>\n<pre><code class=\"bash\"># mkdir -p \/usr\/local\/src\/bird && cd \/usr\/local\/src\/bird # wget ftp:\/\/bird.network.cz\/pub\/bird\/bird-1.3.8.tar.gz # tar xf bird-1.3.8.tar.gz # cd bird-1.3.8 # .\/configure --prefix=\/usr --sysconfdir=\/etc\/bird --localstatedir=\/var # make # make install <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0432 \u0441\u043e\u0440\u0446\u0430\u0445 \u043d\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u0430\u043f-\u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0434\u043b\u044f Debian. <br \/>  \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0430\u0440\u0442\u0430\u043f-\u0441\u043a\u0440\u0438\u043f\u0442 (\u043d\u0430\u0433\u043b\u043e \u0432\u0437\u044f\u0442 \u0438\u0437 \u0442\u043e\u0433\u043e \u0436\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0435\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u0432 \u0430\u043f\u0442-\u0435 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0432) <i>\/etc\/init.d\/bird<\/i> \u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c:<\/p>\n<pre><code class=\"bash\">#! \/bin\/sh ### BEGIN INIT INFO # Provides:          bird # Required-Start:    $remote_fs $syslog # Required-Stop:     $remote_fs $syslog # Default-Start:     2 3 4 5 # Default-Stop:      0 1 6 ### END INIT INFO  # Author: Ond\u0159ej Sur\u00fd &lt;ondrej@sury.org&gt; #  # PATH should only include \/usr\/* if it runs after the mountnfs.sh script PATH=\/sbin:\/usr\/sbin:\/bin:\/usr\/bin DESC=&quot;Internet routing daemon&quot; NAME=bird DAEMON=\/usr\/sbin\/$NAME DAEMON_ARGS=&quot;-c \/etc\/bird\/bird.conf&quot; #PIDFILE=\/var\/run\/$NAME.pid SCRIPTNAME=\/etc\/init.d\/$NAME  # Exit if the package is not installed [ -x &quot;$DAEMON&quot; ] || exit 0  # Load the VERBOSE setting and other rcS variables . \/lib\/init\/vars.sh  # Define LSB log_* functions. # Depend on lsb-base (&gt;= 3.0-6) to ensure that this file is present. . \/lib\/lsb\/init-functions  # # Function that starts the daemon\/service # do_start() {         # Return         #   0 if daemon has been started         #   1 if daemon was already running         #   2 if daemon could not be started         start-stop-daemon --start --quiet --name $NAME --exec $DAEMON --test &gt; \/dev\/null \\                 || return 1         start-stop-daemon --start --quiet --name $NAME --exec $DAEMON -- \\                 $DAEMON_ARGS \\                 || return 2         # Add code here, if necessary, that waits for the process to be ready         # to handle requests from services started subsequently which depend         # on this one.  As a last resort, sleep for some time. }  # # Function that stops the daemon\/service # do_stop() {         # Return         #   0 if daemon has been stopped         #   1 if daemon was already stopped         #   2 if daemon could not be stopped         #   other if a failure occurred         start-stop-daemon --stop --quiet --retry=TERM\/30\/KILL\/5 --name $NAME --exec $DAEMON         RETVAL=&quot;$?&quot;         [ &quot;$RETVAL&quot; = 2 ] && return 2         # Wait for children to finish too if this is a daemon that forks         # and if the daemon is only ever run from this initscript.         start-stop-daemon --stop --quiet --oknodo --retry=0\/30\/KILL\/5 --name $NAME --exec $DAEMON         [ &quot;$?&quot; = 2 ] && return 2         return &quot;$RETVAL&quot; }  # # Function that sends a SIGHUP to the daemon\/service # do_reload() {         #         # If the daemon can reload its configuration without         # restarting (for example, when it is sent a SIGHUP),         # then implement that here.         #         start-stop-daemon --stop --signal 1 --quiet --name $NAME --exec $DAEMON         return 0 }  case &quot;$1&quot; in   start)         [ &quot;$VERBOSE&quot; != no ] && log_daemon_msg &quot;Starting $DESC&quot; &quot;$NAME&quot;         do_start         case &quot;$?&quot; in                 0|1) [ &quot;$VERBOSE&quot; != no ] && log_end_msg 0 ;;                 2) [ &quot;$VERBOSE&quot; != no ] && log_end_msg 1 ;;         esac         ;;   stop)         [ &quot;$VERBOSE&quot; != no ] && log_daemon_msg &quot;Stopping $DESC&quot; &quot;$NAME&quot;         do_stop         case &quot;$?&quot; in                 0|1) [ &quot;$VERBOSE&quot; != no ] && log_end_msg 0 ;;                 2) [ &quot;$VERBOSE&quot; != no ] && log_end_msg 1 ;;         esac         ;;   reload|force-reload)         #         # If do_reload() is not implemented then leave this commented out         # and leave 'force-reload' as an alias for 'restart'.         #         log_daemon_msg &quot;Reloading $DESC&quot; &quot;$NAME&quot;         do_reload         log_end_msg $?         ;;   restart)         log_daemon_msg &quot;Restarting $DESC&quot; &quot;$NAME&quot;         do_stop         case &quot;$?&quot; in           0|1)                 do_start                 case &quot;$?&quot; in                         0) log_end_msg 0 ;;                         1) log_end_msg 1 ;; # Old process is still running                         *) log_end_msg 1 ;; # Failed to start                 esac                 ;;           *)                 # Failed to stop                 log_end_msg 1                 ;;         esac         ;;   *)         echo &quot;Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}&quot; &gt;&2         exit 3         ;; esac <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0440\u0442\u0430\u043f-\u0441\u043a\u0440\u0438\u043f\u0442 \u0433\u043e\u0442\u043e\u0432, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0430\u0432\u0442\u043e-\u0437\u0430\u043f\u0443\u0441\u043a:  <\/p>\n<pre><code class=\"bash\"># chmod +x \/etc\/init.d\/bird # update-rc.d bird enable update-rc.d: using dependency based boot sequencing <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043b\u043e\u0433\u0444\u0430\u0439\u043b\u0430:  <\/p>\n<pre><code class=\"bash\"># mkdir \/var\/log\/bird <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0441\u0430\u043c\u043e\u0433\u043e bird.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0431\u0430\u043a\u0430\u043f\u0438\u043c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439:  <\/p>\n<pre><code class=\"bash\"># cd \/etc\/bird # mv bird.conf bird-orig.conf # :&gt; bird.conf <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u043d\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435:  <\/p>\n<pre><code class=\"bash\">#  # Logging # # \u0423\u0440\u043e\u0432\u043d\u0438 \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. # all \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u043e { debug, trace, info, remote, warning, error, auth, fatal, bug } # \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c 2 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 (\u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0434\u0432\u0435 \u043d\u0438\u0436\u0435\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c): #        log &quot;\/var\/log\/bird\/debug.log&quot; { debug }; #        log &quot;\/var\/log\/bird\/warning.log&quot; { warning }; log &quot;\/var\/log\/bird\/bird.log&quot; all;  # Router ID: # \u0422\u0443\u0442 \u043f\u0438\u0448\u0435\u043c IP-\u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 \u0432\u0430\u0448\u0443 \u0434\u043e\u043c\u0430\u0448\u043d\u044e\u044e (\u043d\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430!) \u043b\u043e\u043a\u0430\u043b\u043a\u0443. router id 192.168.254.254;  # # Debugging # # \u0423\u0440\u043e\u0432\u043d\u0438 \u0434\u0435\u0431\u0430\u0433\u0430: # all | off | { states, routes, filters, interfaces, events, packets } debug protocols { routes, interfaces };  # # Protocols #  # \u0421\u0435\u0442\u0435\u0432\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0441\u043c\u0435\u043d\u044b \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u043e\u0432 (\u0432 \u043c\u043e\u0439\u043c \u0441\u043b\u0443\u0447\u0430\u0435 - \u044d\u0442\u043e eth0 \u0438 eth2) protocol direct {         interface &quot;eth0&quot;, &quot;eth2&quot;; }  # # Tables # # \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 # \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 ISP1 \u0438 ISP2: table ISP_ISP1; table ISP_ISP2; # \u0422\u0430\u0431\u043b\u0438\u0446\u0430 &quot;\u0434\u0440\u0443\u0433\u0438\u0435&quot;: table other; # \u0422\u0430\u0431\u043b\u0438\u0446\u0430 &quot;master&quot; - \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 (main). \u0412\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c main \u043d\u0435\u043b\u044c\u0437\u044f! table master;  # # Protocol 'static' #  protocol static {         table ISP_ISP1;         description &quot;Home internet ISP1&quot;;         check link on;         preference 100;         route 0.0.0.0\/0 via 10.10.10.1; }  protocol static {         table ISP_ISP2;         description &quot;Home internet ISP2&quot;;         check link on;         preference 150;         route 0.0.0.0\/0 via 172.17.5.1; }  protocol static {         table other;         description &quot;Other custom static routes&quot;;         preference 200;         # \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 (\u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0435) \u0432 \/etc\/bird\/static_route.d\/         include &quot;\/etc\/bird\/static_route.d\/*.conf&quot;; }  protocol static {         table master;         description &quot;Common Table&quot;;         # \u042d\u0442\u043e \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430, \u0441\u044e\u0434\u0430 \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 default-\u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b         route 0.0.0.0\/0 multipath                     via 10.10.10.1                     via 172.17.5.1; }  # # Protocol 'kernel' # # \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0432 'debug all'. \u0421\u043e\u0432\u0435\u0442\u0443\u044e \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u043b\u0438 \u0434\u0435\u0431\u0430\u0433\u0430. # \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0435\u0431\u0430\u0433 \u0441 'all' \u043d\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e. \u0412 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0432\u0430\u0448 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b \u0432\u044b\u0440\u0430\u0441\u0442\u0435\u0442 \u0432 \u0441\u043e\u0442\u043d\u0438 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442, \u0430 \u0442\u043e \u0438 \u0431\u043e\u043b\u044c\u0448\u0435. #  # \u041e\u043f\u0446\u0438\u044f 'persist' - \u043d\u0435 \u0434\u0430\u0435\u0442 bird \u0443\u0431\u0438\u0440\u0430\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043c, \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f (\u0438\u043b\u0438 \u043d\u0435\u0448\u0442\u0430\u0442\u043d\u043e\u0433\u043e &quot;\u043f\u0430\u0434\u0435\u043d\u0438\u044f&quot;) bird. # \u041e\u043f\u0446\u0438\u044f 'learn' - \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e bird \u0431\u0443\u0434\u0435\u0442 &quot;\u0438\u0437\u0443\u0447\u0430\u0442\u044c&quot; \u0432\u0441\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 # \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 10\/11\/254 (\u0434\u0430\u043b\u0435\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 10, 11, 254). # protocol kernel {         table ISP_ISP1;         persist;         learn;         scan time 20;         kernel table 10;         export all; #       debug all; }  protocol kernel {         table ISP_ISP2;         persist;         learn;         scan time 20;         kernel table 11;         export all; #       debug all; }  protocol kernel {         table master;         persist;         learn;         scan time 20;         kernel table 254;         export all; #       debug all; }  # # Protocol 'pipe. # # \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 (default). # \u0422\u0443\u0442 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c, \u0447\u0442\u043e \u0432 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 master \u0431\u0443\u0434\u0443\u0442 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u0445, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0432 ISP_ISP1, ISP_ISP2 \u0438 other. protocol pipe {         table master;         peer table ISP_ISP1;         peer table ISP_ISP2;         peer table other;         import all; #       debug all; } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u043c\u0430\u043d\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432 \u0438 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u043d\u043e\u0441\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u044b:<\/p>\n<pre><code class=\"bash\"># mkdir \/etc\/bird\/static_route.d\/ # cat &lt;&lt; EOF &gt;\/etc\/bird\/static_route.d\/ISP1_LAN.conf     route 10.0.5.0\/24  via 10.10.10.1;     route 175.5.25.0\/27 via 10.10.10.1;   # \u0441\u0435\u0442\u044c \u0432\u0437\u044f\u0442\u0430 &quot;\u0441 \u043f\u043e\u0442\u043e\u043b\u043a\u0430&quot;, \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0435\u0442\u044c \u0431\u0435\u043b\u044b\u0445 IP \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 ISP1 EOF # cat &lt;&lt; EOF &gt;\/etc\/bird\/static_route.d\/ISP2_LAN.conf     route 194.22.253.23\/27  via 172.17.5.1;    # \u0441\u0435\u0442\u044c \u0432\u0437\u044f\u0442\u0430 &quot;\u0441 \u043f\u043e\u0442\u043e\u043b\u043a\u0430&quot;, \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0435\u0442\u044c \u0431\u0435\u043b\u044b\u0445 IP \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 ISP2     route 5.9.0.0\/16 via 172.17.5.1;   # \u0441\u0435\u0442\u044c \u0432\u0437\u044f\u0442\u0430 &quot;\u0441 \u043f\u043e\u0442\u043e\u043b\u043a\u0430&quot;, \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u0441\u0435\u0442\u044c \u0431\u0435\u043b\u044b\u0445 IP \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 ISP2 EOF <\/code><\/pre>\n<p>  \u0412\u0441\u0435, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 bird \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0442\u0430\u0431\u043b\u0438\u0446 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \/etc\/iproute2\/rt_tables:  <\/p>\n<pre><code class=\"bash\"># cat &lt;&lt; EOF &gt;&gt;\/etc\/iproute2\/rt_tables  10       ISP1 11       ISP2 EOF <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0441 \u0441\u0435\u0442\u0438 ISP1 \u2014 \u043f\u0430\u043a\u0435\u0442\u044b \u0448\u043b\u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 ISP1, \u0430 \u043d\u0435 \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443.<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c ip rule(s):<br \/>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b iprules:<\/p>\n<p>  \u041a\u043e\u0434 \/etc\/network\/if-up.d\/iprules:  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  ISP1_NETWORKS=&quot;10.0.5.0\/24 175.5.25.0\/27&quot; ISP2_NETWORKS=&quot;194.22.253.23\/27 5.9.0.0\/16&quot;  if [ &quot;${LOGICAL}&quot; = &quot;eth0&quot; ]; then     for NET in ${ISP1_NETWORKS}; do         ip ru a from ${NET}  table ISP1  2&gt;\/dev\/null 1&gt;\/dev\/null     done fi  if [ &quot;${LOGICAL}&quot; = &quot;eth1&quot; ]; then     for NET in ${ISP2_NETWORKS}; do         ip ru a from ${NET}  table ISP2  2&gt;\/dev\/null 1&gt;\/dev\/null     done fi <\/code><\/pre>\n<p>  \u041a\u043e\u0434 \/etc\/network\/if-down.d\/iprules:  <\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  ISP1_NETWORKS=&quot;10.0.5.0\/24 175.5.25.0\/27&quot; ISP2_NETWORKS=&quot;194.22.253.23\/27 5.9.0.0\/16&quot;  if [ &quot;${LOGICAL}&quot; = &quot;eth0&quot; ]; then     for NET in ${ISP1_NETWORKS}; do         ip ru d from ${NET}  table ISP1  2&gt;\/dev\/null 1&gt;\/dev\/null     done fi  if [ &quot;${LOGICAL}&quot; = &quot;eth1&quot; ]; then     for NET in ${ISP2_NETWORKS}; do         ip ru d from ${NET}  table ISP2  2&gt;\/dev\/null 1&gt;\/dev\/null     done fi <\/code><\/pre>\n<p>  \u0421\u0442\u0430\u0432\u0438\u043c \u0444\u043b\u0430\u0436\u043e\u043a +x:  <\/p>\n<pre><code class=\"bash\"># chmod +x \/etc\/network\/if-{up,down}.d\/iprules <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 <s>\u0440\u0435\u0431\u0443\u0442\u0438\u043c<\/s>\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0445\u0438\u0442\u0440\u0435\u0435:  <\/p>\n<pre><code class=\"bash\"># LOGICAL=eth0  \/etc\/network\/if-up.d\/iprules # LOGICAL=eth2  \/etc\/network\/if-up.d\/iprules <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c bird:  <\/p>\n<pre><code class=\"bash\"># invoke-rc.d bird start <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:  <\/p>\n<pre><code class=\"bash\"># ip r 10.0.5.0\/24 via 10.10.10.1 dev eth0  proto bird 175.5.25.0\/27 via 10.10.10.1 dev eth0  proto bird 194.22.253.23\/27 via 172.17.5.1 dev eth2  proto bird 5.9.0.0\/16 via 172.17.5.1 dev eth2  proto bird 10.10.10.0\/24 dev eth0  proto kernel  scope link  src 10.10.10.106 172.17.5.0\/24 dev eth2  proto kernel  scope link  src 172.17.5.105 192.168.254.0\/24 dev eth1  proto kernel  scope link  src 192.168.254.254 default  proto bird         nexthop via 10.10.10.1  dev eth0 weight 1         nexthop via 172.17.5.1  dev eth2 weight 1 <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c <s>\u0432\u044b\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u0435\u043c \u0448\u043d\u0443\u0440\u043e\u043a<\/s>\u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043a\u0430\u0431\u0435\u043b\u044c \u043e\u0442 ISP1 (eth0), \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c:  <\/p>\n<pre><code class=\"bash\"># ip r | grep -E &quot;(default|nexthop)&quot; default  proto bird         nexthop via 10.10.10.1  dev eth0 weight 1 dead         nexthop via 172.17.5.1  dev eth2 weight 1 <\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f, \u0442\u0440\u0430\u0444\u0438\u043a \u043f\u043e\u0439\u0434\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0443\u0433\u043e\u0439, \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 20 \u0441\u0435\u043a\u0443\u043d\u0434 (\u0441\u043c. \u043e\u043f\u0446\u0438\u044e scan time 20 \u0432 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u0445 kernel) \u0438 \u043f\u0440\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0431\u0435\u0440\u0435\u0442 &#8216;dead&#8217;.<\/p>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435: \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438 10 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u043e\u0432. \t\t\t \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/160047\/\"> http:\/\/habrahabr.ru\/post\/160047\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0441 \u0442\u0435\u043c, \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0442\u044c \u0434\u0432\u0430 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442-\u043a\u0430\u043d\u0430\u043b\u0430 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438.<br \/>  \u042d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0438 \u0445\u0430\u0440\u0434\u0432\u0430\u0440\u043d\u043e (\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u044e\u0431\u043e\u0435 \u0434\u0435\u0448\u0435\u0432\u043e\u0435 \u043b\u0438\u0431\u043e \u0434\u043e\u0440\u043e\u0433\u043e\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435) \u0438 \u0441\u043e\u0444\u0442\u0432\u0435\u0440\u043d\u043e.<br \/>  \u041a\u0430\u043a\u0443\u044e \u0436\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c? \u0421\u0440\u0430\u0437\u0443 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u0431\u0440\u043e\u0441\u0438\u0442\u044c RIP\/OSPF\/BGP, \u0442\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u0443\u0432\u0435\u0440\u0435\u043d (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e), \u0447\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u0437\u0430\u0445\u043e\u0442\u044f\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<br \/>  \u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0432\u044b\u0431\u043e\u0440 \u043d\u0430 <a href=\"http:\/\/bird.network.cz\/\">bird<\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f:   <\/p>\n<ul>\n<li>\u0414\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0440\u0430\u0443\u0442\u0435\u0440 \u0441 Debian GNU\/Linux 6.0.5 (squeeze) \u043d\u0430 \u0431\u043e\u0440\u0442\u0443<\/li>\n<li>2 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043a\u0430\u043d\u0430\u043b\u0430 (ISP1 \u0438 ISP2) <\/li>\n<li>2 \u043f\u0440\u044f\u043c\u044b\u0435 \u0440\u0443\u043a\u0438<\/li>\n<li>\u0447\u0430\u0448\u043a\u0430 \u043a\u043e\u0444\u0435<\/li>\n<\/ul>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-160047","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/160047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=160047"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/160047\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=160047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=160047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=160047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}