Skip Links

Network World

Brad Reese

How to configure Cisco Variable-Length Subnet Masks (VLSMs)

By Brad Reese on Tue, 05/06/08 - 5:35pm.
Newsletter Signup

Cisco How-To Tutorials

Variable-Length Subnet Masks (VLSMs) allow the use of different masks for the same network number on different Cisco interfaces, which allows the user to conserve IP addresses and more efficiently use available address space.

Enhanced Interior Gateway Router Protocol (EIGRP), Intermediate System-to-Intermediate System (IS-IS), Open Shortest Path First (OSPF), Routing Information Protocol (RIP) Version 2 and Static routes support VLSMs.

Variable-Length Subnet Masking is configured on the router by enabling routing protocols (such as EIGRP or OSPF) that support this, and by configuring the subnet masks of the various Cisco interfaces in the ip address interface sub-command.

The best way to implement VLSMs is to keep the existing numbering plan in place and gradually migrate some networks to VLSMs to recover address space.

In the example below, a 14-bit subnet mask is used, leaving two bits of address space reserved for serial line host addresses.

There is sufficient host address space for two host endpoints on a point-to-point serial link:

interface ethernet 0
ip address 172.16.1.1 255.255.255.0
!---8 bits of host address space reserved for ethernets


interface serial 0
ip address 172.16.254.1 255.255.255.252
!---2 bits of address space reserved for serial lines


router ospf 107
!---Router is configured for OSPF and assigned AS 107


network 172.16.0.0 0.0.255.255 area 0.0.0.0
!---Specifies network directly connected to the router


For further information you may wish to refer to:

Cisco VLSM Example


View more Cisco How-To Tutorials

Contact Brad Reese
http://www.BradReese.Com

Brad's Top 5 Story Picks
# 1. H-1B scandal: New study unmasks that Cisco and Microsoft NOT using H-1B visas to recruit the best and brightest
# 2. Cisco skills shortage is baloney, expert says
# 3. Cisco loses $2M order to ruthless Nortel energy efficiency calculator
# 4. VoIP monitoring: The quest for call quality ubiquity
# 5. Cisco NetFlow vendor giving away Traffic Analyzer!
Story Archives Brad Reese on Cisco Story Archives

Cisco Jobs

Cisco Repair

Cisco Resumes

Cisco Power Supplies

  

Welcome, visitor. Register Log in
About Brad Reese on Cisco

Brad Reese cofounded BradReese.Com Cisco Refurbished, which enables affordable Cisco networks globally by assuring customer satisfaction with guaranteed one year warranties on both Cisco Repair as well as Refurbished Cisco.

Don't be shy, contact Brad Reese online or call him Toll Free:

866-864-0506

International callers may wish to call Brad by dialing:

850-364-4115

Archives
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
Categories
Allan Sulkin - founder and president of enterprise communications systems and applications consultancy - TEQConsult Group
Careers
Chambers and his Board of Dirctors urged Cisco shareholders to vote NO
China networking marketplace
Christian Brothers Investment Services notice
Cisco
Cisco TelePresence
Cisco TelePresence revenue
Cisco Unified Communications Support for Microsoft Windows 7
Cisco engineer - Kevin Murphy
Cisco has now become the target of unflattering employee reviews
Cisco is warning Unified Communications customers about NOT successfully offering support for Microsoft Windows 7
Cisco is well known as being one of the best companies to work for
Cisco stock chart for the last 10 years
Cisco will have no liability for any delay in delivery
Cisco's 1st Quarter Other Product Revenue By Fiscal Year
Cisco's F1Q10 earnings call
Cisco's Form 10-Q
Cisco's new Stock Incentive Plan as amended and restated
Cisco's upcoming annual stockholder's meeting
Daniel Berg - Skype's CTO
Data Center
Dave Donatelli - HP executive vice president and general manager of enterprise servers and networking
FNF
Father of SIP - Jonathan Rosenberg
Financial windfall for Cisco shareholders
Flexible NetFlow
Flip video camcorder
Flip video camcorder revenue
Gilbert Public School's $3.5 million network upgrade to HP
Gilbert Public Schools Board President - Thad Stump
Gilbert Public Schools assistant superintendent - Barb VeNard
Glassdoor.com is financially backed by 2 of the leading Silicon Valley venture capital firms - Benchmark Capital and Sutter Hill Ventures
HP also bid on the project
HP purchasing 3Com
HP's Converged Infrastructure strategy
HP's acquisition of 3Com
John Chambers has had some good paydays as the CEO of Cisco
LANs / WANs
Microsoft
NBAD
NetFlow
NetFlow add-ons
Network Behavior Anomaly Detection
Network Management
Popular online career and workplace community - Glassdoor.com
ProCurve ONE alliance
Proposal submitted by Christian Brothers Investment Services
Proxy resolution during Cisco's annual meeting
Rosenberg is now Skype's Chief Technology Strategist
SMB
Say on executive pay
Security
Skills and abilities of Skype CTO Daniel Berg
Skype announced Roseberg jumped ship from Cisco
Skype's Chief Technology Strategist - responsible for Skype's overall architecture and technology strategy
So how does one verify that Glassdoor's information is really from Cisco employees?
Software
Superintendent Dave Allison
TelePresence revenue
VoIP / Convergence
When Cisco used its common stock to buy Linksys and Pure Digital
Who's right about Cisco's work environment - Fortune or Glassdoor?
Windows 7
Windows 7 just not worth an all-out urgent effort by Cisco to support
Wireless / Mobile
On The Web
Twitter