David’s Cisco Networking Blog

Jan 30 2008   9:36PM GMT

Setting up a VLAN with the Cisco IOS



Posted by: David Davis
Tags:
Cisco
Networking

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.

-David
Checkout David’s Video Training:
VMware ESX Server Video Training
Cisco CCNA & CCNP Video Training

1  Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Rvijayananth
    I am trying to establish ip connectivity between a cisco router and an alcatel router in a specific vlan.I have configured interfaces in both the devices in a specific vlan.self ping is working.but not the ping at the next hop. configuration on cisco ===================== CISCO-7606R#show run interface vlan500 Building configuration... Current configuration : 91 bytes ! interface Vlan500 ip address 20.0.0.2 255.255.255.0 ipv6 address 2002::1000:2/120 end CISCO-7606R#show running-config interface g1/10 Building configuration... Current configuration : 77 bytes ! interface GigabitEthernet1/10 switchport switchport access vlan 500 end Please let me know if I am missing any config
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: