The organisation where I’m working didn’t have a BGP looking glass (LG). We, network professionals, know how helpful a looking glass is while troubleshooting any network related issues. Hence, I setup my mind to spare a server so that we can run LG there. I installed CentOS 6.5 there. I followed the steps below to setup LG on my CentOS server.
If no DNS records is there for the Looking Glass server:
<meta http-equiv=”refresh” content=”0;url=http://IP address of the server/lg/lg.cgi”>
Step 5: Modified in the web server by adding the following parameters in httpd.conffile.
[root@bdren ~]# vim /etc/httpd/conf/httpd.conf
Alias /lg/favicon.ico “/var/www/html/lg/favicon.ico”
ScriptAlias /lg “/var/www/html/lg/lg.cgi”
Now, you should be able to get the basic LG webpage. Try http://<IP Address or Your domain>/lg and the page should be visible, something like below.
Step 6: Add routers to the looking glass. LG supports Cisco, Juniper and Linux Quagga routers. All routers are added to /var/www/html/lg/lg.conf. You can use ssh, telnet or rsh for your LG to collect output from router. The supported schemes and routers are shown under <Router_List>.
Configure your router with a username and a password. Accordingly modify your lg.conf script. Remember that the router password required here is the remote login password, and NOT the privileged EXEC (enable mode) password.
Step 7: To enable IPv6 in your LG, replace ipv4enabled– with ipv4enabled++ in lg.cgifile.
[root@bdren ~]# vim /var/www/html/lg/lg.cgi
Accordingly, configure your IPv6 enabled router with EnableIPv6=”Yes” in lg.conf as shown in the sample router section in Step 6.
Step 8: To upload your logo in LG, store the logo in /var/www/html/images directory. Create the directory if you don’t have it already.