Configuration LoggingAfter Quagga is installed, configure Zebra to manage the network interfaces of the BGP router. We start the first step by creating a Zebra configuration file and enabling logging.
# cp /usr/share/doc/quagga-XXXXX/zebra.conf.sample /etc/quagga/zebra.conf
In CentOS6:
# service zebra start# chkconfig zebra on
In CentOS7:
# systemctl start zebra# systemctl enable zebra
Quagga provides a command line tool unique to vtysh. You can enter commands that are compatible with and supported by vro vendors (such as Cisco and Juniper. We will use vtysh shell to configure BGP routing in the rest of the tutorial.
Start the vtysh shell command and enter:
# vtysh
The prompt will be changed to this host name, which indicates that you are in vtysh shell.
Router-A#
Now we will use the following command to configure the log file for Zebra:
Router-A# configure terminalRouter-A(config)# log file /var/log/quagga/quagga.logRouter-A(config)# exit
Permanently Save the Zebra Configuration:
Router-A# write
Perform the same steps on vrob B.
Configure peer IP addressesNext, we will configure the peer IP address on the available interface.
Router-A # show interface # display interface information
Interface eth0 is up, line protocol detection is disabled. . . . .Interface eth1 is up, line protocol detection is disabled.. . . .
Configure the parameters of the eth0 interface:
site-A-RTR# configure terminalsite-A-RTR(config)# interface eth0site-A-RTR(config-if)# ip address 100.100.0.1/30site-A-RTR(config-if)# description "to Router-B"site-A-RTR(config-if)# no shutdownsite-A-RTR(config-if)# exit
Continue to configure the parameters of the eth1 interface:
site-A-RTR(config)# interface eth1site-A-RTR(config-if)# ip address 100.100.1.1/24site-A-RTR(config-if)# description "test ip from provider A network"site-A-RTR(config-if)# no shutdownsite-A-RTR(config-if)# exit
Now confirm the Configuration:
Router-A# show interface
Interface eth0 is up, line protocol detection is disabledDescription: "to Router-B"inet 100.100.0.1/30 broadcast 100.100.0.3Interface eth1 is up, line protocol detection is disabled Description: "test ip from provider A network"100.100.1.1/24 broadcast 100.100.1.255
- Router-A # show interface description # display interface description
Interface Status Protocol Descriptioneth0 up unknown "to Router-B"eth1 up unknown "test ip from provider A network"
If everything looks normal, do not forget to save the configuration.
Router-A# write
Similarly, repeat the configuration in vrob B.
Before proceeding to the next step, make sure that the IP addresses of each other can be pinged.
Router-A# ping 100.100.0.2
PING 100.100.0.2 (100.100.0.2) 56(84) bytes of data.64 bytes from 100.100.0.2: icmp_seq=1 ttl=64 time=0.616 ms
Next, we will continue to configure BGP peer and prefix settings.