Wednesday, May 14, 2008

Setting up a VLAN with the Cisco IOS

Recently, in my forums at my personal website, I have a VLAN Question thread going with over 20 posts and 638 views. Additionally, I have a free video where I demonstrate how to configure VLANs in the Cisco IOS. This video is one of the most popular free videos on my site.


Because of the popularity of these two sites, I wanted to take a second to cover the basics on VLAN configuration. Here are some crucial VLAN “show” commands on a switch:


————————–


Show vlan brief
Show interfaces switchport
Show ip interface brief
Show int trunk


————————–


And here is how you would configure a VLAN routing on your router with some show commands:
Router commands
Interface fastethernet 4.1
Encapsulation dot1q 10


Interface fastethernet 4.2
Encapsulation dot1q 20


Interface fastethernet 4
No shutdown


Show ip interface brief
Show vlans


—————————–


And here is how you would configure a VLAN on your switch:


Switch commands
Interface fastethernet 2/0
Switchport access vlan 10
No shutdown


Interface fastethernet 5/0
Switchport access vlan 20
No shutdown


Interface vlan 10
Ip address x.x.x.x y.y.y.y
No shutdown


Interface vlan 20
Ip address x.x.x.x y.y.y.y
No shutdown


———————-


I hope that sample configuration helps you out and don’t forget about my VLAN Configuration video where you can see how it is configured, step by step.

http://itknowledgeexchange.techtarget.com/cisco/setting-up-a-vlan-with-the-cisco-ios/

0 comments: