cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1486
Views
0
Helpful
4
Replies

2900 switch IP address config issue

pgmrdude1
Level 1
Level 1

Hi,

I have a 2924 and a 2950 switch. I have cables attached to the routers, the routers configured with default gateway addresses and have attached the fa0/24 of each switch to different NICs. I entered global confg mode, then IP int config mode ('int fa0/24'), entered 'ip address address mask' and it says 'invalid'. It will not let me set the IP address on the interface. When I entered 'ip ?', it did not even show 'address' as an option. I am not at the switches now, but I believe they are running IOS version 12.1. It happens on both switches.

I am kind of new at this and am attempting to setup a small lab at home for CCNA prep. If anyone has any obvious ideas, I would love to hear them. If you need further info (probably the case) I will gladly provide it. I go the switches and routers off of ebay, and they seem to have had a 'clean' config.

Thanks!

4 Replies 4

cadet alain
VIP Alumni
VIP Alumni

Hi,

2950 is a L2 switch and so it can only have one ip address configured for management on a VLAN interface.

Even on a L3 switch you would have to change the default of L2 of port to L3 with no switchport and then you can configure an ip address.

Regards.

Alain.

Don't forget to rate helpful posts.

Oh, so I can assign an IP address to the switch in global config mode, but in order to assign an IP add to a switch port, I first have to add it to a VLAN, and then assign an IP to the VLAN?

Thanks!!

Oh, so I can assign an IP address to the switch in global config mode, but in order to assign an IP add to a switch port, I first have to add it to a VLAN, and then assign an IP to the VLAN?

No you can't assign an ip in global config, you can only assign an IP address to a VLAN interface:

int Vlan 11

ip address x.x.x.x

no sh

Then you can manage your switch remotely with this address and if you are on another subnet then add:

ip default-gateway x.x.x.x ( in global config mode) x.x.x.x being IP of router linking the 2 subnets

Regards.

Alain.

Don't forget to rate helpful posts.

Gotcha - yes I would be on a different subnet, so I would add the ip default-gateway to be the address of the fa0/0 interface of the router Thanks!!