Quagga Server Installation and configuration

Source: Internet
Author: User
Tags server installation and configuration

Use local source One, install package # Yum install quagga-0.99.15-7.el6_3.2.x86_64.rpm or RPM # ls/etc/quagga/bgpd.conf.sample Ospfd.conf.sample vtysh.conf zebra.conf.samplebgpd.conf.sample2 ripd.conf.sample vtysh.conf.sampleospf6d.conf.sample ripngd . conf.sample zebra.conf Second, server basic configuration 1, replication configuration file:]# CP/ETC/QUAGGA/ZEBRA.CONF.SAMPLE/ETC/QUAGGA/ZEBRA.CONFCP: Whether to overwrite "/etc/ Quagga/zebra.conf "? Y2, start zebra services [[email protected]quagga]# Service Zebra Start
3. Start-up service from Zebra
[[email protected]quagga]# Chkconfig Zebra on
[[email protected]quagga]# chkconfig--list Zebra
Zebra 0: Off 1: Off 2: Enable 3: Enable 4: Enable 5: Enable 6: Turn off 4, view port number [[email protected]quagga]# Netstat-antu|grep 2601
TCP 0 0 127.0.0.1:2601 0.0.0.0:* LISTEN with 127.0.0.1 login 5, Router basic configuration (1) into configuration mode: [[email protected]quagga]# telnet 127.0.0.1 2601
Password:                               Enter the connection password, Default is zebrarouter>                             &NBSP ;     has entered user mode  Router> Enablepassword:                   &NBSP ;           access to privileged mode password defaults to zebrarouter#                                   has entered the privileged Mode  router# config terminal         Enter configuration mode Router (config) # (2), set system Network name Router (config) # hostname router1router1 (config) # (3), configure password Router1 (config) # Password Zebra                               &N Bsp Configure Terminal connection password Router1 (config) # enable password zebra                     Configure access privileges Mode password Router1 (config) # service PAssword-encryption           password encryption (4), configure interface IP address Router1 (config) # interface eth0     &N Bsp                            -  Be sure to enter the interface mode Router1 (c ONFIG-IF) # IP add         press TAB to auto-complete  router1 (config-if) # IP address 192.168.0.2/24     & nbsp         Set IP address, subnet mask Router1 (config-if) # no shutdown               &NB Sp                 Activate network interface Router1 (CONFIG-IF) # exit                                    ,         &NB Sp     exit Router1 (config) # interface eth1                     &NBSP ;               Add a second IPRouter1 (config-if) # IP address 192.168.1.2/24       &nbSp       Set IP address, subnet mask Router1 (config-if) # no shutdown                 &N Bsp                 Activate network interface can ' t up interface                                      ,         &N Bsp             This is where you need to add a virtual NIC, and note that you choose to share only one network with the host (host only) Router1 (config-if) # no ShutdownRouter1 ( CONFIG-IF) # exitRouter1 (config) # exitrouter1# show interface                 &NBSP ;                             View interface Information interface Eth0 is Up, line protocol detection is disabled  index 2 metric 1 MTU   Flags: &LT;UP,BROADCAST,RUNNING,MULTICAST&G t;  hwaddr:00:0c:29:d1:b6:78  inet 192.168.0.2/24 broadcast 192.168.0.255  inet 192.168.121.171/24 Broadcast 192.168.121.255  Inet6 fe80::20c:29ff:fed1:b678/64interface eth1 is up, line protocol detection is disabled  index 3 met Ric 1 MTU   flags: <UP,BROADCAST,RUNNING,MULTICAST>  inet 192.168.126.128/24 Broadcast 192.168.126.255  Inet6 fe80::20c:29ff:fed1:b682/64interface Lo is up, line protocol detection is disabled  Inde X 1 metric 1 MTU 16436   Flags: <UP,LOOPBACK,RUNNING>  inet 127.0.0.1/8  inet6:: 1/128 router1# Show interface eth0                   View eth0 interface information separately interface eth0 is up, line Protocol detection is disabled  index 2 metric 1 MTU   Flags: <UP,BROADCAST,RUNNING,MULTICAST>  hwaddr:00:0c:29:d1:b6:78  inet 192.168.0.2/24 broadcast 192.168.0.255  inet 192.168.121.171/24 broadcast 192.168.121.255  inet6 fe80::20c:29ff:fed1:b678/64  Configure IP address for eth1 (reopen a terminal): [[email protected]  ~]# ifconfig eth1 192.168.1.2router1# Show Interface Eth1interface eth1 is up, line protocol Detection is disabled  index 3 metric 1 MTU   flags: <UP,BROADCAST,RUNNING,MULTICAST>  inet 192. 168.1.2/24 broadcast 192.168.1.255  Inet6 FE80::20C:29FF:FED1:B682/64 (5), Display IP routing table information router1# show IP route   Codes:k-Kernel route, c-connected, S-static, R-rip, o-ospf,       i-isis, B-BGP, >- Selected Route, *-FIB route k>* 0.0.0.0/0 via 192.168.121.2, eth0             Kernel Road By Table c>* 127.0.0.0/8 is directly connected, lo       loop   k>* 169.254.0.0/16 is directly Conne CTED, eth0c>* 192.168.0.0/24 is directly connected, eth0       Direct Connect network c>* 192.168.1.0/24 is directly conn ected, eth1c>* 192.168.121.0/24 is directly connected, eth0 (6), setting up and viewing access control lists router1# configure terminal with way   router1# conf t same  router1 (config) # accesS-list private-only Permit 192.168.0.0/24           Only allow these four networks to be forwarded, rejecting any other network Router1 (config) # Access-list private-only permit 192.168.1.0/24router1 (config) # access-list private-only Permit 192.168.2.0/24router1 ( Config) # access-list private-only permit 192.168.3.0/24 router1 (config) # access-list private-only deny any  Router1 (config) # exitrouter1# show ip access-list             View access control list Zebra:zebra IP access l IST private-only    Permit 192.168.0.0/24    Permit 192.168.1.0/24    Permit 192.168.2.0/ 24    Permit 192.168.3.0/24    deny   any (7), view and save router configuration router1# show Running-config   To view the currently running routing configuration router1# show Startup-config     show the configuration content for the next launch router1# copy running-config startup-config   Save to the next startup configuration file in config saved To/etc/quagga/zebra.confrouter1# exit
Connection closed by foreign host.
[[email protected]quagga]# cat/etc/quagga/zebra.conf Here you can see the configuration information note: Another way is to directly modify the/etc/quagga/zebra.conf configuration file, which is two ways, according to the actual situation of their own choice.

Quagga Server Installation and configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.