QUAGGA - Documentation: Difference between revisions

From IT-Arts.net
Created page with "Category:Wiki === Starting the OSPF Daemon === The OSPF daemon (ospfd) is used to configure Open Shortest Path First (OSPF) routing. <nowiki> sudo systemctl start ospfd</nowiki> === Starting the BGP Daemon === The BGP daemon (bgpd) configures Border Gateway Protocol (BGP) routing. <nowiki> sudo systemctl start bgpd</nowiki> == Configuring OSPF == To configure OSPF, the `ospfd.conf` file needs to be modified. This file is usually located in `/etc/quagga/ospfd.c..."
 
m Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' "
 
Line 1: Line 1:
[[Category:Wiki]]
[[Category:Wiki]]
'''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]'''''


=== Starting the OSPF Daemon ===
=== Starting the OSPF Daemon ===

Latest revision as of 06:24, 17 January 2026


Return to Wiki Index


Starting the OSPF Daemon

The OSPF daemon (ospfd) is used to configure Open Shortest Path First (OSPF) routing.

sudo systemctl start ospfd

Starting the BGP Daemon

The BGP daemon (bgpd) configures Border Gateway Protocol (BGP) routing.

sudo systemctl start bgpd

Configuring OSPF

To configure OSPF, the `ospfd.conf` file needs to be modified. This file is usually located in `/etc/quagga/ospfd.conf`.

Basic OSPF Configuration

A simple OSPF configuration might look like the following:

router ospf
 network 192.168.1.0/24 area 0.0.0.0
 network 10.0.0.0/24 area 0.0.0.0

This configures OSPF to advertise the `192.168.1.0/24` and `10.0.0.0/24` networks in OSPF area 0.

Adding a Router ID

The router ID is a unique identifier for OSPF. It can be specified like this:

router ospf
 router-id 1.1.1.1

Configuring OSPF Passive Interfaces

To prevent OSPF from sending hello packets on certain interfaces, use the `passive-interface` command:

router ospf
 passive-interface eth0

Configuring OSPF Authentication

To configure authentication for OSPF, the following can be added:

router ospf
 area 0.0.0.0 authentication message-digest
 area 0.0.0.0 authentication-key mysecretkey

Configuring BGP

To configure BGP, the `bgpd.conf` file needs to be edited, usually located in `/etc/quagga/bgpd.conf`.

Basic BGP Configuration

A basic BGP configuration for peering with a neighbor looks like:

router bgp 65001
 neighbor 192.168.1.2 remote-as 65002
 network 192.168.1.0 mask 255.255.255.0

This example sets up a BGP session with a neighbor `192.168.1.2` in AS 65002 and advertises the `192.168.1.0/24` network.

Configuring BGP Route Reflectors

To set up a BGP route reflector, the following configuration can be used:

router bgp 65001
 neighbor 192.168.2.2 route-reflector-client

This will configure the neighbor `192.168.2.2` as a route reflector client.

Configuring BGP Aggregation

To aggregate BGP prefixes into a summary network, the following configuration can be used:

router bgp 65001
 aggregate-address 192.168.0.0 255.255.0.0 summary-only

This aggregates the `192.168.0.0/16` network and only advertises the summary.

Verifying Configuration

Once the configuration is in place, it's important to verify that the protocols are running as expected.

Verifying OSPF Status

Use the following command to verify OSPF neighbors:

vtysh -c "show ip ospf neighbor"

Verifying BGP Status

To check BGP status and routes, use the following:

vtysh -c "show ip bgp summary"

Verifying Routes

To verify the routing table:

vtysh -c "show ip route"