Assign Ip address to Cisco L2 switch

I have a Cisco Catalyst WS-2960-24TT and from my understanding this switch can only do layer 2. Anyway, what make me confused is I can create SVIs for my vlan10 and vlan20 on this switch. In other words, I can assign an IP address to each of my vlan. I thought that the switch only handle layer 2 features and assigning an IP address to a VLAN is more like a multilayer switch feature. Can somebody shed some light? Thx
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SVI on Cisco Integrated Services Routers is designed to provide basic Layer 3 functions for the Layer 2 switch ports that belong to a specific VLAN. The SVI does not provide the same feature set and functions as the integrated Layer 3 Ethernet ports of the integrated services routers and should not be used to entirely replace the Layer 3 Ethernet ports. Customer who need additional Layer 3 Ethernet ports for their Integrated Services Routers may consider the use of 1- and 2-Port Fast Ethernet High-Speed WIC for modular ISR platforms. The guidelines presented in this document summarize feature support considerations for an Integrated Services Router deployment that uses SVIs.
As you mentioned 2960 is L2 switch and can have only one SVI for management purpose and for troubleshooting purposes.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

biggynetAuthor Commented:
"As you mentioned 2960 is L2 switch and can have only one SVI for management purpose ". So why it let me assign IP addresses to the VLANs.
You can have as many VLANs as you want, and you can assign an IP address to a VLAN, but when you assign an IP to a VLAN, any other IP address on other vlans will be disabled.  The IP address is for management only, and it's to be used as a gateway, but it can be on any VLAN...

I think if you already have a VLAN interface with an IP, and you enable a second IP, the first VLAN interface is administratively shutdown.   (Not the vlan itself, just the vlan ip interface)

Does that clarify?
biggynetAuthor Commented:
I did not have any devices connected to the ports. But I assigned the IP addresses to 3 vlans. I did the show ip int br and all the vlans are up.

interface Vlan1
 ip address
interface Vlan10
 ip address
interface Vlan20
 ip address

switch#sh ip int br
Vlan1                YES manual up                    down
Vlan10             YES manual up                    down
Vlan20             YES manual up                    down
Interesting..  I think that's a change from the old switches..  I just remember thinking "why did my other vlan go down?"

I'd say you're still not going to get it to ROUTE - it may be that you just will have access to the switch from any vlan, for management purposes...
biggynetAuthor Commented:
Yes I cannot route because it won't let me do any static route command or the switch IP ROUTING command. But it is interesting that you can configure the SVI... Well, I am not sure that I cal it a SVI because I cannot do any routing.
I remember going through some problems, because on the layer-2 switch, I think you have to use a "default-gateway" command, instead of a route type command for your gateway, and it was confusing me in a similar situation..   (Doing this from memory, so might have that wrong!!)
Craig BeckCommented:
The 2960 switches can do basic Layer-3 if the IOS is later than 12.2(55)
biggynetAuthor Commented:
"basic Layer-3 ", can you elaborate on that? Thx
Craig BeckCommented:
8 SVIs, 16 static routes (IPv4 only)

The 2960 does not support dynamic routing protocols such as OSPF or EIGRP, or Layer-3 interfaces.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Nayyar HH (CCIE RS)Network ArchitectCommented:
For a L2 switch only a mgmt IP address is required along with a default gateway configuration. Assignment of IP's on multiple SVI can only be used for connectivity testing purposes.

For example, you need to test IP reachability within a particular VLAN - creating an additional SVI on the switch could aid with this.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Switches / Hubs

From novice to tech pro — start learning today.