Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Dynamic routing - RIP or BGP or what?


Howard Lowndes wrote:
I want to do some dynamic routing in a network and I don't know whether I should be using RIP or BGP.


}                      quagga
   }       1.2.3.4 |------------|192.168.1.1        192.168.1.0/24
I'net }------------|eth1    eth0|-------------|---------------->>>
   }               |------------|default gw   |
}                                             |
                                              |192.168.1.2
                                    |--------------------|
                                    |       eth1         |
                                    |      quagga        |
                                    |       eth0         |
                                    |--------------------|
                                              |192.168.2.1
                                              |
                                              V
                                              V
                                       192.168.2.0/24

When I bring the 192.168.2.0/24 network up I want to be able to broadcast that 192.168.1.0/24 network so that the 192.169.1.0/24 network and anything coming in via 1.2.3.4 knows that it is accessible via the 192.168.1.2 interface, but when I don't have the 192.168.2.0/24 network up I don't want to broadcast it, or let the 192.168.1.0/24 or the public world know anything about it.

Dynamic routing is the most appropriate and efficient solution. You simply advertise your network address to receive traffic. If you don't wish to receive traffic you remove the advertisement. Because of this it is easier and cleaner to configure and maintain your routes. Dynamic routing is PULL routing whilst static routing is PUSH routing and therefore in dynamic routing the receiver has better control for
in-coming traffic.

I have installed quagga where shown but I don't know whether I should be using RIP or BGP and I don't know wheta the config files should look like.

You can do RIP, OSPF, or BGP, although BGP is especially intended for multi-homing (more that one uplink/downlink). When you do BGP you can invent your AS Number but don't advertise your Network outside your local network. These protocols are all intended to simplify configuration and maintenance of your routes. For small networks like less than 5 networks, RIP works well. For complex networks use OSPF or BGP. Definitely BGP if you have multi-home nodes. For example, your Albury node sends/receives traffic to/from Canberra, to/from Wagga, to/from Gundagai, to/from Mebourne, etc, this is BGP routing. In other words if you use STAR-nodes network definitely BGP.

Hope this helps.

O Plameras