Centos6.5 install zebra-0.95

Source: Internet
Author: User

Centos6.5 install zebra-0.95

1. Install zebra

[Root @ CentOS test] # tar -zxvfzebra-0.95a.tar.gz

Modify zebra. h

[Root @ CentOS zebra-0.95a] # vim./lib/zebra. h

Add the following in row 103:

# Ifdef GNU_LINUX

# Define _ USE_GNU

# Endif

Inform us that the GNU standard is used for compiling, and this is because zebra's support for IPV6 is added. In. h of the system header file, a struct such as struct in6_pktinfo is defined and referenced in zebra. Therefore, a macro is added to support IPv6.

[Root @ CentOS zebra-0.95a] #./configure

[Root @ CentOS zebra-0.95a] # make

[Root @ CentOS zebra-0.95a] # make install

If some library files are not installed during compilation, install the dependent library file first. When configuring vtysh later, quagga support may be required;

The service program will be installed under/usr/local/sbin by default. There are six service programs: bgpd ospf6d ospfd ripd ripngd zebra.

After successful make install, the executable files are stored in the/usr/local/sbin/path, and the sample configuration files are stored in the/usr/local/etc path.

You can directly use the configuration file provided by zebra

# Mkdir sample

# Mv *. sample./sample/

# Cp sample/zebra. conf. sample./zebra. conf

# Cp sample/ripd. conf. sample./ripd. conf

# Cp sample/ripngd. conf. sample./ripngd. conf

# Cp sample/ospfd. conf. sample./ospfd. conf

# Cp sample/ospf6d. conf. sample./ospf6d. conf

# Cp sample/bgpd. conf. sample./bgpd. conf

2. Configure zebra

Generate the zebra configuration file. Because there are simple examples in the system, you can use the existing configuration file to configure the logon and privileged mode passwords and host names.

[Root @ CentOS zebra-0.95a] # cpzebra/zebra. conf. sample/usr/local/etc/zebra. conf

3. Configure vtysh

[Root @ CentOS zebra-0.95a] # cpvstysh/vtysh. conf. sample/usr/local/etc/vtysh. conf

4. Start the zebra demo program

[Root @ CentOS zebra-0.95a] #/usr/local/sbin/zebra-d

5. telnet Logon

Telnet 127.0.0.1 2601 // if you are logging on to the LAN, change IPaddress to the specific host address.

2601 is the service port number of the zebra demo. The port number of other Protocols can be found in the relevant file.

To start other services provided by Zebra, generate a configuration file for the specific service under/usr/local/etc. For example, if you want to start the RIP Protocol Service, copy the configuration file related to the rip to/usr/local/etc/, and run ripd-d on the console, then, you can see that ripd is already running in the background.

Use the password zebra to log on to zebra and enter the user mode,

Use the enable command and password zebra to enter the privileged mode.

Use config terminal to enter global mode. You can use TAB to complete



Exit

Similar to Cisco router configurations.

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.