Build the quagga environment and build quagga
#./configure --enable-vtysh
-- Enable-user = root -- enable-group = root -- enable-vty-group = root
#make
- # Make install
Add related services to/etc/services:
vim /etc/services
Add the following content:
zebrasrv 2600/tcp # zebra service
zebra 2601/tcp # zebra vty
ripd 2602/tcp # RIPd vty
ripngd 2603/tcp # RIPngd vty
ospfd 2604/tcp # OSPFd vty
bgpd 2605/tcp # BGPd vty
ospf6d 2606/tcp # OSPF6d vty
Configure the configuration files for zebra and ospf:
#cp /usr/local/etc/zebra.conf.sample /usr/local/etc/zebra.conf
- # Cp/usr/local/etc/ripd. conf. sample/usr/local/etc/ripd. conf
Start zebra
zebra -d
If the following error occurs:
Privs_init: cocould not lookup user quaggaThe user and group are not added:
#groupadd quagga
#useradd quagga -g quagga
#chown quagga:quagga /var/run/
#chmod 777 /var/run/
#chown quagga:quagga /usr/local/etc/
#chmod 777 /usr/local/etc/
Basic configuration routing command:
#zebra -d
#telnet localhost 2601
-
- Password:
At this time, the password is:
cat /usr/local/etc/zebra.conf
!-*- zebra -*-
!
! zebra sample configuration file
!
! $Id: zebra.conf.sample,v 1.12002/12/1320:15:30 paul Exp $
!
hostname Router
password zebra
enable password zebra
!
!Interface's description.
!
!interface lo
! description test of desc.
!
!interface sit0
! multicast
!
!Staticdefault route sample.
!
!ip route 0.0.0.0/0203.181.89.241
!
!log file zebra.log
You can use commands to control the configurations of these routes.
Null