?
Solved

Cisco 1721 VLANs

Posted on 2005-04-04
4
Medium Priority
?
566 Views
Last Modified: 2011-09-20
Hi

I have a WIC4ESW in the back of a 1721 router.

Thus far I have only needed 1 VLAN (this is the default).

I now need to configure port 2 of the WIC4ESW as a separate VLAN from port 1 of WIC and Ethernet port.

How do I do this?


thanx.
0
Comment
Question by:yvsupport
  • 2
4 Comments
 
LVL 79

Accepted Solution

by:
lrmoore earned 2000 total points
ID: 13698148
router#vlan database
Router(vlan)# vlan 2
Router(vlan)#exit
apply completed
Router#config t
Router(config)#interface fastethernet 2
Router(config-if)#shutdown
Router(config-if)#switchport access vlan 2
Router(config-if)#no shutdown
Router(config-if)#end
Router#

Now if you want VLAN 2 to be able to talk to anyone in VLAN 1, you need a layer 3 interface
Router(config)#interface vlan 2
Router(config-if)#ip address a.b.c.d 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#end
Router#

Host in VLAN2 has IP in subnet a.b.c.X
Host in VLAN2 has default gateway of a.b.c.d


0
 

Expert Comment

by:AcidEtch
ID: 13698192
Try:
Interface e[Module]/[Port]
switchport access vlan [VLAN No.]

Where [Module] is the module number of the WIC, [Port] is the port on that module and [VLAN No.] is the VLAN ID you want to assign it to.

Hope that helps.

AE
0
 

Author Comment

by:yvsupport
ID: 13698401
Wow - the Infamous Irmoore!

Thanks for your help - works a treat!

2 things - why the shudown before the switchport access line - is there a reason or is this just good practice?

Also, how do I now remove/delete the recenntly created VLAN?

thanks again.
0
 
LVL 79

Expert Comment

by:lrmoore
ID: 13698904
>why the shudown before the switchport access line - is there a reason or is this just good practice?
Suggested by Cisco documentation. Makes sense to "bounce" the interface after changing layer 2 access modes.

>how do I now remove/delete the recenntly created VLAN?
Same way you created it
Router#vlan database
router(vlan)#no vlan 2
router(vlan)#apply <-- I've found that "exit" does not always apply the changes when removing vlans
router(vlan)#exit
router#
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
How to fix a SonicWall Gateway Anti-Virus firewall blocking automatic updates to apps like Windows, Adobe, Symantec, etc.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

592 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question