wellcoveted.com wellcoveted.com
   Index >> About Us >> Privacy Policy >> Terms & Conditions >> Add Url >> Add Article
Search:   
Add Url
 

Government & Politics

Health & Hygiene

Employment & Careers

Banking & Finance

Food & Recipe

Automotive

Home & Garden

Children

Society & Issues

Property & Estate

Malls & Shopping

Healthcare & Medicine

Recreation

Travel & Accommodation

Sports & Adventure

Business & Commerce

Self Enhancement

Education & Reference

Art & Culture

Lifestyle & Fashion

Internet & Computers

Online & Board Games

News & Events

Technology & Science

 

Index › Internet & Computers › IT Certification
 

Cisco CCNA Exam Tutorial And Case Study: VLANs and IP Connectivity

 
Author: Chris Bryant
 

In this CCNA case study, we'll take some basic switching and trunking theory and put it into action. We have two routers (R2 and R3) along with two switches (SW1 and SW2). R2 is connected to SW1 at fast 0/2, and R3 is connected to SW2 at fast 0/3. Both routers have IP addresses on the 172.12.23.0 /24 network.

For these routers to be able to ping each other, the switches must be able to communicate. These are two 2950 switches, and they're connected via two crossover cables. Before we worry about the router connectivity, let's make sure the trunk link is up between the switches with the "show interface trunk" command.

SW2#show interface trunk

Port Mode Encapsulation Status Native vlan

Fa0/11 desirable 802.1q trunking 1

Fa0/12 desirable 802.1q trunking 1

< output truncated for clarity >

The default mode of these switches is for the ports to run in dynamic desirable trunking mode, so we didn't even need to write a configuration to have the trunk form - it's already there!

R2 and R3s Ethernet addresses have already been configured, the trunk line is operational, and both ports are in VLAN 1. We'll ping R2s Ethernet interface from R3, and then R3s Ethernet interface from R2 to verify IP connectivity.

R2#ping 172.23.23.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.23.23.3, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms

R3#ping 172.23.23.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.23.23.2, timeout is 2 seconds:
!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms

With pings, exclamation points indicate IP connectivity, and periods indicate no connectivity.

So we've got connectivity! Now let's see if we still have that connectivity when the ports are placed into different VLANs. Cisco CCNA theory states that devices in different VLANs can't communicate without the intervention of a Layer 3 device, but let's see if that's true by placing R2 into VLAN 23. (VTP is already running on these switches.)

SW1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

SW1(config)#int fast 0/2

SW1(config-if)#switchport mode access

SW1(config-if)#switchport access vlan 23

SW1(config-if)#^Z

Now that R2 and R3 are in separate VLANs, can they still send pings back and forth?

R2#ping 172.23.23.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.23.23.3, timeout is 2 seconds:
.....

Success rate is 0 percent (0/5)

R3#ping 172.23.23.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.23.23.2, timeout is 2 seconds:
.....

No, they cant. The difference is that theyre now in separate VLANs, and devices in different VLANs cant communicate unless routing is taking place somewhere. Here, no routing is taking place, so the pings dont go through.

Put R3s switch port into VLAN 23, and try the ping again.

SW2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

SW2(config)#interface fast0/3

SW2(config-if)#switchport mode access

SW2(config-if)#switchport access vlan 23

R3#ping 172.23.23.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.23.23.2, timeout is 2 seconds:
!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/8 ms

R2#ping 172.23.23.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.23.23.3, timeout is 2 seconds:
!!!!!

Now that R2 and R3 are in the same VLAN, pings can go through. This just proves the theory - that inter-VLAN communicate requires a Layer 3 device. Layer 3 switches are becoming more and more popular, but router-on-a-stick is still around - and we'll see how to configure that in our next tutorial!

 
 
 

Related Articles

 
Unlimited Web Hosting Offers
 
Registering Domain Names Made Simple
 
7 Reasons Every Writer Needs To Blog
 
Play That Playstation
 
How Viruses and Spyware Get In to your computer
 
The Most Successful Internet Marketing Model - Start with Free Tools, Spend Money Later
 
Antique Persian Rugs
 
Cisco CCNP / BSCI Certification: The BGP Attribute ?MED?
 
Contextual Ads
 
You Really Can Succeed Working at Home
 
 
 
 

The Religion And Philosophy Of Small Internet Business

I have always had a tendency to focus on the positive. We, all of us, know the negative details in s ... - Patrick Sadler
 

Best Internet Business Must Be Based On Relevant Ads

Actually it is not that difficult to enjoy such an excellent conversion rate. All you have to do is ... - Christopher Kyalo
 

Free DVD Burners

Free DVD burners are DVD burners that can be obtained free of cost. It may be either a hardware piec ... - Marcus Peterson
 
 

Do You Want Someone To Know Your Secrets? Protect Yourself with a Firewall

Protecting your computer is just as important as protecting your home. In order to do what's necessa ... - Tom Antion
 

Yahoo's Back!

I was all set to write an article predicting the future of search engines, when Yahoo dropped Google ... - Shawn Campbell
 

Why Online Business - The Harsh Reminder Why Online Business Is For You

Many people want to achieve financial freedom and they know very well that running their own busines ... - Henry Tanaka
 

Motorola Cell Phone Gaming One-Ups Pocket PC

If your Pocket PC RPG game forays need to be buttressed by Motorola cell phone gaming, read on. Tech ... - Damian Julien
 

Tracking traffic to your web site

One of the essential rules for home business Internet marketing, and for marketing of any business, ... - Rod Larrivee
 
 
Index >> Privacy Policy >> Terms & Conditions  
© 2006 www.wellcoveted.com - All Rights Reserved