Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install dynamic routing Software Quagga under Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "how to install dynamic routing software Quagga under Linux", so the editor summarizes the following contents, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to install dynamic routing software Quagga under Linux" article.

Quagga is an open source dynamic routing software that implements RIP, OSPF and BGP based on Zebra. It provides CLI commands similar to Cisco IOS, and you can use quagga to turn a linux machine into a fully functional router.

Installation environment

Ubuntu 16.04

Installation process

Install quagga:

Sudo apt-get install quagga

Enable forwarding services for IPv4 and IPv6:

Echo "net.ipv4.conf.all.forwarding=1" | sudo tee-a / etc/sysctl.confecho "net.ipv4.conf.default.forwarding=1" | sudo tee-a / etc/sysctl.confsed 's net.ipv6.conf.default.forwarding=1 net.ipv6.conf.all.changdingroom1net.ipv6.conf.all.changdingroom1Universe g'/ etc/sysctl.conf | sudo tee / etc/sysctl.confecho "net.ipv6.conf.default.forwarding=1" | sudo tee-a / etc/sysctl.confsudo sysctl-p1234

Create the configuration folder Create the configuration files:

Sudo nano / etc/quagga/babeld.confsudo nano / etc/quagga/bgpd.confsudo nano / etc/quagga/isisd.confsudo nano / etc/quagga/ospf6d.confsudo nano / etc/quagga/ospfd.confsudo nano / etc/quagga/ripd.confsudo nano / etc/quagga/ripngd.confsudo nano / etc/quagga/vtysh.confsudo nano / etc/quagga/zebra.conf12345678

Ctrl+O writes to the file in nano, and Ctrl+X closes the file. Change the owner and mode of the configuration folder:

Sudo chown quagga:quagga / etc/quagga/babeld.conf & & sudo chmod 640 / etc/quagga/babeld.confsudo chown quagga:quagga / etc/quagga/bgpd.conf & & sudo chmod 640 / etc/quagga/bgpd.confsudo chown quagga:quagga / etc/quagga/isisd.conf & & sudo chmod 640 / etc/quagga/isisd.confsudo chown quagga:quagga / etc/quagga/ospf6d.conf & & sudo chmod 640 / etc/quagga/ospf6d.confsudo chown quagga:quagga / etc/quagga/ospfd.conf & & sudo chmod 640 / etc / quagga/ospfd.confsudo chown quagga:quagga / etc/quagga/ripd.conf & & sudo chmod 640 / etc/quagga/ripd.confsudo chown quagga:quagga / etc/quagga/ripngd.conf & & sudo chmod 640 / etc/quagga/ripngd.confsudo chown quagga:quaggavty / etc/quagga/vtysh.conf & & sudo chmod 660 / etc/quagga/vtysh.confsudo chown quagga:quagga / etc/quagga/zebra.conf & & sudo chmod 640 / etc/quagga/zebra.conf12345678

If the file is not cleared successfully in the previous step, an error will be reported:

Unlink: unable to clear the link to'/ etc/systemd/system/multi-user.target.wants/bgpd.service': there is no such file or directory

Select the routing protocol to start:

Sudo nano / etc/quagga/daemons

Change the no of the routing protocol to be started to yes:

Zebra=yesbgpd=yesospfd=yesospf6d=yesripd=yesripngd=yesisisd=yesbabeld=yes1234567

Edit the access to Telnet and the remaining routes:

Sudo nano / etc/quagga/debian.confvtysh_enable=yeszebra_options= "--daemon-A 127.0.0.1-P 2601-u quagga-g quagga" bgpd_options= "--daemon-A 127.0.0.1-P 2605-u quagga-g quagga-- retain-p 179" ospfd_options= "--daemon-A 127.0.0.1-P 2604-u quagga-g quagga" ospf6d_options= "- daemon-A: 1-P 2606-u quagga-g quagga "ripd_options="-- daemon-A 127.0.0.1-P 2602-u quagga-g quagga "ripngd_options="-- daemon-A: 1-P 2603-u quagga-g quagga "isisd_options="-- daemon-A 127.0.0.1-P 2608-u quagga-g quagga "babeld_options="-daemon-A 127.0.0.1-P 2609-u quagga-g quagga "12345678

Restart the backend Restart the daemon:

Sudo / etc/init.d/quagga restart

Use Telnet to link localhost (zebra port)

Telnet localhost zebra

Prompt password is not set:

27.0.0.1 2601Trying 127.0.0.1...Connected to 127.0.0.1.Escape character is'^] '.Vty password is not set.Connection closed by foreign host.12345

Configure password:

Sudo echo "password typeyourpasswordhere" > > / etc/quagga/zebra.conf

Close the current terminal, reopen one, and type:

Telnet localhost zebra

Enter the password to log in, and then enter "enable" to get all privileges:

Trying 127.0.0.1...Connected to localhost.Escape character is'^] '.Hello, this is Quagga (version 0.99.24.1). Copyright 1996-2005 Kunihiro Ishiguro, et al.User Access VerificationPassword:tracy-virtual-machine > enabletracy-virtual-machine#12345678910

Enter quagga every time you start it.

The above sudo / etc/init.d/quagga start is the content of this article on "how to install dynamic routing software Quagga under Linux". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report