Open Shortest Path First (OSPF) is an open standard link-state routing protocol that supports multiple equal-cost routes to the same destination (four by default). OSPF constructs a shortest path tree and then updates the routing table with the best paths. In this blog I I will be explaining OSPF in the context of OSPF on Cisco routers, so I will be using Cisco IOS command syntax. For some of the commands I have included screenshots from a Cisco 2621XM [IOS 12.3(16a)] router. Continue reading
OSPF Explained and Useful Troubleshooting Commands
Perl – Using Pattern-sequence Memory with Regular Expressions
Pattern-sequence memory is very useful when you want to match the same character in several places but don’t care which character you match as long as all occurrences are the same character. For example, the below code matches the date format “dd-mm-yy” where the dashes can be any two of the same non-word characters (in regex notation the range would be [^_0-9a-zA-Z]). Pattern sequences are stored in memory from left to right, so “\1” would represent the first match. Continue reading
Setting-up DHCP with IP Helper-Address on Cisco Routers
In a prior lab, Setting-up DHCP on Cisco Routers, I discussed how to setup a Cisco router as a DHCP server. In this lab, I use a DHCP server setup on one subnet to provide DHCP services to two different subnets. For this lab I use a Cisco 2126XM router [IOS Version 12.2(28)] as the layer 3 device and two Cisco WS-C2950-24 switches [IOS Version 12.1(22)EA4X] as the layer 2 devices. The network diagram and DHCP server configuration for this lab is shown below. Continue reading
HumairAhmed.com: Top 500,000 Websites in US – Not Bad for a Blog!
Well, it looks like I’ve finally broken into the top 500,000 websites in the US in terms of traffic according to Alexa. Not bad for a semi-periodically updated blog I suppose. Most sites, especially personal blogs, don’t even make the ranking let alone break the 1,000,000 barrier. My global ranking is still around 4,000,000 to 5,000,000, which is still good for a blog. Continue reading
Setting-up DHCP on Cisco Routers
The Dynamic Host Configuration Protocol (DHCP) provides the capability to automatically allocate reusable network addresses and configuration options to hosts. Continue reading
Perl – Obtain the File Size
Here is a cool one line Perl script you can use to quickly obtain the file size of a file. The syntax to run the script is “perl [scriptname] [filename]”; in the below example I use the script itself as the file. Continue reading
Perl – Writing the Linux ‘cat’ Utility
The below Perl code will give you similar results compared to the Linux ‘cat’ utility. At the command prompt, just enter “perl [scriptname] [filename1] [filename2] etc … Continue reading
Perl – File-Test Operators
In Perl, file-test operators are useful for determining the status of a file. Some of the operators below refer to the “real user” which is the User ID specified at login rather than “effectve User ID” which refers to the User ID you are currently working under. The general syntax is -[file-test operator] [operand being tested]. Continue reading
W3C Feed Validation Service and Markup Validation Service
The W3C Feed Validation Service is a very useful tool to validate the syntax of Atom or RSS feeds. I just used it to determine why my LinkedIn WordPress application could no longer connect to my WordPress RSS feed. Continue reading
University of Berkeley Astronomers Discover Largest Known Black Holes
University of California, Berkeley Astronomers have discovered the largest black holes known to date. The black holes are estimated to be have masses equivalent to about 10 billion suns each (one black hole being slightly bigger than the other). The two black holes are in clusters of elliptical galaxies greater than 300 million light years away (1 light year is approximately 5.8 trillion miles). Continue reading