Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how many vlans can i creat on my 2924 3

Status
Not open for further replies.

raviccie

Technical User
Aug 4, 2002
20
0
0
US
i connected several routers on to the fastethernet ports
and i wanted to find out if i can keep each interface in a separate vlan. i hope i can do this right?
any totally how many vlans can i create on my cisco 2924?

any command line help with the creation of the vlans
 
I believe 64 is the maximum number of vlans on a 2924. To create vlan's:

-vlan database
-vtp server
-vlan 2 name whatever
-vlan 3 name nextvlan
-vlan 4 name etc...
exit

then to apply to each interface
config t
int faste 0/1
switchport access vlan 2
int faste 0/2
switchport access vlan 3

*J*
 
Hi,
AFAIK, the 64 limit is applied to STP instances. The formula is p + v1 + v2 + ...+vn < 64, where p is the number of access ports, v1 is the number of VLANs active on trunk1, v2 is the number of VLANs active on trunk2, etc.
So if you are having 22 access ports in VLAN1,...,VLAN22 and two trunks (ports 23 and 24) with all VLANs enabled and STP enabled in all VLANs, then 22 + 22 + 22 = 66 > 64 and you are in trouble!!!

Regards,
Milan
 
hi guys...the replies you provided were useful... but the major problem is my 2924-xl cannot seem to take the vlan database command... what is going on here....can somebody help me to create multiple vlans on this switch...

here is some output ....from &quot;show ver&quot;, &quot;show run&quot; and &quot;show vlan database&quot;....
please take a look at it and let me know.


c2924-1#sh ver
Cisco Internetwork Operating System Software
IOS (tm) C2900XL Software (C2900XL-H-M), Version 11.2(8)SA3, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1998 by cisco Systems, Inc.
Compiled Fri 11-Sep-98 17:00 by rheaton
Image text-base: 0x00003000, data-base: 0x001C4910

ROM: Bootstrap program is C2900XL boot loader

c2924-1 uptime is 6 minutes
System restarted by power-on
Running default software


cisco WS-C2924C-XL (PowerPC403GA) processor (revision 0x11) with 4096K/1024K bytes of memory.
Processor board ID FAA0307F0A5, with hardware revision 0x00
Board ID 0x09
Last reset from power-on
24 Ethernet/IEEE 802.3 interface(s)

32K bytes of flash-simulated non-volatile configuration memory.
Base ethernet MAC Address: 00:50:E2:C7:1E:80
Configuration register is 0xF

c2924-1#sh run
Building configuration...

Current configuration:
!
version 11.2
no service pad
no service udp-small-servers
no service tcp-small-servers
!
hostname c2924-1
!
enable password cisco
!
!
clock timezone PST -7
!
interface VLAN1
ip address 192.168.2.69 255.255.255.0
no ip route-cache
!
interface FastEthernet0/1
!
interface FastEthernet0/2
speed 10
duplex half
!
interface FastEthernet0/3
speed 10
duplex half
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
speed 10
duplex full
!
interface FastEthernet0/10
!
interface FastEthernet0/11
speed 10
duplex full
!
interface FastEthernet0/12
!
interface FastEthernet0/13
speed 10
duplex full
!
interface FastEthernet0/14
!
interface FastEthernet0/15
speed 10
duplex full
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
ip default-gateway 192.168.2.1

line con 0
exec-timeout 0 0
password cisco
logging synchronous
login
stopbits 1
line vty 0 4
exec-timeout 0 0
password cisco
logging synchronous
login
line vty 5 14
password cisco
login
!
end

c2924-1#
c2924-1#
c2924-1#sh vlan
% Incomplete command.

c2924-1#sh vlan dataase
c2924-1#sh vlan database
^
% Invalid input detected at '^' marker.

c2924-1#s sh vlan ?
brief Show information of all VLANs
id Show information of a VLAN

c2924-1#sh vlan brief
VLAN Name Status Mod/Ports
-------- -------------------------------- --------- ---------------------
1 VLAN0001 active Fa0/1 Fa0/2 Fa0/3 Fa0/4
Fa0/5 Fa0/6 Fa0/7 Fa0/8
Fa0/9 Fa0/10 Fa0/11 Fa0/12
Fa0/13 Fa0/14 Fa0/15
Fa0/16 Fa0/17 Fa0/18
Fa0/19 Fa0/20 Fa0/21
Fa0/22 Fa0/23 Fa0/24
2 VLAN0002 active
3 VLAN0003 active
4 VLAN0004 active
5 VLAN0005 active
6 VLAN0006 active
7 VLAN0007 active
8 VLAN0008 active
9 VLAN0009 active
10 VLAN0010 active
11 VLAN0011 active
12 VLAN0012 active
13 VLAN0013 active
14 VLAN0014 active
15 VLAN0015 active
--More--  
c2924-1#
c2924-1#sh vlan id ?
<1-1001> VLAN id number of desired VLAN

c2924-1#sh vlan id 1
VLAN Name Status Mod/Ports
-------- -------------------------------- --------- ---------------------
1 VLAN0001 active Fa0/1 Fa0/2 Fa0/3 Fa0/4
Fa0/5 Fa0/6 Fa0/7 Fa0/8
Fa0/9 Fa0/10 Fa0/11 Fa0/12
Fa0/13 Fa0/14 Fa0/15
Fa0/16 Fa0/17 Fa0/18
Fa0/19 Fa0/20 Fa0/21
Fa0/22 Fa0/23 Fa0/24
c2924-1#sh vlan id 2
VLAN Name Status Mod/Ports
-------- -------------------------------- --------- ---------------------
2 VLAN0002 active
c2924-1#
 
Hi,
regarding to the output provided there are 15 VLANs defined on your switch. The only remaining thing is to assign ports to VLANs. Go to interface config and use switchport command:
conf t
int fa 0/2
switchport access vlan 2
switchport mode access
if you want to put port Fa0/2 to VLAN2, e.g. (the &quot;switchport mode access&quot; command shouldn't be necessary, it's default).
Just to clarify: &quot;VLAN database&quot; command is not a part of config, it's invoked form CLI enable prompt.

Regards,
Milan
 
Hi,

Along the same lines. I have a question. Need to clear the orginal config, first
2924M-XL IOS 12.0(5)WC5

How to VLAN9 with ports FA0/0-8 with IP address 192.168.10.2 255.255.255.224 for the VLAN9 with portfast
port FA0/1 with talk to a PIX and port FA0/8 with talk to a Netgear switch 516 which is non-vlanable

And to VLAN10 with ports FA0/17-24 with IP 10.1.10.2 255.255.255.224 for VLAN10

Rusty.

Thanks,

 
thanks everybody (specially kulik and jschrafer)for all your technical help and expertise...
even though...i had a couple of books..on cisco switching...i couldn't find straight answers to my problems/issues...

keep up the good work...

once i become an expert myself...i promise to come back and help others...

Ravi
*Ravi

success is not an end point..but the journey..so make every moment of the life happy and successful...by doing what you like to do..
 
Rusty,
if I understand situation, let me first say you can only have one &quot;management&quot; vlan per switch (one ip address).

&quot;wr erase&quot; to erase configuration, then reload.
int vlan 9
ip address 192.168.10.2 255.255.255.224
management

int faste 0/1 (do for each port 1-8)
spanning-tree portfast
switchport access vlan 9

int faste 0/17 (do for each port 17-24)
spanning-tree portfast
switchport access vlan 10

For your Netgear switch, all ports will be in vlan 9.

That should get you going.

*J*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top