Article title: creating a network router in Linux (2 ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Set and use MRLG
MRLG (Multi-Router Looking Glass) is a network-based tool written by John Fraier of EnterZone. It can be used to display interfaces and paths that can be recognized by Zebra. MRLG is actually a Web interface of the command line processing program specified by Zebra, which consists of limited commands. However, during the test, we found that the path can be quickly displayed. This is very important for network protocols. Therefore, you must install MRLG before setting the protocols.
MRLG requires the Net: Telnet Per suite to communicate with the command line handler specified by Zebra. Unfortunately, we cannot find Net: Telnet Per suite in Red Hat 9, so we only download it online.
As MRLG runs as a CGI application, we also need to install a network server software. You can use httpd rpm integrated in Red Hat 9.
We will/usr/share/doc/zebra-0.93b/tools in mrlg. copy the cgi file to/var/www/cgi-bin, and then copy. modify line 36th of cgi from $ url = "http://www.sample.com/mrlg.cgi"; to $ url = http: // 127.0.0.1/cgi-bin/mrlg. cgi. In addition, we need to modify the command blocks between lines 168 and 174. the modified command blocks are as follows:
Finally, to connect to MRLG, enter http: // 127.0.0.1/cgi-bin/mrlg. cgi. in the address bar of the browser, as shown in Result 1.
Connect to MRLG and enter the address to display
Lab configuration
Our lab configuration includes two Cisco 3620 routers and one ThinkPad X20. In addition to the built-in Ethernet port, ThinkPad X20 also has a Home-and-Away PCMCIA Ethernet card. The communication between two Cisco 3620 routers is mainly achieved through serial port connections. the connection between them and ThinkPad X20 is achieved through Ethernet, as shown in figure 2 of the overall architecture.
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