zebra - configure for multiple persistent routes

Posted on 2005-04-14
Last Modified: 2013-11-22

I've got zebra installed... i want to configure it with multiple persitant routes so clients can use this box as their main router.  I'm trying to acheive load balancing/line bonding but need to create or make a conf file.

No idea what i'm doing!

Many thanks

Question by:jondanger
    LVL 61

    Expert Comment

    You have to arange AS number with your LIR and read documentation while you accomplish that
    LVL 2

    Expert Comment

    You can ask your provider for a private AS, also read zebra documentation which includes ospf, bgp, rip configurations.
    LVL 61

    Expert Comment

    Depends on location .... usually it takes only time.
    LVL 3

    Accepted Solution

    Are you sure you need to be running zebra?  Zebra is for setting up automated route discovery exchanges between large networks - and I mean LARGE networks, with your ISP itself counting as a "network".

    It sounds like all you really want is a simple gateway box with a few static routes assigned.  For that, you don't want zebra or routed, you just want to set gateway_enable = "YES" in your /etc/rc.conf (or issue the command /sbin/sysctl -w net.inet.ip.forwarding=1 in a shell script or at the command line) and set up some route commands in a shell script in /usr/local/etc/rc.d.

    Here's an example /usr/local/etc/rc.d/ startup script to set up a few simple routes:


    # this is /usr/local/etc/rc.d/
    # it will execute automatically at system boot time
    # or may be manually invoked as follows:
    # /usr/local/etc/rc.d/ start

    case "$1" in
       # enable packet forwarding through this system
       /sbin/sysctl -w net.inet.ip.forwarding=1

       #  syntax: route add destination_network gateway_address subnet_mask
       route add
       route add
       route add

       # no action needs to be taken

       echo "Usage: `basename $0` {start|stop}" >&2

    exit 0
    # end /usr/local/etc/rc.d/
    LVL 61

    Expert Comment

    Sysctl goes to /etc/sysctl.conf

    For static rotes you can add this to /etc/rc.conf
    static_routes="1 2 3"

    and so on

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (, discussed installing the Solaris Operating S…
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now