01-27-2011 10:43 AM - edited 03-06-2019 03:14 PM
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!
01-27-2011 10:58 AM
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.
01-27-2011 09:14 PM
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!!
01-27-2011 11:56 PM
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.
01-28-2011 11:51 AM
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!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide