Demonstration: Hybrid configuration of Dynamic Routing Based on Linux winows cisco Environment

Source: Internet
Author: User

Demonstration: Hybrid configuration of Dynamic Routing Based on Linux winows cisco Environment


With GNS3 + VM, you can complete all the experiments on one physical computer)

Supporting Demo Video: http://edu.51cto.com/course/course_id-499.html


Training focus:The configuration is based on the dynamic routing protocol r12002 in different operating system environments of Cisco, Linux, and Windows to meet the requirements of some special application environments, especially for routing emergency response and transition, different types of routers may be used in hybrid mode. However, this file focuses on describing the configuration of Linux routers. Because CISCO and Microsoft vrouters are easy to implement. However, before performing this experiment, we recommend that you have a certain understanding of the network routing principle and the RIP operation process. In fact, the Network Foundation is very important.

Environment that supports the training platform:As shown in figure 1.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6455V4-0.png "title =" 1.png"/>

Configuration Requirements:

The interface IP addresses must be configured for different systems in Figure 1, and the dynamic routing protocol RIP must be enabled for different systems, it also requires that each IP node in the network environment can communicate with another IP address. Use ping to view the route table of each route device as the verification result.

Configure teaching and demonstration resources:Hybrid configuration Dynamic Routing Based on Linux winows cisco Environment


Step 1:To configure Linux RIP, first ensure that there must be two NICs on the Linux router, enter the correct IP address, and then use ifconfig to view the information as shown in figure 2.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F645I52-1.png "title =" 2.png"/>


Then install the quagga package, which is an extension of the Zebra program. It supports dynamic routing protocols such as r12001, r00002, OSPF, and BGP on Linux routers. By default, the quagga package is not installed on the Linux server, so you must install it. The source file of this package is on the Linux CD, as shown in Figure 3. You can install it in many ways, you can use yum install quagga. If it is on the graphic interface, you can also double-click it in the same way as Windows to install it. For Linux beginners, it is recommended to use the latter for installation.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F645HJ-2.png "title =" 3.png"/>


Note: When Beginners use double-click quaggaInstall quagga using the software packageWhen installing the software, you may be prompted for a lack of other runtime environments to install the software package, for example, the prompt shown in Figure 4 to install quagga, The current lack of net-snmpSo you can locate the installation source on the installation source optical disk as shown in Figure 5.Net-snmpInstall the package before installing quagga.The software package can solve this fault!


After the quagga software package is installed, edit the/etc/quagga/zebra. conf file, as shown in figure 6. The meaning diagram of each instruction has been interpreted.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6453H1-3.png "title =" 4.png"/>

Why edit this?Zebra. ConfFile, what is its role and effect?

The Zebra daemon is used to update the routing rules of the Linux kernel. If you have configured the telnet function of a cisco or H3C router, you should be very clear about its role. To put it bluntly, after a while, you can remotely log on via telnet.) This routing daemon can debug our Linux-based routers to implement the RIP function on Cisco and other manufacturers' routers, if the device is to be telnet, you must configure the Enable account password and login password for the vro. Therefore, this configuration process must be minimal. Of course, there are also many ways to edit this file. You can use Vim or edit it directly on the graphic interface. In short, you can choose based on your personal habits.


After editing the zebra. conf file, use the following command to restart the zebra process,

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F64525O-4.png "title =" 5.png"/>

Then execute telnet to the vrotelnet, in fact, to log on to the local Zebra software of the Linux server, so the local loopback IP127.0.0.1 and 2601 are used as the port number. The specific operation is shown in figure 8, is this process similar to that of a Cisco router! After completing the telnet process, you can use show ip route to view the current route table. Currently, no RIP route is learned.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6455255-5.png "title =" 6.png"/>

Because the Linux server needs to be configured as a router to complete data forwarding, use the following command to start the IP forwarding function. If you need to configure the server as a router, you must execute the following command

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6455F5-6.png "title =" 7.png"/>

The following is the core part of configuring Linux to start the RIP routing protocol, by editing/etc/quagga/ripd. conf file to implement the RIP dynamic routing protocol. If this file does not exist, create a new file named ripd. conf file, the specific editing content and corresponding interpretation are shown in Figure 9. When editing this document, two suggestions are provided for beginners: i. First, the editors should be able to lay a foundation for the working principle and configuration methods of the RIP routing protocol. For example, they have learned how to configure the Cisco or Huawei RIP routing protocol, this is very helpful for editing this file. Although different vendors have different solutions for implementing a network technical knowledge point, their configuration logic and principles must be the same, if you have configured the dynamic routing protocol of RIP on a Cisco router, as shown in Figure 9, it is basically the same as the configuration of RIP on a Cisco router. 2. If, the editor does not know the format used for editing, so there is a ripd in the/etc/quagga directory. conf. sample file. You can open the sample file and complete the compilation according to the format and related prompts of the sample file. Note: Remove "!" from the sample file. Otherwise, all the commands you edit will be "interpreted" instead of the executed commands.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6455N9-7.png "title =" 8.png"/>

When the ripd. you can use/etc/init. d/ripd start is used to start the ripd file. In fact, it is to start the RIP dynamic routing protocol, how to start your RIP dynamic routing protocol, and which subnets are published by ripd. the content of the conf file is determined. Then, run the chkconfig ripd on command to configure ripd to be automatically started after the server is restarted. You can then use netstat-tulnp | grep ripd to view the RIP listening status. Now, the Linux server-based RIP function is complete.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F645C38-8.png "title =" 9.png"/>

Note: after you complete all the configurations of RIP, we recommend that you use/etc/init as follows. d/iptables stop: clear and disable the Linux firewall. Of course, if you are confident that you are familiar with the iptables filter table and related links, you can create a new security rule to allow RIP traffic to pass through the firewall. Otherwise, RIP traffic may be dropped by the firewall, thus affecting the experiment results.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F64551A-9.png "title =" 10.png"/>


Step 2:Now, start the RIP dynamic routing protocol on the Microsoft server. This is not the focus of this article, and the configuration of Microsoft RIP is quite simple, so I will not describe it more. The final configuration interface is shown in figure 10, if you are not clear, you can watch the teaching video corresponding to this article.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6454562-10.png "title =" 11.png"/>

Step 3:Configure the corresponding drawings of the interface IP addresses of the three Cisco routers in the network environment, and use the following commands to start the dynamic route of RIP on each router.


Cisco router R1, R2, R3RIPRoute Protocol Configuration:

R1 (config) # routerrip

R1 (config-router) # version2

R1 (config-router) # network192.168.2.0

R1 (config-router) # network192.168.3.0

R1 (config-router) # exit


R2 (config) # routerrip

R2 (config-router) # version2

R2 (config-router) # network192.168.4.0

R2 (config-router) # network192.168.100.0

R2 (config-router) # exit


R3 (config) # routerrip

R3 (config-router) # version 2

R3 (config-router) # network192.168.1.0

R3 (config-router) # network192.168.200.0

R3 (config-router) # exit


Step 4:After completing all the preceding configurations, return to the Linux router and telnet the local Zebra software again. Then, use show ip route to view the route table, as shown in 11, through the RIP dynamic routing protocol, the Linux router has successfully learned all non-linear networks in the network and marked with "R.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6453352-11.png "title =" 12.png"/>

Then, you can view the route table through show ip route on the Cisco router R2. as shown in figure 12, we can see that the subnet learns normally through the RIP dynamic routing protocol.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F6452W9-12.png "title =" 13.png"/>

Then, on vror2 R2, you can use traceroute 192.168.200.1 to view all the paths from the source to the target, which are in full compliance with the network experiment environment, as shown in Figure 13.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/1F64542a-13.png "title =" 14.png"/>

This article is from the "unknown Christ" blog. For more information, contact the author!

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.