ubuntu 下quagga配置

来源:互联网 发布:淘宝私人定制推送 编辑:程序博客网 时间:2024/05/17 22:13
Install Quagga As Linux Router
Because the curious how to make Router in Linux, I was browsing to search for how to install Linux on the router using the quagga. After finding several blogs and the web of quagga load …. finally I make a summary and conclusions of how to install the router quagga. This posting only as a reminder, because my type of forgetful.


In this post I use the Ubuntu Linux distribution, because it is more practical and effective. Let’s see at the following description…. enjoy


1. Install source
#apt-get install quagga quagga-doc


2. Edit file daemons
#gedit /etc/quagga/daemons


3. Change status no / yes on suitable routing protocol
zebra=yes //Compulsory “yes”


bgp=no //Border gateway protocol
ospf=no //OSPF with IPV4
ospf6d=no //OSPF with IPv6
ripd=yes //RIP versi 2
ripngd=no //RIP with IPV6


4. Make file configuration zebra.conf and ripd.conf, by copy from sample file configuration
#cp /usr/share/doc/quagga/examples/zebra.conf.sample /etc/quagga/zebra.conf
#cp /usr/share/doc/quagga/examples/ripd.conf.sample /etc/quagga/ripd.conf




//needn't to do this term
5. Set password [optional]
#echo “password password” > /etc/quagga/zebra.conf


6. Change ownership user and group from files configuration in /etc/quagga, and change access permission
#chown quagga.quaggavty /etc/quagga/*.conf
#chmod 640 /etc/quagga/*.conf


7. Start daemons
#/etc/init.d/quagga start


8. Connect quagga
#telnet localhost zebra


9. Connect routing protocol  
#telnet localhost [ ospf | bgp | rip | eigrp]  // maybe you should add 'd'. e.g. bgpd   ripd  and so on.


=============OPTIONAL===============


By default quagga can only remoted from localhost [127.0.0.1], if we want to quagga can be accessed from other places, then:
1. Create file /etc/quagga/debian.conf
#mcedit /etc/quagga/debian.conf


- Examples of the contents of the file, according to the needs of -


# If this option is set the /etc/init.d/quagga script automatically loads
# the config via “vtysh -b” when the servers are started.
# Check /etc/pam.d/quagga if you intend to use “vtysh”!
#
vtysh_enable=yes //router di setting via VTYSH
zebra_options=” –daemon -A ” // “–daemon -A” , berarti dapat di access dari berbagai IP
bgpd_options=” –daemon -A “
ospfd_options=” –daemon -A 127.0.0.1 192.168.1.104″ //dapat di access dari localhost dan 192.168.1.104
ospf6d_options=”–daemon -A “
ripd_options=” –daemon -A “
ripngd_options=”–daemon -A “
isisd_options=” –daemon -A “


============Setting VTYSH===========
1. Create file configuration vtysh
#touch /etc/quagga/vtysh.conf


- Examples of the contents of the file, according to the needs of -


/etc/quagga/vtysh.conf
!
! Sample
!
! service integrated-vtysh-config
! Jika di disable maka file penyimpanan konfigurasi akan terpisah (misal ; zebra.conf dan ospfd.conf), jika di enable akan jadi satu pada Quagga.conf


hostname quagga-router
username root nopassword
!


Note :


As we see in the configuration file, the options service integrated-vtysh-config is disable, so that the files will be separate storage configuration (eg; zebra.conf and ospfd.conf), if so will enable the one on Quagga.conf




2.That does not happen in the blink when the remote with vtysh, do not forget to do the following


#echo VTYSH_PAGER=more > /etc/environnement
0 0
原创粉丝点击