10-04-2007 05:19 AM - edited 03-05-2019 06:52 PM
I have a 3550 48 port switch. When ever I try to add an IP on to a port which is not a member fo any VLAN the switch gives me an error that the IP is part of VLAN 2 and when I try to add that port on Vlan2 it says
Switch1(config)#interface fastethernet 0/35
Switch1(config-if)#switchport access vlan 2
Command rejected: Fa0/35 not a switching port.
Do specify me how to configure the port in Vlan 2
10-04-2007 07:22 AM
Kevin;
I almost got the point i need to assign IP to the router interface whihc is directly connected to port 35 on the switch and that IP should be from VLAN2 subnet so VLAN 2 will be able ti use it and than I can place routes in switch to route perticular requset from that router
10-04-2007 07:33 AM
If I have understood your architecture, I don't think you need any layer-3 VLAN 2 interface on the switch at all. no int vlan 2. You will still have the layer-2 switch VLAN 2.
Just put all the switchports on VLAN 2 switchport access vlan 2, and put an IP address on your router and on each host, and it should work.
There is no need for any IP addresses or routes on the switch at all.
Kevin Dorrell
Luxembourg
10-04-2007 10:21 AM
hi,
correct, you can add an ip address on interface vlan command (to route the traffic) - but you canT assign an ip address on a switchport.
so - you have to create int vlanx (the vlan which you want to route the traffic) - assign it an ip address, and give the vlan a switchport for remote router (not your local 3500 L3 switch).
and, you will need an active (cable-plugged) vlan switchport to ping the interface vlan ip.
dont forget no shut command.
HTH.
Dedy.
10-04-2007 08:51 PM
Switch1(config)#interface fastethernet 0/35
Switch1(config-if)#no switchport
Switch1(config-if)#ip address
Switch1(config-if)#no shut
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