I can’t assign IP address in Cisco switch?

Asked By 250 points N/A Posted on -
qa-featured

Dear All,

I'm working in a AD firm and using CISCO switch for our network. Recently we have purchased Cisco 2960 series switch. I’ve tried myself to assign static IP on switch but failed. For your information we are using Mac address. Is there anyone to instruct me, how can I can assign IP address in Cisco switch?

Regards,

Hossain

SHARE
Best Answer by sumya
Best Answer
Best Answer
Answered By 0 points N/A #90182

I can’t assign IP address in Cisco switch?

qa-featured

Hi Hossain,

As you may know there are layer 2 and layer 3 switches. A layer 2 switch only does layer 2 forwarding; as such it doesn't have any additional IP interfaces. On a layer 2 switches the IP address is instead assigned to the VLAN interface: Layer 2 threat defense capabilities, Routing: Basic Layer 3 static routing with 16 routes. The serial, which you mentioned they are layer 2.

Config t

Interface VLAN 1

IP address 192.168.1.1 255.255.255.0

Important note:

On a L2 switch you can assign an IP to any VLAN you want (vlan 1, VLAN 2, VLAN 4000). You can only assign an IP address to one VLAN at a time on a l2 switch. If you configured an IP on a VLAN and then try to assign an IP to another VLAN.  The switch will shut down the first VLAN and bring up the second VLAN interface). Could you please try the following solution?

First you have to connect a console port, using the terminal settings-9600 baud rate/ No parity/8 data bits/1 stop bit; now turn off the switch and then turn the switch on, again. You have to wait a few minutes after the power reset. Now importantly you have a prompt for password:

Press enter at the password prompt to enter a null password; After that, you have to enable at the prompt to enter enable mode. Now type clear configures all.  After system configuration is cleared then, you have to set password. That’s all you have to do. Please get back to me whether you were able to do it or not.

Answered By 250 points N/A #90183

I can’t assign IP address in Cisco switch?

qa-featured

 

Dear Bappy,

Thanks for your information. I've followed your suggestions but I not able to do it. Thing is, first I have configured as IP address on a vlan and then tied to assign as IP to another Vlan but the switch automatically shuts down. What should I do now? Thanks.

Hossain
Answered By 0 points N/A #90184

I can’t assign IP address in Cisco switch?

qa-featured

You can't configure an IP on a vlan and then to another vlan. If you do this, your switch will shut down the first vlan and bring up the second vlan interface. So, what you have to do now, reset the switch and then configure again. Cheers!

Bappy

Answered By 250 points N/A #90185

I can’t assign IP address in Cisco switch?

qa-featured

Thanks. I've reset my switch and then configured again. Now I am able to assign an IP address successfully. It's working well. Thanks.

Hossain

Answered By 0 points N/A #90188

I can’t assign IP address in Cisco switch?

qa-featured

Dear Hossain,

It's good to here from you that, you can able to assign your IP address successfully. It was really difficult task, which you've done very easily as per my instructions, appreciate you for this.

Regards,

Bappy

Answered By 0 points N/A #90190

I can’t assign IP address in Cisco switch?

qa-featured

Hi Hossain,

Could you please try with the following solution. This will help you to assign IP address, in your Router. First, you have to enter privileged EXEC mode – Router enable password; then enter the configure terminal command, Router config terminal then Interface; type port for Cisco 2960series.

To enter the interface configuration mode, you can follow this example: Router (config) interface Ethernet 0/1. Now enter the IP address and subnet mask of the interface using the IP address, like Router (congig-if) IP address 192.168.10.1 255.255.255.0. After doing this exit the configuration mode, by pressing Ctrl-Z.. I think if follow the above instruction your problem can be solved. Thanks.

Sumya

Answered By 450 points N/A #90192

I can’t assign IP address in Cisco switch?

qa-featured

Call the link port assignment of the switch. If you are using VLAN set the VLAN interface and the default-gateway and set the ip address and subnetmask.

E.g  network 192.24.0.0/24

switch # conf t

switch(config) int VLAN1

switch(config-if) ip add 192.24.1.1

switch(config-if) no shut

switch(config-if) end

 

switch # conf t

switch(config) int fa0/2

switch(config-if) ip add 192.168.24.20 255.255.255.0

switch(config-if) no shut

switch(config-if) end

Login/Register to Answer

Related Questions